02-13-2023 01:36 PM
Hello everyone !
I was wondering if someone could suggest a suitable method to pass data in and out of a subvi, which runs a while loop sending Window command prompt commands.
I found a vi which works for controlling cmd (attached), but using it as a subvi within my main program is where I get stuck. I need to send several cmd commands in a row, but the subvi gets stuck in the while loop. The data I am trying to pass from the main vi into the subvi is the cmd commands and data I am trying to receive from the subvi is cmd output.
Thank you for any suggestion !
Best, Milff
02-14-2023 07:05 AM
Instead of string control and indicator, you can pass queue refnum to the subVI, which allows the subVI to run asynchronously and allows you to send and receive string data from caller VI.