02-09-2016 07:31 AM
So, I'm using LV to control a smart motor, and trying to obtain current and position of the motor. I start the VI and it populates the fields correctly and starts to work, but get an error a short time into it.
In my motor code, I'm placing the value of current into the "z" register, and trying to read my cycle count in register "a."
I've attached my LabView code and the motor program, and a snippet of the error.
Believe me, my wrist hurts from paging through the existing forum messages on the board, but my error is different from any of the others.
Any help would be GREATLY appreciated!
Thanks,
Dan S.
02-09-2016 01:29 PM
Never mind, I got it.
It was an error in my motor program loop statement.
02-17-2016 12:45 PM
There must have been a reason why I did it, but instead of stating "if a>10,000, GOTO 10 (which is the end)," I should have said "if a<10,000, GOTO to 1(the start of the loop).
Hope that helps anyone else dealing with serial and smart motors.