LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I store data in CompactFlash in a PCI 7041?

Hi.
I have built an application for RT control in a PCI 7041 that executes the main loop at 5 kHz, so cycle time is 200 us. Now I want to save some data generated during execution. I would like to register timestamp and three values per cycle so I'd have four values every 200 us.
I think that the best way to do this is to store data in the CompactFlash memory included in PCI 7041 in real time (one "row" per cycle), and then, after RT loop execution (it lasts about 2 seconds), download all data to Host's hard disk.
How can I do this? How can I access CompactFlash from Labview? Is there a better way to solve my problem?
Thanks!
0 Kudos
Message 1 of 3
(2,725 Views)
The 7041's CompactFlash is accessible as a drive (C:) through LabVIEW's file I/O functions. You can open/create/replace files on the 7041, just as you would on the host by calling file I/O functions in your downloaded VI.

Once the data is on C:, FTP to the 7041 from the host to retrieve your files. You can FTP programmatically in LabVIEW if you have the internet toolkit. If you don't have the internet toolkit, you can use System Exec to run your FTP commands.

If you prefer not to use FTP, you can transfer the data via TCP, UDP, or Datasocket, but that will require some additional programming.
0 Kudos
Message 2 of 3
(2,725 Views)
It works!
Thank you very much.
0 Kudos
Message 3 of 3
(2,725 Views)