Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Where do files created by FileOpen() get stored?


Minh T. Sep 8, 2017 08:42 PM

I'd like to write a program that'll output ASCII text from FileWrite() calls located in different slow-sequence scans to a textfile created using FileOpen().

The example provided by CRBasic Program Reference uses the SetStatus() command to allocate space in a "UserDrive" but I'm unsure where this is.

I just want my CR1000 to generate a textfile and then be able to view it.


jra Sep 8, 2017 09:34 PM

You can read about the USR drive here: https://help.campbellsci.com/CR1000X/Content/CR1000s/Details/Memory.htm 

What are you writing to the text file? If you're writing data generated by your DataTable() then you might consider using TableFile() instead of FileWrite(). 


Minh T. Sep 11, 2017 02:02 PM

Hi jra, 

It doesn't matter what I write out to the file as long as the different strings appear in different slow sequences. I'm expecting those strings to appear out of order. Then, I'll play with some flags to try to get the strings to output in a desired order. 

I'm trying to observe the instruction-interleaving behavior among the instructions in different slow-sequences and the main scan. In my most recent application, a section of code at the end of a slow sequence didn't execute when it was suppose to (and I didn't observe a corresponding slow-scan skip). This was problematic because that code segment controlled when certain flags were set/cleared, turning on a satellite modem (consequently, the modem didn't turn on/off on a regular schedule). 

I'm not too familiar with how CSI recommends designing an application to account for this behavior and the only strategy I have right now is to put code that controls state-variables in the main scan (and instructions that may take a long time to execute e.g., DialModem() or SendVariables() in slow-scans). 

Thanks!


jra Sep 11, 2017 09:21 PM

Minh, I see that you're working with one of our support engineers on your timing issues. Please continue to follow up with him. 


MWW Jan 10, 2018 06:14 PM

jra Oct 25, 2021 01:46 PM
Log in or register to post/reply in the forum.