10-16-2008 06:35 PM
Hello everyone, this is my first post!
Im using exec system.vi to open cygwin. My problem is that when I run my code The command window will open and close repeatedly until I stop running the labview application. In the command line I've written C:\cygwin\cygwin.bat and in the standard input ive put ns protocol.tcl tough if I remove the standard input the problem still remains.In run minimized if put a boolean false object. I tried doing a simpler solution by getting to run hello.c code but the problem still remains.
Any help that any one can offer will be greatly appreciated. Regards, Chris.
10-17-2008 01:24 AM
Hi Chris,
do you call the function in a loop? Did you see the Example from the Example Finder about the "System Exec.vi"?
Mike
10-17-2008 06:29 AM
Hi, Thanks for replying.
No I haven't run it in a loop. I just put the object straight into a basic block diagram and put my commands into the object. I did try putting it into a case statement thats controlled by a "true until released" button. In that case the cmd window will open once and then close. It seems that system exec.vi is looping on its own.
Hope it helps. Regards Chris Gungaloo.
10-17-2008 06:37 AM
10-17-2008 06:51 AM
10-17-2008 07:08 AM
10-17-2008 08:02 AM
10-17-2008 10:11 AM
HI 0208,
Thank you for posting your issue.
I have just been looking at the system you have designed and created my own with ping IP address in the command constant.
As I only sent a ping to my machine and it looks to work, the command pops up and then waits for a few seconds then closes.
This is my block diagram and front panel. ( See Attachments)
The standard output may require you to select the add scroll bar or just make it big enough so that you can view the codes generated.
i hope this helps you,
Regards
10-17-2008 10:14 AM
Hi 0208,
This system doesn't need to be enclosed in a loop, because if it is it may be doing the continuous opening and closing.
Regards
10-17-2008 11:49 AM
Hi J Power. Wrote the code you attached and it opens the cmd window. But how could I use that code and get it to open cygwin and run the tcl file i included? When I try to put in the C:\cygwin\cygwin.bat in the command line thats when i get the problem.
I havent put the command in a loop and yet it still seems to be openening and closing repeatedly. see my earlier attachment and you can see that i havent put it in a loop. a simpler example you could try is to get it to open cygwin and run a simple hello.c application. I tried that and it still didnt work.
Regards, Chris.