ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Labview software for Multiple USB 6009's

Hi All
 
I have 3 USB 6009 DAQ's all being used for diffrent testing applications.  I currently have the problem that I want to change the Labview code for one of the applications but test it using a different USB 6009.  Labview does not allow for this though (that I can see) the USB cards all have a unique name on the PC (default dev1,dev2 and dev3).  Is there a easy way to get around this problem?
 
Hope someone can help
 
Phill
0 Kudos
Message 1 of 7
(4,191 Views)

Have you kept your device name/Physical channel input as a constant on block diagram??

If yes, make it a control and choose the device whose channels you want to acquire from before you run the vi

Also, You can keep seperate acquisition loops for all your 3 devices on the same vi and assign one device's channels to each acq loop.

I not really understand what exactly you are trying to express. Could you be a bit more clear, so that we could suggest better?

0 Kudos
Message 2 of 7
(4,186 Views)

I have used the DAQ assistant to create the inputs which does not give the ability to select the device name?  I have got around the problem by changing the device name using the Measurements and Automation explorer.  It is not really a solution but as I have the only PC with more than one device installed it should not cause a problem! 

0 Kudos
Message 3 of 7
(4,170 Views)

Try exploring the possibility of using using DAQmx functions to build an acquisition vi.

Or you could start off by using example vi's shipped with LabVIEW.

Find Examples>>Hardware input output>>DAQmx>>Analog Measurements>>Voltage Folder

The advantage of using these vi's is that you do not have to create a task or a DAQmx task/ Global channel in MAX. You can configure the channels from the device that you want to acquire in the program itself.

Note: you cannot acquire from two devices in one task, but will need to have a seperate task for each device.

0 Kudos
Message 4 of 7
(4,164 Views)
Hi VirtualPhill

I would agree with devchander here. It would be a good idea to explore the voltage measurement examples that ship with LabVIEW. You can open the Example Finder from Help >> Find Examples. The Cont Acq&Graph voltage-Int Clk.vi example will give you a good idea on how to write DAQmx code. In this example you will able to select the device you want to acquire from.

Have a good one.

Malay D
NI
0 Kudos
Message 5 of 7
(4,149 Views)

Hi

This does give the ability to change the Device but I do not want to give the end user the choice of changing the input as well.  Is there a way that the device/input can be split into device and input seperatly? This way I can fix the inputs and select any of my devices?

Cheers for the replys

0 Kudos
Message 6 of 7
(4,145 Views)

Is there a way that the device/input can be split into device and input seperatly? This way I can fix the inputs and select any of my devices?

 
That should not be a problem.
Just think of a logic to create physical channels by appending Device name and channel names using 'concatenate string' function to create a list of physical channels.
( Look at the pic attached )
In this, keep the 'channel names' as a constant on your block diagram and keep changing the device name.
 
Hope this helps,
 
Regards
Dev
0 Kudos
Message 7 of 7
(4,132 Views)