LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous sending of data through command prompt to a created labview exe file

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."

Kaustav19_0-1624976662870.png

 

0 Kudos
Message 1 of 5
(2,762 Views)

A couple things here...

  1. Post your code!
    1. We can't tell you what you have done wrong if we can't see exactly what you have done
  2. I don't think that's how command line arguments work.
    1. A command line argument is passed to the exe ONCE on startup, not continuously during runtime.
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 5
(2,718 Views)

1. LabVIEW block diagram:

Kaustav19_0-1625024313601.png

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

0 Kudos
Message 3 of 5
(2,703 Views)

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?

0 Kudos
Message 4 of 5
(2,698 Views)


 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.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 5
(2,678 Views)