07-25-2014 08:54 AM
Hello,
I'm currently trying to build a .exe of a VI I've created that communicates with a power supply through GPIB (setting voltages & reading powers). Although the VI runs correctly inside LabVIEW, it keeps failing when I build it as an .exe.
I've tried debugging the .exe through the LabVIEW debugging option and found out that the power supply's VIs were returning this error:
"-1074130544 session handle not valid"
I have NI-VISA, NI-Serial, NI-488 and all the other stuff installed. Also, I'm testing my .exe on the same PC where the original VI is correctly working.
I've tried looking out on internet... though it seems there's only a few people who had that issue.
When I look in my project's dependancies, I can see all the power supply's VI needed and the .dll. The .dll file also seems to be compiled with the .exe (located in the build folder).
I really don't have a clue what's the problem... any advice would be welcomed!
I've attached the project and the main VI file.
Thanks!
07-25-2014 09:19 AM
The chr62000 driver dll needs to be added to the always enclude list.
07-25-2014 10:05 AM
Tried that, added the .dll to the "always included" section. Still doesn't work.
07-25-2014 10:11 AM - edited 07-25-2014 10:11 AM
Also, if that can be of any help, I'm using a USB/GPIB Agilent adaptor to wire my Chroma power supplies to the PC. That may be the issue considering Agilent and NI drivers could be conflicting... Any ideas?
07-25-2014 11:35 AM
07-28-2014 08:50 AM
I've already enabled the Tulip.dll inside MAX. How do I know to which dll the driver is pointing?
Thanks
07-28-2014 10:12 AM
07-28-2014 01:21 PM
It says the pathfile is chr62000_32.dll (by default).
07-28-2014 01:25 PM
07-28-2014 02:12 PM
If it's the correct .dll name, I suppose that it must be correct path too. What else could be wrong??