03-06-2003 11:27 AM
03-06-2003 11:28 PM
03-11-2003 03:38 PM
03-12-2003 03:36 AM
03-14-2003 09:06 AM
>
>
03-14-2003 04:38 PM
03-17-2003 03:06 AM
03-31-2023 12:57 AM
Hi Wiebe,
Thanks for your inputs on how to get command line's handle to send data to console.
I am trying to hold command prompt till my LabVIEW application sends some response back to console.
Is there any to hold it (Not letting write anything on that command prompt) and once response ready, send data to console and release it?
Any input is appreciated.
Thanks in advance,
Ashwini A Pandit
03-31-2023 02:38 AM
@AshwiniWini wrote:
I am trying to hold command prompt till my LabVIEW application sends some response back to console.
Is there any to hold it (Not letting write anything on that command prompt) and once response ready, send data to console and release it?
Not sure what you are asking for here. You use a WriteFile() call to write the string/bytes/bananas or oranges to that stdio handle that you got. You surely can decide WHEN you write that information to that handle!
If it is about writing from the other side before your app had a change to answer the previous command, well that it something your other side needs to manage. It should of course wait on some response before spamming its side of the command line interface again with the next thing. Even if it doesn't, your LabVIEW app ultimately is in control when it will read again from the input pipe (yes that is what those handles basically are), so if you are not ready to read the next command because you are still working on the previous one, just don't read it yet. The pipe will do some buffering, but of course not indefinitely.
04-02-2023 06:36 PM
Hi Rolf,
Thank you for your response.
When I write string to command prompt, It will call and execute LabVIEW exe. I am expecting it should not let me write on that command prompt, till LabVIEW returns some response.
In attached screenshot, you can see i am pressing enter key while LabVIEW is executing command in background.
To write to command prompt, i am using Kernal32 dll library:
Is there any way or property of Kernal32 dll to hold console?
Thanks,
Ashwini A Pandit