LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command Line: Add two numbers and return result

We can pass arguments to the executable with App.Args property and Pass all command line arguments to application in the executable build specification.


I'm looking for a way to return value from LabVIEW executable after execution to the same command line (like print output in C or python).

 

I notice that command returns back soon after I pass back on cmd and later LabVIEW gets triggered.

 

Ajayvignesh_MV_0-1656602334140.gif

 

PFA: Executables and Builds used for this purpose.

--
Ajay MV


0 Kudos
Message 1 of 2
(842 Views)

Hi Ajay,

 

Read somewhere that LV is not a command-line application to return something to CMD or interactively operate with CMD, this means LV exe can only take in arguments from CMD. Someone on LAVAG created a wrapper that allows you to work around this limitation.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 2
(836 Views)