Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Real Time Control, Memory Storage for later use

Using PXI. Need to create a totalizer that continues to totalize data after RTcontroller is turned off.
Method for storing data to file and then calling on that file later. Flash memory loaded upon restart of the pxi next time it starts up.

Please provide direction for literature or direction for doing.
0 Kudos
Message 1 of 2
(3,043 Views)
Hello,

The File I/O in a RT box is very similar to the way is done in a PC. I would suggest you to check a shipping example with LabVIEW for File I/O. There is a very simple one that is called Write to Text File. Just go to Help » Find Examples. Then click on search and type File. Look for this example.
The path to the file would be something as c:\temp\test.txt.
The flash card in the controller would be referenced as the drive c. In case that you have two flash cards, then it will be c: and d: .
It was not very clear what you mean by keep on loading even though the RT box is off. In that case, where you are storing the data is in a different PC or different PXI, right? Anyways, it would be the same thing.
For opening the file at soon as the PXI boots, then just make your VI that the first thing it does, is to read from the file. Look for the shipping example "Read from Text File". Then convert the VI into an application and download it into the RT box. That way every time you boot your PXI, it will execute that application and will load the file info.
Hope this helps.


Ricardo S.
National Instruments.
0 Kudos
Message 2 of 2
(3,030 Views)