Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6008 VB6 ActiveX control - Device not listed

Hi all,

Newbie question for VB6 configuration:

I recently purchased a 6008 and am trying to read analog input through the evaluation version (installed this week) of the VB6 Measurement Studio package (with LabWindows/CVI).  After version 8.3 NIDAQmx driver installation with VB6 support, I connected the device and the Measurement and Automation Explorer discovered the device without a hitch.  I tested the input on the AI0 channel and things looked like they were in proper order, so I installed global virtual channels and a simple voltage acquisition task in MAX; all done without problems. 

I then move over to VB6.  After starting a new NI Measurement app, I try to add an AI activeX object.  However, when I want to select the input channel in the properties dialogue, the 6008 does not appear in the pulldown menu and appears not to be seen at all by VBStudio 6 (sp5).  I am not sure if I missed some documentation on the installation, so if anyone can point me in the right direction as to what I missed for VB6 to read the device, I would be hugely appreciative.

thanks,

Keith McGregor
0 Kudos
Message 1 of 2
(7,776 Views)

Hi Keith,

Those ActiveX controls that you drop onto your form (CWAI, CWDI, CWDO, etc) are based on Traditional DAQ and not DAQmx. The USB 6008 devices only support DAQmx and thus they will not work with Traditional DAQ --- thus means that you won't be able to use those ActiveX controls. Instead, you need to be using the type library associated with the DAQmx driver.

Check out the NI-DAQmx Support in Visual Basic 6.0 and NI-DAQmx Examples for Visual Basic 6.0 KnoweldgeBases for more information.

Also, if you are just starting out creating a new application, I might suggest seeing if it’s possible to move toward VB.NET. This is the direction that Microsoft is heading so if you can, you might want to try and migrate over. My only guess as to why you are starting out with VB 6 is that you have been using VB 6 for a while.

Best Regards,

Message Edited by Jonathan N on 06-01-2007 09:43 AM

Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(7,769 Views)