02-03-2006 12:26 PM
02-03-2006 10:11 PM
Hi since all ur SCXI modules seem to be multiplexed to a singel DAQ card, there is no way you can acquire them using two acq loops simultaneously.
Just do this, acquire both voltage and thermocouple channels by creating individual virtual channels by using create Virtual channel VI inside a for loop , configure all channels for a single task, acquire using a single read.
Now the DAQmx read will read both voltage and temperature channels
Any doubts, do get back
Regards
Dev
02-16-2006 06:45 AM
Dev,
Thanks for your reply. I was sure that attempting to start the acquisition twice was not going to work, but the problem is that you have to define how the Create Virtual Channel vi is to be used before you can wire to it. The appearance of the vi icon and the terminals available change according to what kind of device you are connecting. Therefore, I wasn't quite sure about what you suggested, using a loop structure, because of course the same vi icon would be in each instance of the structure. But you did give me the required clue. What is not made clear in any of the NI documentation is that it is possible to chain the Create Virtual Channel vi's together. Therefore we start by defining a set of voltage channels, which creates a task reference and then on the same task we can use the vi again, but this time as a thermocouple input, and effectively add channels of different kinds to the one acquisition list. This is almost identical to what I described originally as the way to solve the problem before LabVIEW 8, except that the thermocouple linearisation is defined before the continuous acquisiton loop start rather than after it.
Anyway, thanks again for your help. The application now works perfectly and we have a happy customer.
Chris
02-16-2006 10:15 PM