LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure and motor control on the same time


@GerdW wrote:

Hi Greg,

 

never use non-English chars in filenames, it's just annoying for other people (using default English Windows installations)!

@RavensFan: just rename the files…



I could.  But I'm not going to waste my time doing that.

0 Kudos
Message 11 of 14
(337 Views)

So if I want to measure while the state machine run I should delete the sequence. My measurements run just when the motor is up. So I think I should put the measure part of my VI into the "Up" state. But in case I can not what should I do in the other state. Moreover you said that I do not use Tasks more times. In case how can I give the value of D0 of the moment when it is get high value and parallel it starts me the measure of the time and the D1 input stop the time measure. But D1 task should stop the state machine. Which functions should I use if I want to delete the sequence?

0 Kudos
Message 12 of 14
(315 Views)

I modify my state machine as you write before but there is a little problem. It is never stop just switch between up and down but if I stop the program it is still working. Can I break off the working of the state machine after every down is done?

0 Kudos
Message 13 of 14
(297 Views)

Hi Greg,

 

sure you can stop the state machine: just implement a proper handling of all the conditions to end in a "exit" state...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 14
(290 Views)