LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating unit test to subvi that only gives an output an STD output to CMD

Solved!
Go to solution

So I wrote a program that sends a message to the CMD that opened up my program through the console Invoke Node but I didnt find a way to read what I wrote so I can made a Teardown VI for this SUB-VI for testing purposes.

I tried using the invoke Node for console "Readline" but it only waits for me to echo a statement so it can read it and doesnt read what I already wrote.

Any idea how to read the messages that I sent to the CMD through Labview.

0 Kudos
Message 1 of 2
(2,019 Views)
Solution
Accepted by topic author 77maxmustermann

Hi 77maxmustermann,

 

You can just copy the command from the cmd to clipboard and then read it in LabVIEW.

 

The great example is provided in this post:

https://forums.ni.com/t5/LabVIEW/URGENT-How-we-read-stdout-directly/m-p/802382?view=by_date_ascendin...

 

Hope this helps.

Regards,

Patrik
CTA, CLA
Helping (sharing) is caring!

If the post was helpful - Kudo it.
If the post answered your question - Mark it as Solution.
Message 2 of 2
(1,981 Views)