Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

MStudio for VB6 beside DAQmx??

So far I used Measurement Studio for VB6 to control my NI hardware. Some weeks ago I had to write software to control a M-Series PCI-6251 board. Unfortunately this board is not supported by traditional DAQ (and Measurement Studio for VB6) anymore and I had to use the VB6 type library (DAQmx 7.5). It took me much more time than using MStudio 😞 but I finally succeeded to control the board.
 
Now I have to use a PCI-DIO-96 board on the same PC (beside the PCI-6521). This board is supported by traditional DAQ. I would like to control the board with the CWDIO ActiveX Control of MStudio, but it sems not to work. The properties dialog of CWDIO does not show any device and the sample programs for CWDIO also fails.
 
Measurement & Automation Explorer shows the board in both, DAQ- and DAQmx-Devices.
 
Can anyone tell me wat migth be wrong and if it is possible to use DAQ with MStudio for VB6 beside DAQmx?
 
0 Kudos
Message 1 of 8
(8,178 Views)

Some additional information....

Measurement & Automation Explorer:

     - the board successfully runs with TestPanels for DAQ and DAQmx

VB6 / MStudio / CWDIO control:

    - CWDIO1.DeviceName returns "none"
    - CWDIO1.DeviceType returns -1
    - CWDIO1.Ports.Count returns 0
    - assigning a port to output (CWDIO1.Ports(0).Assignment = cwdioOutput) fails with runtime
      error 'invalid index'

Message Edited by marwic on 09-09-2005 02:34 AM

0 Kudos
Message 2 of 8
(8,167 Views)


 

Message Edited by marwic on 09-09-2005 02:27 AM

0 Kudos
Message 3 of 8
(8,162 Views)

 

Message Edited by marwic on 09-09-2005 02:27 AM

0 Kudos
Message 4 of 8
(8,164 Views)
Found the solution in this thread ...
0 Kudos
Message 5 of 8
(8,153 Views)
I recently acquired an M series  PCI 6251, and I need to use it with Measurement Studio.
Is there any chance to do a program with the M.Studio and VB6, without doing all those function calls with the NI DAQmx C API ?
I have several programs already working with M.Studio activeX and the older driver, and it is quite impossible to change them all !!
 
 
0 Kudos
Message 6 of 8
(8,141 Views)
Hello pacheco,
Unfortunately, your M Series device can only be programmed with NI-DAQmx.  It can not be used with the Traditional NI-DAQ function calls and activeX containers.  Here is a KB about NI-DAQmx with VB6, if you are interested.
-Alan A.
0 Kudos
Message 7 of 8
(8,140 Views)
It's a great pity that NI does not support Measurement Studio activeX controls for the new board series anymore. The controls are much easier to use than DAQmx C API or VB type library. Maybe it would be better with .NET, but I'm sure there are a lot of VB6 programmers out there who cannot (or don't want to) change to .NET.
0 Kudos
Message 8 of 8
(8,127 Views)