06-29-2021 09:28 AM
Hello all,
I am working on a project in which my created LabVIEW exe should continuously read from the command prompt input. I have used "Get Command Line Arguments. vi" but read only the first-time input.
For example, as shown in the attached image, it is reading the first time input "Hello world" but has not updated the "new data."
06-29-2021 01:50 PM
A couple things here...
06-29-2021 10:45 PM
1. LabVIEW block diagram:
2. Exactly that's what I need to perform in my code, I want that my LabVIEW(exe) should read continuously the inputs from command prompt.
Regards
Kaustav Sen
06-29-2021 11:14 PM
You can't.
Your command prompt picture shows you are executing a program with a set of arguments.
Then it shows you executing a program with a set of arguments. That means two different executions. Not one execution with "streaming" data.
Can you give me an example of any executable that actually works the way you want yours to work?
06-30-2021 09:23 AM
But what we are saying is Command line arguments are just that: Arguments that are passed to the program on start up.
Command line arguments are NOT a continuously read input during runtime.
A better explanation of that you are trying to do besides
I want that my LabVIEW(exe) should read continuously the inputs from command prompt.
Would really help us here.
But in general I would say you can't do what you are trying to do.