LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load dynamically String into a VI using LabVIEW Run-time Engine Version 7.0?

I would like to be able to traduce string into my application using import string method. I create an program with my VI to translate. When I use the import method, I get this error: the VI is locked. WHY ? because it works well in the edit mode but not using LabVIEW Run-time Engine Version 7.0 .
0 Kudos
Message 1 of 5
(3,154 Views)
Hello loup,

If you call dynamically a VI in your LabVIEW application you must add this VI when you build the .exe file.
To add this VI, go to the Tab "Source Files" when you build application and click on "Add Dynamic VI..." then chose the VI you call.
It should solve your problem.

In the attached file you can found an example of LV program that translate front panel.
Try to build exe file and add "Languages.vi" as dynamic VI and .txt files as "Support files".
I test it, it works.

I hope that this will help you.
Best Regards,

Sanaa T
National Instruments
0 Kudos
Message 2 of 5
(3,153 Views)
Thank you for your Help.
I did test your exemple. But it does not work onto my computer. I built the exe file but the dynamic VI does not appear when i use it?

Best Regards
loup
0 Kudos
Message 3 of 5
(3,153 Views)
Hello loup,

Before doing test, you should modify the block diagram in the VI "Launcher" and give to good paths of the VI "Language" and the ".txt" files.
Then create the exe file.

Sanaa T
National Instruments
0 Kudos
Message 4 of 5
(3,153 Views)
I already did it, of course.

loup
0 Kudos
Message 5 of 5
(3,153 Views)