PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Data acquistion and file I/O with RT module

Hi,

I am using PXI system with 6289 card, and host pc is running with labview RT 2009, all configuration is OK. 

I need to make an efficient application which will do DATA acquisition @max rate (600kS/s) and simultaneouly i am curious about each sample, so  i m using binary file I/O, (two timed loops from project wizard).

 

but when i plot there is a sample at "0 volts" at each multiple of (samples to read=1000) ,

 

1- is there any example whhich ll guide me to do above two tasks in an efficient way

2- shared varialble concept is recomended for above application, ?

3- is there a wrong with saving or plotting a binary file ?

 

thanks

0 Kudos
Message 1 of 4
(3,405 Views)

Haider Abbas,

 

 You can find an example to acomplish most of what you are doing in LabVIEW by going to Help»Find Examples then Selecting Hardware Input and Output»DAQmx»Analog Measurements»Voltage»Cont Acq&Graph Voltage-To File(Binary).vi.  Run this example and see if you still get the 0 volts error.

 

You should also be fine using the two loops from the project wizard.  If you want to plot the data, plot it first and then write it to a file.

 

Regards,

Dustin D

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

yes , i have run the example you said, that is running ok, 0Volt error is removed  (thanks)

but i am afraid when i transform it to deterministic application , there may be a jitter while doing file I/O in the same loop.

actually i am using pxi-8187 controller as target ,with chassis pxi-1042.

 

0 Kudos
Message 3 of 4
(3,367 Views)

Haider Abbas,

 

 

Here is an example of what you can do to keep your system deterministic.  You'll want to run your aquisition in the top loop and your file writing in the bottom loop.  Good luck!

Regards,
Dustin D

0 Kudos
Message 4 of 4
(3,352 Views)