LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA smart motor error unknown

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.

 

Download All
0 Kudos
Message 1 of 3
(3,392 Views)

Never mind, I got it.
It was an error in my motor program loop statement.

0 Kudos
Message 2 of 3
(3,354 Views)

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.

Message 3 of 3
(3,279 Views)