11-09-2012 03:28 PM
So I'm beginning to dig through the VB6 code that was written about 8 years ago by one of my engineering students. Best I can tell, some of the first calls to the NIDAQ functions are:
INIT_DA_BRDS()
AO_VWRITE()
Basically, he checked to see if the status returned from the INIT_DA_BRDS() resulted in a valid install (by returning a valid device number code). If so, then we could send a voltage out to the D/A board, using the AO_VWRITE().
So, who can tell me what the equivalent DAQmx functions are?
Solved! Go to Solution.
11-12-2012 07:09 PM
You are looking for equivalent DAQmx functions but are you still working VB6 or a newer version of visual studio?
11-13-2012 07:31 AM
Ultimately, would like to use DAQmx in VB6, so that an entire rewrite of the VB6 code isn't required.
11-14-2012 06:40 PM
Hi BorgWarnerNVH,
I can see in this link: Converting VB6 NIDAQ-DAQmx that you asked for guidance to converting this code, Actually this document: transition is the most indicated to this convertion. The situation is that in DAQmx the way to use the functions is different because we use tasks so it harder to find like a equivalent function. But I recommend you to use the examples from the text-based code support for vb6, there you can check the NI-DAQmx C API Visual Basic 6.0 Help, do you have it installed?
11-15-2012 07:26 AM
Yes - in my researching the issue, I have found that there are no 'direct' replacements, and that the method in which things are done are completely different. I was able to take one of the sample programs and get it to work under the new operating system. So, now I just need to port it over to our current VB6 code.