Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using NiDAQmx in VB6 on Windows7

Can NiDAQmx be used in VB6? If so, can the resulting code run in Windows 7 or Windows 7 XP Mode?

0 Kudos
Message 1 of 8
(3,740 Views)

Hello,

 

DAQmx can be programmed in VB6, but with some of the newer drivers you do not have access to some of the new features with VB6. The program will be able to run on Windows 7 as long as you are programming with a driver that supports Windows 7. I would also recommend taking a look at this article that talks about VB6 support for DAQmx. Have a great day!

 

Best Regards,

 

Adam G 

National Instruments
Applications Engineer
0 Kudos
Message 2 of 8
(3,713 Views)

In that article you cite it says

 

The current version of NI-DAQmx provides legacy support in the following Visual Studio environments/languages:

  • Visual Studio 6.0 (Visual Basic 6.0, Visual C++ 6.0) - Support for new devices and features last updated in NI-DAQmx 8.3

The current version was listed as 9.22. Is there support for new features in VB6? Specifically the simultaneous analog input of X series usb boards. The DAQmx ANSI C Dev header and library files are usable in vb6, but are they updated with new feature support?

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

Hi again,

 

also, is there a list somewhere of devices that are returned with DAQmxGetDevProductType ? I would like to know so I can detect specific devices.

 

BTW, the C library is usable in vb6 if you call to a C dll (even written in VC 6) that calls the NI library. I don't understand how NI might not support vb6 if the library is always updated with future support. Will the library be updated with new device support? I mean NIDAQmx.h and NIDAQmx.lib.

 

Thanks,

 

Joe

 

 

0 Kudos
Message 4 of 8
(3,566 Views)

Hi Joe,

 

There are support for VB6 in the DAQmx 9.2.3, which mainly consists of examples. the VB6 support covers all the device  supported by DAQmx as a whole so it should include X series and other hardware.

 

As for the  DAQmxGetDevProductType I would check the DAQmx function reference help for more info

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 5 of 8
(3,525 Views)

Hi Joe,

 

In addition to what Joe D. said, the VB6 type library (NIDAQmx.tlb) included with NI-DAQmx 9.2.3 is identical to the version that was included with NI-DAQmx 8.3. This means that functions that did not exist in NI-DAQmx 8.3 are not supported in VB6. For example, DAQmxXSeriesCalAdjust() was added in NI-DAQmx 9.0, and DAQmxSetTriggerSyncType() was added in NI-DAQmx 9.1.

 

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 6 of 8
(3,508 Views)

but if I simply utilize the dll without the type library I will be able to use any function in the dll?

0 Kudos
Message 7 of 8
(3,503 Views)

That's right. If you don't use the type library, you can call any function in the DLL.

---
Brad Keryan
NI R&D
0 Kudos
Message 8 of 8
(3,498 Views)