LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exec system.vi

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.

0 Kudos
Message 1 of 17
(3,762 Views)

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

0 Kudos
Message 2 of 17
(3,747 Views)

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.
0 Kudos
Message 3 of 17
(3,725 Views)
Can you post your code?
0 Kudos
Message 4 of 17
(3,722 Views)
Hi Here is my code
0 Kudos
Message 5 of 17
(3,717 Views)
I thought you would have used some looiping
0 Kudos
Message 6 of 17
(3,712 Views)
No there isnt thats what confuses me, it acts like it is. If u run the code it just opens the cmd window repeatdetly.
0 Kudos
Message 7 of 17
(3,696 Views)

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

Jordan Power
Applications Engineer
National Instruments
Download All
0 Kudos
Message 8 of 17
(3,677 Views)

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

Jordan Power
Applications Engineer
National Instruments
0 Kudos
Message 9 of 17
(3,675 Views)

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.

0 Kudos
Message 10 of 17
(3,656 Views)