06-29-2010 06:41 AM
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
06-29-2010 08:40 AM
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.
06-29-2010 08:45 AM
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
06-29-2010 12:44 PM
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.