06-19-2007 02:27 PM
06-19-2007 02:37 PM
Drew:
Can your DAQ card analog ouput provide enough current to provide excitation to all your sensors at once? Look at the specs in the manual for your card and the specs for your sensors.
You may also need to add some time delay after switching your mux to a given channel in order to to let the sensor signal settle out. (Not sure of the specifics of your sensors/mux)
06-19-2007 02:39 PM
06-19-2007 02:41 PM
The iteration count is converted to a Boolean Array with the Number to Boolean Array function (Boolean palette). I then use an Array Subset (array palette) to just get the first 5 elements of the array. I needed to do that because I only defined 5 digital output lines with the DAQ Assistant. The output of the second DAQ Assistant is converted to a waveform data type with the Convert From Dynamic Data (Express>Signal Manipulation palette) because I really am not all that fond of dynamic data. When you wire any signal through a for loop, the output is automatically auto-indexed into an array.
The first DAQ Assistant is set to Digital Output>Line Output and the second DAQ Assistant is an Analog Input task of one channel.
06-19-2007 02:45 PM
06-19-2007 03:51 PM
06-22-2007 02:23 PM
06-22-2007 03:08 PM - edited 06-22-2007 03:08 PM
I think you are missing the whole point. Here's a simple example. It has a for loop to get 64 signals. That creates an array of waveforms. Wire that into a for loop with the Tone and Spectral Measurement functions and these will operate on each waveform individually and create an array of results. You put the tone generation function inside the while loop. Fro testing purposes, move it outside in a for loop like I have here with the DAQ Assistant.
Also, what the heck are you trying to do with the tick count and merging that with the dynamic data? When you get dynamic or waveform data from DAQ, the data type includes timestamp information.
Oops. I jsut noticed that I didn't change the From Dynamic Data for the Spectral Measurement to create a waveform instead of the scalar.
Message Edited by Dennis Knutson on 06-22-2007 02:08 PM
Message Edited by Dennis Knutson on 06-22-2007 02:11 PM
12-23-2009 08:38 PM
Hi Dennis
Would you be able to provide an example on how 2 for-loops can be used for 2 different multiplexers? How will the VI be like?
Think I will assume that I have 2 different multiplexers and each multiplexer will have 32 channels (64 different channels altogether).