Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use the PCI 6251 with VB6

I was provided a PCI 6251, which appears to only be supported by NIDAQmx. At least I can't figure out how to get it recognized under NIDAQ. I was also given VB6 as my environment to program in. I found some evidence that suggests VB6 is not supported under NIDAQmx, even if I have Measurement Studio. Is this ture? Is there anyway I can get the PCI 6251 working with VB6, with or without Measurement Studio.

Regards,

Derrick
0 Kudos
Message 1 of 5
(3,580 Views)
Derrick,

The PCI 6251 is one of the newest released boards, and is supported only through the DAQmx interface. And while the older traditional NI-DAQ interface was supported through Visual Basic, the DAQmx API unfortunately is not.

I found the following Knowledge Base article which explains which development environments are compatible with the DAQmx API.

http://digital.ni.com/public.nsf/websearch/8715FD7608B79AFC86256ECA004B87F1?OpenDocument

Visual C++ 6.0, Visual Basic .NET, Visual C++ .NET, and Visual C# are all able to be used with the DAQmx API.
0 Kudos
Message 2 of 5
(3,580 Views)
You can make DLL function calls into the NI-DAQmx driver in VB6, however that is not the preferred method. Preferrably, you would have VB .NET and Measurement Studio 7, since that is the widely supported configuration.
0 Kudos
Message 3 of 5
(3,580 Views)
I have the same problem! I upgraded my 6035E-DAQ-Card to an 6259M-DAQ-Card which does not support the traditional DAQ-drivers anymore. To change all my code (3 programms with about 6 different forms who calls the DAQ-card each)or even starting with VB.NET is not possible.
How can I make the mentioned DLL function calls into the NI-DAQmx driver from within VB6????
Any help is welcome!
Thanks
0 Kudos
Message 4 of 5
(3,542 Views)
Hi,

You are all correct that the M-series boards only support DAQmx and that VB6 does not directly support Ni-DAQmx.

However, there are some ways around this problem by making calls directly into the DAQmx dll. This sometimes is tricky because of various datatype issues (VB6 does not have uInt64 datatype which is used by DAQmx). We have a couple examples that show how this can be done. Check out this thread:

http://forums.ni.com/ni/board/message?board.id=250&message.id=9633

I have also attatched some sample code.

-Sal
Message 5 of 5
(3,526 Views)