cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter update from command line for LabVIEW executable

SOLVED
Solved!

Parameter update from command line for LabVIEW executable

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

5 REPLIES 5
zou
Trusted Enthusiast
Trusted Enthusiast
Solution

Re: Parameter update from command line for LabVIEW executable

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

Re: Parameter update from command line for LabVIEW executable

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).

zou
Trusted Enthusiast
Trusted Enthusiast

Re: Parameter update from command line for LabVIEW executable

Message contains a hyperlink

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
Defaphe
Member

Re: Parameter update from command line for LabVIEW executable

What parameters do you want to change dynamically ?

Re: Parameter update from command line for LabVIEW executable

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.