LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter update from command line for LabVIEW executable

Solved!
Go to solution

Hi,

It is possible to set parameter values from the command line when calling a LabVIEW executable by using the block "Property node". My question is; is it possible to update and change LabVIEW parameters in an already running executable? If so, how can this be done?

 

I would be very thankful for suggestions!

 

Best regards

Christoffer

0 Kudos
Message 1 of 6
(1,623 Views)
Solution
Accepted by topic author ChristofferHjalmarsson

The property: Application => Command Line Argument ONLY works when an LabVIEW application launches, does NOT work for a running LabVIEW application.

 

To solve your problem, you have to launch another LabVIEW application which takes the command line argument, and uses VI Server function to pass the parameters to the running LabVIEW application.

 

 

George Zou
0 Kudos
Message 2 of 6
(1,608 Views)

Thank you very much for the answer! I am quite new to LabVIEW so I was wondering if there is an easy way to use VI server functions to send values from one LabVIEW program to the front panel of another? Also, will it later be possible to make executables of the two VIs, the reason of doing this is basically to not have to by a large amount of LabVIEW-licenses (which the company won't agree to).

0 Kudos
Message 3 of 6
(1,589 Views)

For VI server example, take a look: https://www.notatamelion.com/2015/05/25/using-vi-server-to-interact-with-executables/ 

 

To create executable from VIs, you have to have the Application Builder.

 

George Zou
0 Kudos
Message 4 of 6
(1,574 Views)

What parameters do you want to change dynamically ?

0 Kudos
Message 5 of 6
(1,566 Views)

Thanks a lot for your replies!

I just wanted to dynamically change some front-panel numeric values of an executable from a python-file. However, it seems that maybe it is a bit too involved for me.

0 Kudos
Message 6 of 6
(1,528 Views)