LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help

I have 2 different Codes 1 to  move Axes and the other one is to stop all Axes in case of emergency . I want to put them both in one code so I can stop the axes when I want  , any Idea?
 i tried to put the Stop Code in a case and I wire it with a stop buttom , then I put the 2 codes in  While-Loop but it didn't work
 i will be greatfull for any idea or Info , Thank you in advance
the codes are attached to this email
 
Toni
Download All
0 Kudos
Message 1 of 17
(3,202 Views)
Hi Toni,
can you upload your vi with the while loop and your problem in it? Thanks.
Mike
0 Kudos
Message 2 of 17
(3,198 Views)
Hi Mike
 
thanks for your reply . OH I changed a littel bit in my VI so it doesn't match with the last message. i thought maybe it will work in this way
0 Kudos
Message 3 of 17
(3,185 Views)

Hi Toni,

as far as i see it should be work. What doesn´t work?

Mike

0 Kudos
Message 4 of 17
(3,178 Views)

Hi Toni,

is the output of the C844_moving.vi automatically false if you send the stop command from the other loop?

Mike

0 Kudos
Message 5 of 17
(3,176 Views)

Hi Mike

actually if i used the 2 VI seperately, it works, but when I put them in one Vi it doesn't work .

the problem is that when i run the code , the axis start moving and when I tried to push the stop buttom to stop the axis it doesn't work. they still moving till they reach the end position . any idea why?

and yes the C844_moving.vi is automatically

0 Kudos
Message 6 of 17
(3,169 Views)

Hi Toni,

i see no problem with it. I created dummies for the missing vis, so i can run your vi and if i press the stop button the loop ends. Attached is my version.

Mike

Message 7 of 17
(3,167 Views)
hi Mike
 
thank you for everything. i won't bother you again, but i just wanted to tell you that the VI you send and the one i wrote work only one time and when i try another time it don't work no more and gives errors(see attachment)
i will try to find the error
thank's  again for your help
Toni
0 Kudos
Message 8 of 17
(3,157 Views)

Hi Toni,

i think i can´t help you at this point, because i don´t have the send.vi. Is this vi called in a loop? Can you upload more vi´s from your project? Maybe i can then help you.

Mike

0 Kudos
Message 9 of 17
(3,142 Views)
Hi Mike
 
I don't know how to thank you . I upload all the necessarily VIs
Toni
0 Kudos
Message 10 of 17
(3,104 Views)