The Roboclaw uses a serial protocol, however it does not restrict itself to the standard printable characters.
That is for example in the datasheet you see:
Code:
Serout P15, i19200, [128, 0, 127, (255 & 0X7F)] ;M1 full speed forward
This is just simple basic cde that is outputting 4 bytes to the roboclaw
128 - Address of the roboclaw (selected by switches)
0 - Command. Command 0 says drive forward
127 - Speed full
127 - Checksum = (address+command+speed)&0x7f = (128+0+127) & 0x7f
It does not matter to the roboclaw if you generate these bytes on a Basic Atom Pro or on a PC. I have never used labview before so I can not tell you how there, but I have done similar stuff in Visual Basic or C on a PC...
In C you have several ways to do it. If you have variables that contain the data you can output it something like:
Code:
printf("%c%c%c%c", bAddr, bCmd, bSpeed, (bAddr+bCmd+bSpeed)&0x7f);
Note: you may need to compute the checksum outside of the printf. Also you may need to do so in a word (16 bit) variable to avoid overflows...
For fixed commands, like the one from the manual, you may be able to output those directly with strings. In C you have the string escape character \ that allows you to enter binary data in octal or hex. Something like:
Code:
printf("\0200\0\0177\0177");
or maybe:
Code:
printf("\x80\x0\x7f\x7f");
Note: you may have to look up the syntax as it has been awhile since I have...
Kurt