Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

CWAI Control in VB6 Does not show installed channels

I downloaded the demo version of Measurement Studio for Vb6. When trying to use the CWAI DAQ component, following a tutorial example, I see that I can't add installed devices, because the component does not show then. The device, (USB-9215A) is installed and working. Tested and channels created using MAX 4.5.
 
If I assign the name of the channel manually, I get this message:
 
Runtime Error 10401
Configuring Channel
The specified device is not a National Instruments product, the driver does not support the device (for example, the driver was released before the device was supported), or the device has not been configured using the Measurement & Automation Explorer.
 
Bad impression for a demo software.
Rafael
 
 
 
0 Kudos
Message 1 of 2
(6,710 Views)
Hi Rafael,

The problem is that the USB-9215A is only supported in NI-DAQmx and the DAQ ActiveX controls (i.e. CWAI, CWAO, etc) are only supported in Traditional DAQ. Those ActiveX controls do not work with NI-DAQmx.  If you are going to be programming in VB 6 (though I would recommend trying to switch to .NET as that were we are investing our resources in), you can use the DAQmx type library to work with your device. See the NI-DAQmx Examples for Visual Basic 6.0 and
NI-DAQmx Support in Visual Basic 6.0 KBs for more information.

If you would like to transition from VB 6 to VB.NET, take a look at the transition series entitled
Transition from Traditional NI-DAQ (Legacy) to NI-DAQmx using Microsoft Visual Basic .NET. 

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(6,701 Views)