hi,
thanks very much for the program. it compares the resistance values as reqd. but what also happens is when I send the true output to my motor program when the resistance is still less than the desired value - the motor program takes this TRUE value but waits to run. and when the resistance goes above the desired value , I am able to exit my while loop , but the motor now receives the FALSE output to stop without having started at all !
I tried putting the motor program in a case loop, this didnt seem to work.
also, I put the motor program in an outer while loop with the stop signal making both the inner and the outer while loop stop when the resistance is higher than what we need. while this makes the motor run at the st
art, it does not stop the motor when the resitance limit is reached because the while loop executes atleast once completely, so the motor runs to its full step size before it stops. so I wont have instantaneous control over motor movt this way.
I have attached a file of what I implemented. I think if this solved, the program shoudl work perfectly . can u please help me this ?
thanks so much,
Lalitha.