USB servo controller and Labview
bradleyk
Posts: 3
I've been trying to communicate with my Parallax USB servo controller using Labview 8.0.
When I send a "SCVER?" command using VISA write·and then try to read from the buffer all I get·is an echo of the·command. I've tried·sending the VISA read·twice·but then I get the command echo on the first read and a timeout error on the second.
The PSCI software works fine.
Any help would be much appreciated
When I send a "SCVER?" command using VISA write·and then try to read from the buffer all I get·is an echo of the·command. I've tried·sending the VISA read·twice·but then I get the command echo on the first read and a timeout error on the second.
The PSCI software works fine.
Any help would be much appreciated
Comments
You are sending a "!SCVER?" plus a return character (13) correct? and not just "SCVER?"?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
thanks
The Propeller USB Servo Controller code was written to keep compatibility with the previous Parallax Servo Controller and the PSCI software.
The PSCI sends a "U" character just prior to sending a version request as part of an auto baud negotiation scheme. If received, the "U" is echoed back in addition to the version request plus the version number. The detection code in the Propeller USB Servo Controller to handle this looks like this...
...
...
... Upon detection, if the Propeller USB Servo Controller senses a "U" and the version request, it responds with U!SCVER?{13}1.0 (essentially an echo of the version request including the return prior to sending the version number) or it will simply respond with 1.0 if a "U" was not detected prior to the version request. The response code in the Propeller USB Servo Controller looks like this ...
... Just curious, since you are getting an echo of the command, either the echo is set from within Labview in which case all commands should be echoing, or somehow the Propeller USB Servo Controller thinks you are sending a "U" prior to the version request.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 1/26/2010 3:23:20 PM GMT