LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read data to spreadsheet file through PXI-6255

Hello, I'm trying to read data from a data acquisiton card (PXI-6255) into a spreadsheet file, and it appears only a very limited amount of data can be recorded. I can run the program for less than a second, then it pretty much stops there. How can I run the code for a longer period of time? Attached I have the code I'm trying to run.

 

Thanks,

Andrea

0 Kudos
Message 1 of 4
(2,442 Views)

Andrea,

  Try changing the samples to read to 1/10th the sample rate. Let me know if this works.

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(2,420 Views)

It doesn't seem to help ... in fact, it seems to collect less points. It may be less points in the same amount of time? Also, the frequency won't be able to adequately capture my pulse which is at a frequency of 100 Hz. Would there be another way of approaching this?

 

Thanks,

Andrea

0 Kudos
Message 3 of 4
(2,402 Views)

Hi Andrea,

 

I suggest that you don't write to an ASCII spreadsheet file--the conversion process is intensive and the file size will be quite large.  Instead I recommend using TDMS.

 

Starting in DAQmx 9.0, DAQmx offers Integrated TDMS Logging which provides the most efficient way to log to disk.  The TDMS file can be opened in excel with a plugin (I believe it is installed with LV 2010 by default).

 

 

Best Regards,

John Passiak
0 Kudos
Message 4 of 4
(2,396 Views)