11-18-2013 12:41 PM
I am having difficulty running an exe on an install machine.
The problem is that whenI lauch the exe, I get the following error:
LabVIEW: Resource not found.
chr62000.dll
An error occured loading VI....
the chr62000.dll is the driver for the chroma 62000 power supply.
I check the data folder that is created with the exe and the dll is there.
Any idea what is going on or how to fix it?
11-18-2013 05:38 PM
Your chr62000.dll has so called dependencies. That means it relies on other DLLs such as C runtime libraries or possibly other specific DLLs that are normally installed with the Chroma software.
When LabVIEW tries to load the chr62000.dll Windows notices the dependicies and tries to load them. If that is not possible Windows will simply tell LabVIEW that the chr62000.dll could not be loaded, without any further detailed information about why. This is what LabVIEW then reports to you. You will have to find out from the manufacturer what other dependencies that DLL has and install that on the target machine.
If there is an installer for the Chroma software driver, then run it on the target system. It most likely will take care about installing all necessary dependencies.
11-19-2013 07:34 AM
ok this makes senss.
There is no installer for the drivers. It was a zip file that was unziupped on the deveopment system, in the instr.lib folder. I have attached the zip file here.
Before this error the .exe could not find cvirte.dll either, but I copied all of the cvirte.dll in the system32 and syswow folders and plced them on the machine that wil be running the .exe.
This fixed that issue, but the chr62000.dll is the problem now.
So if there is no installer for the driver, what can I do ?
11-19-2013 07:42 AM
cvirte.dll is the runtime dll for LabWindows CVI. You should download a recent installer for LabWindows CVI from the National Instruments software download site and install it. Just copying cvirte.dll and possible other dependencies is very likely not enough, as components of LabWindows CVI are also compiled using the MS Visual C compiler and therefore have dependencies on the MS C runtime and quite possibly other support libraries. The CVI RTE Installer will take care about installing everything necessary and registering properly in the registry so driver software can find it where they expect it.
11-19-2013 08:25 AM
Correction: I meant to say to download the installer for the LabWindows CVI Runtime.
The CVI 2012SP1 Runtime Installer: http://www.ni.com/download/labwindowscvi-run-time-engine-2012-sp1/3663/en/
Another version of the CVI RTE should also work, but you need to have one on your target system. And not just copying the DLLs over, you will very likely not be able to get them all correctly copied and registered.
11-19-2013 08:32 AM
I would think that by running an exe that required the cvi run time that I would have gotten an error similar to an error whenyou try to launch a labview exe without having the labview run time engine installed.
I will install the 201 CVI RT and maybe all omy issues go away 🙂
11-19-2013 08:49 AM
Where does your exe expect the dll to be found?
How has you setup the Call Library Function Node?