07-20-2011 08:09 AM
Hello there!
I've a problem about VISA. I wrote a program which works fine in Labview, but when i want to build an .exe from it i get such a message i attached. I load several subVI-s, but only with VISA Config, and with wirte to spreadsheet. I attache my program too. Sorry for that, but i wrote the texts in hungarian, if there would be any problem i ll write them in eng. Thanks for ur reply
Regards.
Gabor M.
Solved! Go to Solution.
07-21-2011 04:12 AM
Dear Gabor,
Afret building the exe, do you execute it on the development PC or on other computer?
In order to properly execute an application (.exe) , the target must have LV Run-Time Engine and the used drivers installed.
You can distribute the Engine altogether with any drivers in an installer by selecting from Build Specifications the option: installer
Let us know how it works out for you,
Mircea
07-21-2011 04:39 AM
Dear Mircea!
I execute the program on the pc, where i built the program. Thats why i ask you about the problem, because ive never met such a thing. Thanks for your answer.
Gabor
07-21-2011 05:06 AM
Please send me the exe you built.
07-21-2011 06:11 AM - edited 07-21-2011 06:13 AM
If its ok to you, i can only send it tomorrow, because the program is on the PC at my workplace. But in the zip file i attached all VIs that the program needs. The main VI called like MENU_KALIB, the others will be called from the main or the subVIs menu. Thank you for your help.
Gabor
07-21-2011 01:15 PM
I'm confused. Initially you said this happened when you try to build the application. Now it sounds like you're saying this happens when you run the application. Either way, are you sure you have NI-VISA installed?
As to your code.... well, let's see here:
07-22-2011 01:35 AM - edited 07-22-2011 01:37 AM
Thank you for ur helping answer.
I open dynamically the front panel of global VIs, because they give a kind of information about the device, and the program process. Its a kind of information. I config the serial port in every iteration, because the configuration settings can be changed in a globa VI called Alapbeállítások, and, when Kalibracio_UJ_menu.vi runs, i can change settings in the menu, thats why i think i must do it in every loop. If there exists any other else possibility can you write it to me? The sequences will be eliminated, its only a first version of my code.
You wrote, that i musnt hard-code paths. Can you tell it to me, how can i do it on an other way? I think thats why i get the errors.
Thank you for your help!
Gabor
07-22-2011 02:21 AM
Hi again!
The hard-coded paths were the problems. I changed them to relative paths, and now everything is working. Thank you all, for your helpness and answers.
Regards
Gabor