Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple 6009 VB6

Hi,

 

Currently, I am using VB6 to collect samples from 1 USB 6009.  Is there a way to connect 3 USB-6009 to the same computer and collect analog outputs (24 channels) from VB6 at the same time?

 

Pei-Ying

0 Kudos
Message 1 of 4
(3,166 Views)

Yes. Each device, when properly installed will have a unique name such as /dev1, /dev2, and /dev3.  Your VB program will use these device names to communicate with them.  You will (as far as I know) only be able to read 1 channel at a time from any of the the devices. I believe you may be able to run 3 intances of your program, each using a unique device name, so you can read 3 channels at one time simultaneously.

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

Hi, Tom,

 

Thanks for the reply!

 

Do you know where can I find the commands to use in VB6 to access the /dev1 , /dev2, /dev3?  Is there any examples that you know?

 

Pei-Ying

0 Kudos
Message 3 of 4
(3,158 Views)

When you installed DAQmx, there was an option to inlcude VB6 support.  If you checked that option, there should be some programming examples installed in, I believe, the shared documents folder for windows.  You can also search the NI site under code examples. 

 

This is one that should help get you started: NI-DAQmx: MIO Continuous Analog Acquisition with NI-DAQmx and VB6

 

As the 6009 is rather "simple", you may need to modify or remove some of the options that may be available in the examples.

0 Kudos
Message 4 of 4
(3,147 Views)