10-07-2011 10:50 AM
I have a number of simulated devices I am reading through DAQmx tasks. My question is, when I hook up the real hardware, how do I change the task from the simulated daq to the real daq? Do I need to recreate the task?
Thanks!
10-07-2011 12:18 PM
Just change the device number of your physical channel input to point to the actual hardware. Let's say your simulated device is Dev1 and your actual hardware device is Dev2. Instead of inputting "Dev1\ao0:1" into the physical channel input of "DAQmx Create Channel", input "Dev2\ao0:1". Now the task points to the actual hardware instead of the simulated hardware.
10-07-2011 12:39 PM
I have a suggestion. When you use the simulated device, give it a unique name, e.g., vacuum-4. I do this in order to prevent misconfiguration of the devices being used. If you put multiple devices in, e.g., adding 2 USB devices. If you connect them in different order, the USB device will be labelled incorrectly. By providing your unique name, you can use MAX to rename the device and will not require your program to be changed.
10-07-2011 01:04 PM - edited 10-07-2011 01:05 PM
Thanks all... it makes sense now.