ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change data

Hi all
I 'd a Boolean Variable change always, I am trying to hold the zero untill the next zero come, ( like if it is 0 and change to 1 no problem but if it is 1 and change to 0 and change to 1 again I wanna keep 0 untill the 1 finishe or or untill the next 0 come)
thank you for your help .
0 Kudos
Message 1 of 5
(3,063 Views)

Sorry, I am not real clear on all of this. 

As I understand 0->1 transition, fine.

1-> 0 transition, fine but hold until the 0 happens again....then what?  Additionally, you stated that after the 1 is completed, then transition.  I am not clear on this part.  Can you please explain a little better, provide sample code or a picture of what is going on?

Thanks,

 


Paul
0 Kudos
Message 2 of 5
(3,053 Views)

ok

I am doing a small test for encoder, with a motor and the motor control is DLL file I use the Call Library Function to run it  but the problem I wanna swap the speed (or the direction) every time.

I dont have anything tell me the motor stop unless the Data from the encoder when the data stop changing in the text box that is mean the motor stop I wanna swap the direction in that case I have to hold the zero untill the next stop. 

 

0 Kudos
Message 3 of 5
(3,051 Views)
thank you for helping me
0 Kudos
Message 4 of 5
(3,050 Views)
sorry the texsting of the Data change it is boolean
0 Kudos
Message 5 of 5
(3,047 Views)