LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using different USB-6210's on same S/W

Hi Guys,

             I'm working on a series of test rigs which are controlled via labview using Datasocket / OPC and a PLC. But I have added a USB-6210 to each rig in order to monitor some extra voltages and I am having some problems with them.

 

I have complied and deployed the software but it isn't reading the analog inputs from the USB-6210, it just reads "0".

 

I can get a USB-6210 to work on my developer machine, but when I assign the channels in labview it seems that the usb device and even the usb port its plugged in to are unique, so if I chose AI0 on a USB-6210 then compile and deploy the code to a test rig, that channel wont exist as it will be using a different USB-6010 device....

 

I have 6 rigs each with a USB-6210 each, do I have to assign the channels using each individual 6210 and compile 6 separate executables ?

 

Surley not ..... 

0 Kudos
Message 1 of 3
(2,607 Views)

You shouldn't need 6 separate executables to achieve 6 different test rigs. In fact, don't do this because it will become a serious maintenance nightmare.

 

What makes each USB DAQ unique on a machine is its device name. I have two DAQs on my machine right now "Dev1" and "Dev2". If I switched the names around, the code would not longer work that uses those DAQs because the code relies on those names being correct to find the proper DAQ.

 

That said, check to see if your DAQs have the same name in MAX on your test machine that your development machine has. If they aren't the same you can change them to be consistent with your development environment and then you should be set. 

Message 2 of 3
(2,591 Views)

Hi there guys,

 

I strongly agree with Zenthoef's post. If you would like to take the continuity of your device names to the next level then I would recommend looking into transferring the MAX configuration of your development machine to your deployment machine. If this is something you'd like to read into then have a look at this link from our Knowledge Base.

 

Import and Export a MAX Configuration Through LabVIEW

http://digital.ni.com/public.nsf/allkb/BBB5B94C038267DF8625723E00030559?OpenDocument

 

Thanks for your time guys. All the best with your applications!

Rhys
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,547 Views)