02-16-2009 12:30 PM
I'm writing a Labview code using NISWITCH 3.8 drivers. When I try to open any vi from niSwitch.LLB I get an error message "Error loading niswitch_32.dll. A DLL initialization routine failed".
I've tried to repair the drivers, even uninstalled them and deleted niswitch_32.dll from the location it was residing (C:\Program Files\IVI Foundation\IVI\Bin), installed the NISWITCH 3.8 drivers anew, but that did not help.
Please, suggest what else could be done to solev the problem.
Regrads,
E Stoykova
02-16-2009 02:24 PM
Hi E Stoykova,
To better assist you in discovering why niswitch_32.dll is failing to initialize, can you run Dependency Walker and save the file? I've attached an example .dwi file. Create a zip file to attach the .dwi file to a forum post.
1. Download Dependency Walker from: http://dependencywalker.com/
2. Run Depends.exe and select File->Open...
3. Browse to C:\Program Files\IVI\Bin\niswitch_32.dll
4. Save niswitch_32.dwi, zip, and post niswitch_32.zip
Thanks!
Chad Erickson
Switch Product Support Engineer
NI - USA
02-16-2009 02:37 PM
Hi Chad,
Here is the zipped dwi file.
Thanks,
E stoykova
02-16-2009 03:25 PM
Hi E stoykova,
From what I can see, your installation went okay. Let's see if we can find out the reason why you're getting the error when loading the DLL.
Next Step
1. From Dependency Walker, select File -> Open... C:\Program Files\National Instruments\LabVIEW x.x\LabVIEW.exe.
2. Select Profile -> Start Profiling...
3. Click OK. When LabVIEW finishes opening, click Blank VI.
4. In LabVIEW, select an NI-Switch VI and drop it on the block diagram. I'm expecting you'll get "Error loading niswitch_32.dll. A DLL initialization routine failed".
5. In Dependency Walker, select Profile -> Stop Profiling
6. Save LabVIEW.dwi, zip, and post LabVIEW.zip
Thanks!
Chad Erickson
Switch Product Support Engineer
NI - USA
02-16-2009 03:46 PM
Hi Chad,
Here is the LabVIEW.zip file.
Thanks,
Eli Stoykova
02-16-2009 04:48 PM - edited 02-16-2009 04:51 PM
Hi Eli,
Thank you for your continued assistance troubleshooting this issue.
It is possible that this issue is not niswitch_32.dll-specific. Other Modular Instrument drivers could also be affected. It will be easier to find the cause of the problem if we can determine the issue is niswitch_32.dll-specific. To verify this, can you see if you get an error when dropping a VI from one of the following MI driver versions (listed below) on the LabVIEW block diagram?
NI-DCPower 1.3 (http://joule.ni.com/nidu/cds/view/p/id/1206/lang/en)
NI-DMM 2.9 (http://joule.ni.com/nidu/cds/view/p/id/1094/lang/en)
NI-SCOPE 3.5 (http://joule.ni.com/nidu/cds/view/p/id/1096/lang/en)
If you do not have these versions installed, you can install them from the links above.
For reference, can you note what driver versions you have installed now? You can simply create and attach a MAX report (File->Create Report...).
Thanks again and best regards!
Chad Erickson
Switch Product Support Engineer
NI - USA
02-16-2009 05:39 PM
Hi Chad,
Please, find the attached files - LabVIEW DMM. zip and max_report.html.
The application I'm working with uses both niswitch 3.8 and nidmm 2.9 drivers. I do not have any problems with the DMM drivers, only with the Switch drivers and only recently (I was working with them for about 2 months without any problems).
Please, let me know if I can give you any additional information that will help.
Thanks,
Eli