LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save and access a text file on Compact Rio

Hi,
 
My Labview program needs to read a text file to build some arrays. It runs fine in Windows.
How do I do the same when I am running it on a real time target. I want to be able to save the text file
in Compact RIO and the VI should be able to read it from there. How do I do that?
Please help.
 
Thank you.
Anmol.
0 Kudos
Message 1 of 2
(2,685 Views)

I have worked with FieldPoint and I assume it's the same as RIO.

In FP, the file structure is the same as on your PC, so theoretically, you should be able to run your code exactly as it is now.

If you want to read the array from the RIO into the PC, that's more complicated. You can try looking for FTP VIs which will allow you to copy the array file from the RIO or you can try using LV to flatten the data to a string and send it using TCP. This is fairly simple and if you type TCP in the example finder you should find several examples for this.
Another, even simpler, option, would be to attach a Datasocket connection to the array (assuming it works in RIO) and have another one on the PC side (but this is probably bad for determinism, if you need the RT aspect of the RIO). This way, the reading would be done automatically. 


___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,680 Views)