LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

The problem of change the value of boolean during the runtime

Hello everyone,

 

I am making a subvi in a project, here is my subvi. So in my subvi, the program can well automatically stop and the boolean 'Tourner' will turn to false.

But when I delete the loop while and add rest of subvi to my project which is an exemple of stepper motor named '9503 Stepper Drive(Torque Smoothing Coeff)', this part can only stop for a little moment and continue running, I don't know where is the problem, if someone could help me please? Here is also my project vi.

 

Thanks a lot.

Download All
0 Kudos
Message 1 of 4
(2,515 Views)

Hi,

 

Could you elaborate a bit more on the sections of code and similarly provide the project files rather than images?

 

I would think that the approach needs to be different but it would be best to understand the whole system and the actual need for this functionality to best advise.

 

Additionally I would refrain from having backwards wires.

 

Best regards,

 

Ed

0 Kudos
Message 2 of 4
(2,430 Views)

Hello,

 

Thank you for replying me. Now I am using these codes (actually this is a project) for controlling a NI stepper motor, I am running with NI cRIO 9035 and NI 9503. I will send you the project files tomorrow.

 

Thanks a lot!

0 Kudos
Message 3 of 4
(2,403 Views)

Check the mechanical action of "Tourner" It needs to be "Switch when released" 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(2,394 Views)