Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Measurement Studio 6 Controls with NiDAQmx

Hi,
 
I'm trying to use my PCI-6220 with NIDAQmx 7.5 and measurement studio 6 in Visual Basic 6.  I understand that it's possible to use VB6 and access the niDAQ functions, but I want to use the measurement studio active X controls.  Can anyone confirm for me that this is or is not possible.
If it is possible, I can't understand why the controls like cwAI won't populate the card in it's device list.
 
Thanks in advance,
 
Chris
0 Kudos
Message 1 of 2
(6,135 Views)
The Measurement Studio DAQ ActiveX controls provide an interface to the Traditional DAQ driver. The Traditional DAQ driver API is significantly different than the DAQmx driver API. Consequently, the Measurement Studio DAQ ActiveX controls do not work with the DAQmx driver. The PCI-6220 is supported only under DAQmx. The Traditional DAQ driver does not recognize the PCI-6220 as a device that it supports, so the Traditional DAQ driver and the Measurement Studio DAQ ActiveX controls are not an option for programming this board.
 
As you mentioned, DAQmx 7.5 includes a type library that you can reference in Visual Basic 6. This type library provides an interface to the DAQmx C API. Unfortunately, this approach is not as easy as ActiveX controls, but it is a lot easier than coding directly to the C API from Visual Basic.
 
We don't have any plans at this time to create ActiveX controls for the DAQmx driver, mostly because Microsoft is discontinuing support for Visual Basic 6. I wish the answer could be better, but the best we can do for you at this time, if you want to use this board with Visual Basic 6, is to help you work through using the type library provided with DAQmx.
0 Kudos
Message 2 of 2
(6,128 Views)