04-04-2017 05:15 AM
Hi,
I have a Labview exe for simple addition functionality. The input values for addition are obtained using command line arguments. I have to get back the result, in the VI from which the exe is called. I have tried using .net property to write in the console so that I can get the result from Standard Output terminal in the "System exec" node.
Is there any other way of getting result? The above approach needs .net environment to be installed which I am trying to avoid.
04-04-2017 05:18 AM
Unfortunately there is no good way to do that. What I do in order to extract data from LV in a command line is make a text file inside the VI and then parse it in the command line.
04-04-2017 10:43 AM
You can return and send params via local udp communication, via text file (continuous polling - bad) as mentioned
Do you really need the mathematical function to be exe? Can you make your subvi into lvlibp, dll or call it directly?
04-04-2017 10:51 PM
Thanks Alexander_Sobolev for your reply. I just wanted to know if there are any ways to get the result out from exe. I will consider your suggestions.
04-04-2017 10:51 PM
Thanks Alexander_Sobolev for your reply. I just wanted to know if there are any ways to get the result out from exe. I will consider your suggestions.
04-04-2017 10:53 PM
Thanks nicodem for your reply.
04-05-2017 01:03 AM
Kindly let us know whether you have implemented the solution? Post your VI for reference and guide to others.
04-05-2017 03:49 AM
Hi Mathan,
I have used .Net Invoke node Console.WriteLine to write the data. This data I can get from the Standard output of System Exec node from which the exe is called.
I have decided to use this approach itself.
Regards,
Viknesh
10-03-2018 05:45 AM
Hi
can you please compile the file to support labview 2015
thanks
wisam