08-05-2008 07:16 AM
08-05-2008 08:43 AM
I am trying to post the VI; no luck.
I have used the VI for several years and it fits most of our applications. I have been using the PCMCIA card and now our new DAQ System requires a USB input for the DAQpad-6016. I have removed the Traditional VIs and replaced with Daqmx but with no success. The text file columns with data are wrong; no time stamp, only at the start, and the chart does not update. What can I do to keep the VI the same but use DAQmx to start the acquisition, update the chart and have the text file read correctly?
Any help would be appreciated.
Labview 8.5.1; Report generation 1.1.2
08-06-2008 01:06 PM
08-06-2008 01:58 PM
08-06-2008 02:03 PM
08-06-2008 02:03 PM
08-06-2008 02:09 PM
08-07-2008 08:50 AM
08-08-2008 02:54 PM
08-08-2008 03:51 PM
It has been a very long time since I've used traditional DAQ and even longer since I used the 2D dbl instead of a waveform data type. The help for the traditional DAQ says:
waveforms is a 2D array that contains analog input data in scaled data units. The data appears in columns, where each column contains the data for a single channel. The second (bottom) dimension selects which channel column. The first (top) dimension selects a single data point for that channel. The array must be transposed before graphing.
And the help for DAQmx says:
data returns a 2D array of samples. Each row corresponds to a channel in the task. Each column corresponds to a sample from each channel. The order of the channels in the array corresponds to the order in which you add the channels to the task or to the order of the channels you specify with the Channels to Read property.
It looks to me like you need to transpose the data you are getting.