11-16-2010 05:25 PM
Can NiDAQmx be used in VB6? If so, can the resulting code run in Windows 7 or Windows 7 XP Mode?
11-17-2010 11:20 AM
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
02-27-2011 08:29 PM
In that article you cite it says
The current version of NI-DAQmx provides legacy support in the following Visual Studio environments/languages:
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?
02-27-2011 08:40 PM
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
03-02-2011 09:17 AM
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
03-03-2011 01:03 PM - edited 03-03-2011 01:04 PM
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
03-03-2011 01:15 PM
but if I simply utilize the dll without the type library I will be able to use any function in the dll?
03-03-2011 01:25 PM
That's right. If you don't use the type library, you can call any function in the DLL.