Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

missing VISA subVI in exe

Solved!
Go to solution

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.

Gabor M.
CLA
Download All
0 Kudos
Message 1 of 8
(4,275 Views)

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

0 Kudos
Message 2 of 8
(4,264 Views)

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 

Gabor M.
CLA
0 Kudos
Message 3 of 8
(4,262 Views)

Please send me the exe you built.

0 Kudos
Message 4 of 8
(4,258 Views)

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 

Gabor M.
CLA
0 Kudos
Message 5 of 8
(4,255 Views)
Solution
Accepted by topic author MGabor

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:

  • You seem to love sequence structures. Without any code changes whatsoever you can eliminate 50% of your sequence structures and the code would run the same way.
  • NEVER hard-code paths the way you have (e.g., "C:\Documents and Settings\user\Asztal\Távadó program LabVIEW\Végleges programok\Kalibráló\Kalibracio_UJ_menu.vi"). If someone else tries to run it they won't be able to since everying points to your user folder.
  • You do not need to use a polling system for your menus. The event structure can handle menus. Use the VI -> Menu Selection event.
  • Do not re-configure the serial port inside a loop. In your "Kalibracio_UJ_menu" VI you are configuring the serial port each time the loop iterates. Why?
  • Why are you dynamically opening the front panel of global VIs?
Message 6 of 8
(4,169 Views)

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

Gabor M.
CLA
0 Kudos
Message 7 of 8
(4,157 Views)

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

Gabor M.
CLA
0 Kudos
Message 8 of 8
(4,148 Views)