06-08-2008 01:26 PM - edited 06-08-2008 01:27 PM
06-09-2008 11:41 AM
Hello samik,
Thanks for your post. I see that you are using the NI PCI 6035 E DAQ Board in
LV 8.2. If I am reading your correctly are you setting up a task in MAX for
continuous acquisition but only taking N samples in your LabVIEW program? How
do you have your AI read configured? Since you are only using one AI channel
(AI0) make sure it is set up for "Analog 1D DBL 1 Chan NSamp" This
way you will know that there is only a 1D array of information coming out of
the AI read. I do not believe that you should have two columns of voltages as
you are only reading one. Are you using the "write to spreadsheet.vi"
to save your data? For instance if I take N samples it simply appends to the
last entry each time I take more samples so still giving you only 1 column.
What I would recommend is to try acquiring the data using an example program
first and then adding in the routines for saving data. If you go to Help
>> Find Examples Look for a program called "Cont Acq&Graph
Voltage-Int Clk.vi". You can find this in the example finder under
Hardware Input and Output >> DAQmx >> Analog Measurements
>> Voltage. There are also other examples that deal with saving data
to files as well. If you could also post a screen shot of your code that might
also be helpful to figure out why you have two voltage columns.
Please post back if you have any more questions.
Corby_B
http://www.ni.com/support
06-09-2008 04:45 PM
06-09-2008 07:40 PM