LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write back to the CMD Line

Solved!
Go to solution

I'm working on a small little .exe that other individuals can use for their automation (Python... other langue than LabVIEW).  Does a quick simple task and that's it.  I was reading here how to pass cmd line arguments into my application.  But how do I pass back out a result?  Like, for this instance, I'm getting a file, I'm changing the file type and possibly the name, and I wish to send back out to the user what the new path/name is.  How does one do that?

0 Kudos
Message 1 of 13
(270 Views)

I don't think it is possible to build a CLI application with LabVIEW.

 

 

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 13
(257 Views)

@santo_13 wrote:

I don't think it is possible to build a CLI application with LabVIEW.

 

 


Oh?  So we can feed it arguments, let it do its thing, and then that's it?  Make sure it quits and move on?

0 Kudos
Message 3 of 13
(248 Views)
Solution
Accepted by topic author LuminaryKnight

Yes, LabVIEW-built applications can only take arguments as input and do not return user data to the caller/command line.

 

https://forums.ni.com/t5/LabVIEW/return-Argument-to-CMD/td-p/3729229

 

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
Message 4 of 13
(240 Views)

Well that stinks.

 

So new question.  Is there a way to get it to not open the UI?  My app doesn't have a while loop, I've put "Quit LabVIEW" and I made sure "Show Front Panel when Called" is not checked.  But it still opens for a blip of a second.  Would love for it to not do that.

0 Kudos
Message 5 of 13
(234 Views)

...

0 Kudos
Message 6 of 13
(232 Views)

I misunderstood. Nevermind

 

0 Kudos
Message 7 of 13
(227 Views)

Set the VI window run time position to Minimized also.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 8 of 13
(220 Views)

@Yamaeda wrote:

Set the VI window run time position to Minimized also.


That'll work.  Thank you

0 Kudos
Message 9 of 13
(210 Views)

@Yamaeda wrote:

Set the VI window run time position to Minimized also.


Scratch that, it's not working. Any thoughts on what I'm doing wrong?

LuminaryKnight_0-1730482882157.png

LuminaryKnight_0-1730483062825.png

 

 

0 Kudos
Message 10 of 13
(147 Views)