Welcome, Guest
Username: Password: Remember me
Messages posted to this category need to be reviewed by the moderator before it gets posted.
  • Page:
  • 1

TOPIC: What can cause a syntax error?

What can cause a syntax error? 6 years 8 months ago #138

I'm writing a labview application to drive a couple of SmartMotors. I keep noticing the syntax error flag being set, often when I haven't sent any commands. It seems to reset itself arbitrarily too. I also see it set on the second motor every time I have done a "find motors" in the SMI.

What actually causes a syntax error? As a test I tried sending gibberish to a motor but it just ignored it, no syntax error.

Communications seem to be working fine by the way. I'm using 2 motors daisy-chained on RS232.
The administrator has disabled public write access.

Re: What can cause a syntax error? 6 years 8 months ago #139

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
A syntax error will occur when any invalid command comes in through the serial port.
Note: If the motors are addressed, they will ignore all data unless their address is specified. Syntax errors can also occur due to electrical noise corrupting the command.
The administrator has disabled public write access.

Re: What can cause a syntax error? 6 years 8 months ago #140

Thanks. Today it is behaving as it should. If I send an invalid command like "1H" or "1£$%^" then it sets the syntax error flag. It wasn't doing that yesterday - very odd.
I'll try to check the RS232 link by sending repeated commands.

Edit:
I just ran the tuning utility on both motors and no syntax errors appeared. I think that counts as a thorough test!
Last Edit: 6 years 8 months ago by Chris Dancer.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.266 seconds