08-05-2009 03:03 PM
08-05-2009 03:26 PM
08-06-2009 02:45 AM
Let me rephrase. Multiple channels with different ranges. I guess it seems stange to me that I go to all the trouble to make global virtual channels definintions in MAX but only have the option of physical channels using the AI definitions.
I would love to see just one AI example using the MAX definitions with differing ranges and using the scales definitions in MAX.
08-06-2009 11:20 AM
Hi rlbrehm,
If you have already created Global Virtual Channels in MAX, you can use the DAQmx Create Task vi to create the task from those in LabVIEW.
If you have a Task configured in MAX, you may use it in LabVIEW as follows:
If you want to define the channels in LabVIEW with multiple characteristics, you can also use the DAQmx Create Channel multiple times in your code to define channels with different characteristics (scales, ranges, etc.). The following code shows how this can be done, although a more elegant solution would use an array of channel configurations in conjunction with a for loop.
DAQmx Acquire with Multiple Channel Input Ranges
The one thing to take away from this is that there are multiple ways to define your task and the parameters associated with each channel--any of the above methods should be able to produce the same result so it's up to you how you want to define your task and channels. I hope this is helpful.
-John