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.
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().
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).
Minh, I see that you're working with one of our support engineers on your timing issues. Please continue to follow up with him.
The working CR1000X Memory and Data Storage link is: https://help.campbellsci.com/CR1000X/Content/Global_Content/Details/Data/Memory.htm
Updated link to the online manual: https://help.campbellsci.com/CR1000X/Content/shared/Details/Data/Memory.htm