03-24-2022 07:46 AM
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
Solved! Go to Solution.
03-24-2022 08:22 AM
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.
03-24-2022 09:16 AM
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).
03-24-2022 09:35 AM
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.
03-24-2022 10:07 AM
What parameters do you want to change dynamically ?
03-25-2022 02:26 AM
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.