|
Advanced
Send Commands
When communicating with certain equipment, it is useful to send data
to the device in other data types. Indigo's
supports sending data in ASCII, HEXADECIMAL, DECIMAL,
OCTAL, and BINARY. If a command is encapsulated in double quotes "
Indigo's command interpreter
will decode the data types and send in the proper data formats.
Below is a an example of the send command: HELLO
Data Type: |
Advanced Send Command: |
ASCII |
"'HELLO'"
or
"'H','E','L','L','O'" |
Decimal |
"72,69,76,76,79" |
Hexadecimal |
"48h,45h,4Ch,4Ch,4Fh"
or
"$48,$45,$4C,$4C,$4F" |
Octal |
"110o,105o,114o,114o,117o" |
Binary |
"01001000b,01000101b,01001100b,01001100b,01001111b" |
Mixed |
"01001000b,69,'L','L',4Fh" |
You can mix the data byte formats, the command interpreter will decipher
each byte separately. Each byte should be separated by commas, except
for multiple ASCII bytes, they can be together inside the single quote
encapsulation.
|
|