02-19-2015 08:45 AM
I have been a LabView user for some years now and I've got on reasonably well with it. I am now suffering from brain fade as I'm looking to implement a very simple VI to run an automated test.
I have a motor driving a shaft with an encoder to give me position feedback. I want to cycle the motion of the shaft depending upon the position of the encoder. My basic routine would be:
Run motor to end of shaft and stop when encoder output is a certain voltage. Run the motor to the other end of the shaft and stop when the encoder output is a certain value. It sounds very basic but I can't for the life of me work out how to get it running!
Any advice would be greatly received...
Solved! Go to Solution.
02-19-2015 08:49 AM
02-19-2015 12:54 PM
Thanks GerdW,
I found an online tutorial and it worked out great.
Richard.
02-19-2015 02:22 PM
GerdW,
One more question for you, how can I count the number of times I execute a certain task in teh state machine? I have implemented a number of Case Structures and I'd like to know how often it is executed?
Thanks,
Richard
02-19-2015 02:24 PM
Hello ryouden,
you can increment a counter within the appropriate state and store its' value in a shift register.
Kind regards