Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

opening data file created with 'Write File'

I was in the field collecting data with 'Acquire N Scans Analog Hardware Trig.vi' and realized that I needed to save the data to a file.  I quickly added a 'Write File' and saved the data.  Now, however, I am not able to open the files that I created.  I've tried many things with 'Read File' and the 'Read Data' VI without any success.
 
Attached are the VI that I used and a resulting data file.  Any help would be greatly appreciated.
 
 
hardware: DAQPad 6070E
software: LabVIEW 7.1
VI Settings: 1 channel; number of scans to acquire = 300,000; scan rate = 625,000; pretrigger scans = 10,000
 
Download All
0 Kudos
Message 1 of 5
(3,404 Views)
The modifications in this attached VI  will save data as an ascii file
 
but for such a larger scan rates and higher sample count, i would recommend file saving in Binary file format.
 
Go to examples>>hardware  input output>>DAQmx>.analog measurements >voltage >>cont acq&graph volt-to file(bin).vi and read data using graph acquired binary data
 
For traditional DAQ VI's, examples>>hardware  input output>>Traditional DAQ>>stream to disk examples
 
These should serve your purpose better
 
Regards
 
Dev
0 Kudos
Message 2 of 5
(3,386 Views)
The modifications in this attached VI  will save data as an ascii file
 
but for such a larger scan rates and higher sample count, i would recommend file saving in Binary file format.
 
Go to examples>>hardware  input output>>DAQmx>.analog measurements >voltage >>cont acq&graph volt-to file(bin).vi and read data using graph acquired binary data
 
For traditional DAQ VI's, examples>>hardware  input output>>Traditional DAQ>>stream to disk examples
 
These should serve your purpose better
 
Regards
 
Dev
0 Kudos
Message 3 of 5
(3,386 Views)
ewestman,

Thanks for posting to the NI Forums.  I was able to read the data from the file you attached.  Reading the data requires passing the read binary file vi the waveform data type (which I did as a constant in the attached example.)  Let me know if you have any questions.

Regards,

Neil S.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,376 Views)

With your help I'm able to read the files now -

many thanks,

Erik

0 Kudos
Message 5 of 5
(3,342 Views)