Welcome, Guest

TOPIC: Labview and TWAIT

Labview and TWAIT 7 years 4 months ago #677

  • dreis
  • dreis's Avatar
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
I am slowly figuring out how to use Labview to drive my SM2316D PLS2 Motor. I can send and receive commands like RW, RP and whatever. I can load in variables, execute some example programs from the user guide. However, I am having trouble with TWAIT. I can tell the Bt flag is high while it moves, but if I use TWAIT or a WHILE BT type loop, it just ignores it. I send two P instructions and it takes off toward the first position for an instant before moving to the second location. If I send only one position, it goes just fine.
Furthermore, when I test all the code in the SMI software it works flawlessly. The issue therefore lies in my Labview code.
Is there inherent timing considerations I should know of when sending and receiving from the smart motor? What about with TWAIT? Has anyone had a similar problem?

Why does
not work when
> wait 5 seconds of real time <

Thanks for any help
The administrator has disabled public write access.

Re: Labview and TWAIT 7 years 4 months ago #682

  • csearcy
  • csearcy's Avatar
  • Moderator
  • Posts: 463
  • Thank you received: 79
  • Karma: 23
The TWAIT command and WHILE LOOPS can't work over the serial interface. They only work in a program downloaded to the motor. You can do RBt commands to check if the motor is moving... or you can write subroutines in the motor and just call the routine with GOSUBx (with x being 0-999).
The administrator has disabled public write access.
Time to create page: 0.141 seconds
Powered by Kunena Forum