Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

niswitch_64.dll not found

Hi All,

 I have just purchased a PXI chasis with a PXI-2530B switch card, and a PXIe-8360 ingterface card. This is connected to a windows 7 64 bit pc running VB6.0

 

I have used NIswitch soft panel and that appears to work and communicate with the PXI systemm ok. However when i run any of the VB6.0 examples it reports a file not found NISwitch_64.dll - the reference exists in the project and the object browser shows all the function and variables available within NISwitch_64.dll but the program will not run. and the file exists where expected. 

Out of desperation i have tried placing the dll in the syswow64 folder and the system32 folder to see if it is a path issue, no joy.

 

Does anyone have any suggestions ?

 

Thanks

 

Justin

 

 

0 Kudos
Message 1 of 4
(9,691 Views)

Were you able to solve this? I have the same problem. 

0 Kudos
Message 2 of 4
(6,526 Views)

Hi Simon,

Yes, with a lot of help from the NI guys. turns out later version of niswitch are not compatible with VB6. this is what i have added to the comments section of my code - it took a number of iterations to get the various versions of stuff working together. SHould move to .net at some point but for now VB6 works well for what i want.

' National Instruments Requirments
' 1.) NIswitch 4.3
' 2.) NI Visa 5.1 ( or less)
' 3.) NI DAQMX v14.5 (updated to enable the new firmware on the TC01 thermocouple

 

From memory - the Niswitch 4.3 gets the switch components working with VB6  the NI-visa 5.1 or less may or may not be needed for compatibility with niswitch 4.3

I have updated the daqmx versions a few times without any issue so that seems completely independant (in terms of requirements) for Visa and Switch

 

hope this helps (full credit to Tim Hurst at Ni for being patient and a lot of research)

 

J

 

 

 

0 Kudos
Message 3 of 4
(6,524 Views)

I'm ashamed to say I found my problem and it was a stupid one. I just wanted to control some switches via VBA, and I had chosen niSwitch_64.dll as a reference in VBA. It was giving me the "not found" error, and I thought there was a DLL dependancy issue. Ultimately, though, I hadn't realized the the MS Office installation I was using was 32-bit. Once I chose niSwitch_32.dll as a reference instead of _64, everything worked without a hitch.

0 Kudos
Message 4 of 4
(6,521 Views)