LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulating Hardware

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!

0 Kudos
Message 1 of 4
(2,681 Views)

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.

0 Kudos
Message 2 of 4
(2,675 Views)

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.

0 Kudos
Message 3 of 4
(2,666 Views)

Thanks all... it makes sense now.

 

 

0 Kudos
Message 4 of 4
(2,663 Views)