Sign Up

Details

Hi @javier-ruiz, I found your libraries and I have to say they are very well done and functioning. Thanks and congrats!
In the program I'm writing for I have the necessity, sometimes, to force stop the process launched in the shell, something that normally you would do sending a Ctrl-C on the shell. Using the @destroy method was not sufficient: sometimes the process was still running in the background.
So I took inspiration from this post https://lavag.org/topic/21111-interactive-command-line-using-net/ and created a new method, called ctrl-c.vi, to actually terminate the process by attaching it temporarily to a console. The only funny thing is that, without inserting a Stall Data Flow of 100 ms between the various calls to kernel32.dll, LabVIEW crashes and closes completely.
I don't know if this is a good way of doing it, but I wanted to share with you the attempt, so I created a branch called drvolpe in your repository on GitHub. If you have a better idea for sending a Ctrl-C, please tell me.
Thanks again for your work,
Marco

Comments


Please sign in to leave a comment.