LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Labview: Resource not found. sa_api.dll

Hello

I have a problem with running my "labview.exe" application file. After starting it there is the info message
"Labview: Resource not found.
sa_api.dll
An error occured loading VI 'DAQmx Create Channel (DI-Digital Input).vi'."
I have attached error messages screenshots
The .dll file sa_api.dll is in the 'data' folder next to the .exe file.
I've already tried to remove the sa_api.dll file from 'data' folder and put in the directory next to the .exe file

Version of LABVIEW Runtime that I am using is: LABVIEW2014 14.0.1f11 (32-bit)
Version of NIDAQMX is 1410f1Runtime
Version of NIVISA 1500runtime
Version of Spike Spike(x86)_3_8_1
Version of VSG25_106

 

Do you know why I've got this error while my sa_api.dll is in the directory next to .exe file?

 

 

image(3).png

image(2).png

image(1).png

image.png

0 Kudos
Message 1 of 2
(1,281 Views)

Either the messages are a little mixed up or you have actually two errors.

 

The sa_api.dll is NOT a National Instruments product but the interface DLL used by Signal Hound products. It has its own Visual C runtime library dependency that needs to be installed on your computer in order to be loadable. It depends a bit on what version of the sa_api.dll you are using, but reports on the Signal Hound site indicate that at least some versions of their DLL depends on the Visual C runtime that comes with Visual Studio 2012. If the copyright for your DLL is 2012 or earlier it will likely require an earlier version than 2012, if it is much newer it could be a newer version.

 

Generally you should NOT just copy DLLs with your executable. They can and often require other dependencies. While you can of course hunt down such dependencies it is a lot easier to use the actual installer for a software driver. It's manufacturer hopefully knew better what their driver all needs on a specific computer than you ever could be able to figure out.

 

If you have after that still errors remaining for the DAQmx VIs, you have forgotten to install DAQmx on your computer. I would recommend to install at least version 15.5 unless you use an older legacy hardware that may not be supported by that version anymore. Since your application was written in LabVIEW 2014 I would however not go higher than 19.x for the DAQmx installer. It may work with the latest and greatest version 2022 Q3 but it may also not.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 2
(1,255 Views)