Hello,
I recently discovered a new function in LabVIEW 2019 called ‘Get Command Line Arguments.vi’. It allows an application build from LabVIEW to be launched and accept arguments from another application. The arguments come in the form of a string array.
I was not aware of this but it is and has been possible for some time to do the same thing using the ‘Application:Command Line Arguments property node.
I often call applications to perform specific tasks from my main program. It is reasonable to ask ‘why not simply embed the functionality’ directly into your main LabVIEW application?’ In my case, my main application is very large (1000s of sub-VI and yes, lots of OOP) and it take quite a bit of time to compile and build the application, which I distribute to a number of users. I find in some cases it is easier to develop a separate application to perform a specific task and I may have a number of revisions during development and/or maintenance. I often build applications from Python using pyinstaller and I call these from my LabVIEW application. However, with Python I can include a simple print statement to generate output and my main LabVIEW application is able to read these print statements.
Is there a method to pass parameters back to the main LabVIEW application after the small executable has finished, equivalent to how I use print statements in python?
Here is link to 'Get Command Line Arguments.vi'
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHdICAW&l=en-US
thanks,