04-05-2010 09:37 AM
I am using a USB-6009 with 64bit Windows 7. I have NI-DAQmx 9.1 installed. I am using Image Pro Auto Pro scripting environment, which is compatible with visual basic labraries. Regardless of which options I select during install (user account control disabled) I cannot find nidaqmx.tlb. Also when I load NIDAQmxErrorCheck.bas I get "Expecting an existing scalar variable" for: 'bufferSize = DAQmxGetErrorString(errorCode, 0, 0)', it appears it cannot find the DAQmxGetErrorString command.
I uninstalled all NI software and re-installed NA-DAQmx 9.1 with all .NET and API options, but still have the problem. Can I manually install just the nidaqmx.tlb file?
04-05-2010 09:38 AM
04-06-2010 10:51 AM
nidaqmx.tlb should be found in C:\windows\system32. If it is not there, it would seem something might have happened during installation (or support simply isn't installed). I would recommend that you go to add/remove programs and select "National Instruments Software". Then click "NI-DAQmx 9.1" and click "Modify" on the right. During the feature tree part of the installer, under "Application Development Support", look at "Microsoft Visual Basic 6.0 Support". If it's currently not selected (grey X), select it and finish the installer. If it is currently selected, uninstall it by selecting "Remove this feature"; complete the installer and then repeat ensuring to re-add this feature. If you are reinstalling that feature, ensure that antivirus is currently disabled as well.
04-06-2010 11:12 AM
Andy,
nidaqmx.tlb is installing to SysWOW64. I tried removing and re-installing with AV off to no avail.
04-06-2010 11:16 AM
Okay. It makes sense that it's installing the file to SysWow64 since you're on a 64-bit operating system; that is to be expected (just overlooked when I posted before).
That being said, you should be able to manually add that location's nidaqmx.tlb to your project references (Project>>References menu, then click "Browse" and select the nidaqmx.tlb from SysWow64).
04-06-2010 12:21 PM
Just a thought, my IDE is a 32 bit app. Does that mean it won't find libraries installed to SysWow64? Is it possible to install the tlb to both SysWow64 and sys32?
04-06-2010 12:24 PM
04-06-2010 12:28 PM
Right. Visual Basic 6.0 is a 32-bit IDE. In fact, I'm surprised given its age that it even let you install on a 64-bit OS.
I wouldn't be surprised if it is set up to look specifically at "system32" since 64-bit was a far off concept when it was released. Did you try to browse to the syswow64 location as I recommended? I would be hesitant to copy the nidaqmx.tlb file to System32 since it probably uses relative paths to DLLs (pulling 64-bit dll's into 32-bit applications wouldn't work).
I'm assuming there is another reason why you're reinstalling NI software as this issue will not go away (we will not install any VB 6.0 support to 64-bit directories). To your other question about minimum required, the default installation should yield roughly what is really required (if you are wanting MAX). The installer is pretty good about not installing items that are not appropriate for your system.
04-06-2010 12:54 PM
My IDE is a VB6 clone built into image processing and microscope automation software called Image Pro Plus Auto Pro. I have been using it in 64bit Windows for quite some time and am using it with numerous other manufacturers VB6 libraries. That being said could NI-Daqmx be checking and finding no VB6 installation?
I didn't have to browse for the tlb, my references menu found it, and I confirmed it was pointed at the copy in SysWow64. I'm reinstalling NI software because it seems in my troubleshooting I have installed about 15 lines in the NI Add Remove entry, much of it seems inappropriate. Trying to slim it down to just what I need.
Hunter indicated I needed all the .NET install options as well is that correct?
04-06-2010 01:00 PM
You should not need any of the .Net components. In fact, they are a completely different API (C vs .Net); that is, VB 6.0 uses the C API for DAQmx.
I'm going to reimage my test machine to Windows 7 64-bit, install DAQmx 9.1 (only selecting VB 6 support as an additional feature), and test this out. I'll get back with you after I've tried that out.