03-26-2007 12:01 AM
03-26-2007 05:03 AM
03-26-2007 12:21 PM
03-26-2007 12:34 PM
It's just a matter of providing the correct channel list. Assuming that you are using LabVIEW, it would be something like Dev1/ai0:4 for consectutive channels or Dev1/ai0, Dev1/ai3,Dev1/ai5,Dev1/ai7,Dev1/ai9 for non-consecutive channels. You can easily pick multiple channels with either the DAQ Assistant or the browse option of the physical channel control.
The rest is a matter of setting samples to read and your loop rate.
04-03-2007 11:30 PM
Thanks Dennis,
Will it also work if the channels have different sensor (signals) and different sampling rate? How is the simultaneous sampling set, to acquire data at the same time from all the channels?
TIA.
04-04-2007 01:31 AM
04-04-2007 03:58 PM
Will it also work if the channels have different sensor (signals) and different sampling rate?
Well on your DAQ card, you cannot have an Hardware timed acquisition with different sampling rate for different sensors
okay , different sampling rate for different sensor is not possible, but is it possible if same sampling rate is set for different sensor(acquiring different signals)? If so how?
Thanks
04-04-2007 04:12 PM
You might want to start by going to http://zone.ni.com/devzone/cda/tut/p/id/5434 and get an introduction to DAQmx.
Put simply, you have a DAQmx function called Create Virtual Channel. You can use this to specify a channel or list of channels to be scanned. If you are mixing sensors (i.e. voltage and temperature), you use multiple Create Virtual Channel functions. The function creates a task and you wire the task output of one DAQmx function to the task input of the next DAQmx function. There is also a DAQmx function called DAQmx Timing. One of the inputs to this is a sample rate (number of scans/second). Look at the shipping examples to see how all of these functions are used.
You also have the option of using the DAQ Assistant. When you start it, you are asked for the type of task (voltage in, voltage out, etc.). You pick one and select the channels. This will create a task. When the creation is done, you can add additonal channels for a different type of measurement. This is all explained in the help text that is displayed by the DAQ Assistant.
04-04-2007 06:13 PM
Thanks to All,
That helps 🙂