03-19-2010 01:50 AM
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
03-22-2010 01:42 PM
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,
03-24-2010 12:32 AM
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.
03-24-2010 02:27 PM
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,