03-28-2012
01:53 PM
- last edited on
06-12-2024
09:16 AM
by
Content Cleaner
HI,
I'm developing an application in VB6 to control a NI USb - 6501 device. I follow all example that I found in the NI website but with no success.
My problem is that I can't use a dll to reference in VB6.
I had follow the steps and example in https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MiWSAU&l=en-US and another example that show how I must proceed to create a wrap dll. My problem always is the same, i get error that show to me that the dll can't be found. I already copy to the system32 folder...
Attached, the last example that I follow. I appreciate if somebody could help me.
03-29-2012 11:46 AM
03-29-2012 02:59 PM
Hi Abel,
Tks for support me. Yes, I enabled the Vb Support. I Can't understand why the program can't find the dll, I know that all these DLL are based in C, and I can't registry then use the command "regvsvr32". Did you check the source code attached, maybe you can take a look in .bas file, that make the reference to the dll.
Best Regards,
03-29-2012
03:21 PM
- last edited on
06-12-2024
09:17 AM
by
Content Cleaner
I saw you are using DAQmx Base, but to use your board with VB you need use NI-DAQmx, they are differnt drivers.
https://www.ni.com/en/support/downloads/drivers/download.ni-daq-mx.html
Regards,
Abel Souza
03-30-2012 11:32 AM
Hi Abel,
Tjs again for support me. I Download the program and installed in my PC. But, I'm still getting the same error.... "File not found" see picture attached.
Can you help pls?
03-30-2012 02:00 PM
Try rebooting your PC after a software install.
Also do a search for that file.
03-30-2012 02:30 PM
Hi Abel,
Yeah, I already reboot my PC ... I can see the file in my system32 folder.
Attached the picture from my system32 and the dll there.
03-30-2012 02:42 PM - edited 03-30-2012 02:44 PM
I saw in your picture the DLL is from DAQmxBase and not from DAQmx. I suspect you are using a function from DAQmxBAse in place of functions DAQmx.
I suggest you go to Start>>All Programs>>National Instruments>>NI-DAQ>>Text Language Support and run a VB code example and check if you receive the same error.
Best regards,
Abel Souza
03-30-2012
02:52 PM
- last edited on
06-12-2024
09:18 AM
by
Content Cleaner
Hi Abel,
I'd like to use the dll for Measurement Studio, I think this is similar than use an API. And in the example just have using anoter dll "Nidaq32.dll".
I want to develop my application following the example: http://www.ni.com/swf/demos/us/mstudio/vb6daq/default.htm
But, as I describbed my program report that can't find de DLL. If you had some example, I appreciate.
Best Regards
03-30-2012 03:45 PM