Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Run-time Error 10459 - Can't Load NIDAQ DLL

Hi,
 
I'm using VB6 and Measurement Studio 6 with NIDAQ 7.4 and a PCI-6013 device.
I've written an application which accesses the daq card, but also will open another seperate VB6 application which needs to access the daq card.  Before the first application accesses the daq card, it resets the daq card using the cwdaqtools control with the following command:  CWDAQTools1.ResetDAQDevice (1). 
I then unload the form which referenced the daq card, and then open the second application.  When the second application opens, I get the attached error message: #10459 was generated by cwdaq.  The NI-DAQ DLL could not be called due to an interface error.
This doesn't happen when I run the first application from VB6 in debug mode.  It also doesn't happen if I run the compiled applications with VB6 just open. 
Can anyone shed some light or offer any suggestions as to what is going on here, and how to solve the issue.
 
Additionally, due to the fact that I'm using Measurement Studio 6 I need to be using the traditional daq drivers.  NiDAQ 7.5 doesn't have the traditional daq driver, so I'm forced to use NiDAQ 7.4.
 
Thanks for any help.
 
Regards,
Max
0 Kudos
Message 1 of 5
(10,493 Views)

Dear Max,

Please follow the steps listed in this KnowledgeBase. Have a great day!

Sincerely,

Marni S.

0 Kudos
Message 2 of 5
(10,471 Views)
Hi Marni,
 
I've visited the link as suggested.  Here are the results based on the suggested solutions in order:
 
1.) I'm fixed in the order in which the applications can be opened, as one application is used to open the second.
 
2.) I'm working with the latest version of NI-DAQ (7.5 doesn't work with Measurement Studio 6)
 
3.) Target system is using the latest version of NI-DAQ.
 
4.) Downloaded palBase and this worked.  However, since this application is designed as a distributable application, it doesn't seem plausible to ask the end user to work with palBase, especially if the end user is not comfortable working with computers.  Is there another way to accomplish the same effect programatically which would be invisible to the end user?
 
Regards,
 
Max
0 Kudos
Message 3 of 5
(10,469 Views)
Dear Max,
 
As far as I know, this can't be done programmatically. However, while some systems do require palBase, others do not. Good luck with your application.
 
Sincerely,
Marni S.
0 Kudos
Message 4 of 5
(10,454 Views)
 Run-time Error 10459 - Can't Load NIDAQ DLL and I did download palBase.exe and doesn't work.
0 Kudos
Message 5 of 5
(8,477 Views)