07-05-2012 09:51 AM
Hi,
We've been working with two vehicles controlled by Labview 2011. Each vehicle has a cDAQ NI-9188 fitted with a digital IO module and a thermocouple module. We have named the first chassi to "Vehicle" and the modules to "MotorControl" and "Thermocouple" in MAX. We have then created a software that can control the vehicle, everythings works fine on one chassi.
However, when connecting to chassi 2 in MAX we get the problem that the chassi can not be rename to the same name as chassi one, even if chassi 1 is not connected. We can also not change the module names in chassi 2 because the names already exists in chassi 1.
How can we solve this problem? It must be quite common that it exists several identical hardwares that should be controlled by a single software. Basically, my knowledge is not good enough right know. :mansad: Could you please advice me?
WIth best regards,
Mattias
Solved! Go to Solution.
07-09-2012 08:56 AM
DAQmx device names for all devices in the system (including disconnected devices) must be unique.
You solve this problem by giving everything distinct names: for instance, the first one can be "Vehicle 1"/"MotorControl 1"/"Thermocouple 1" and the second can be "Vehicle 2"/"MotorControl 2"/"Thermocouple 2".
There are a couple ways you could deal with this in software. If you go with the above, for instance, you can just append the number to the end of the device name prefix, like so:
Another strategy would be to put all of the device names into a cluster (so you can pass all your configuration information around as a group).
07-10-2012 11:58 AM
Thanks for the reply.
Now I've learned a lot, thanks again!
/Mattias