Quantum Composers Jewel Laser User Manual
Page 22

Page 22 Jewel Manual v1.1 | Quantum Composers
If a control command is received while the device is in the midst of executing a previous
command, and the commands are mutually exclusive (cannot be executed in parallel), then
the previous command is aborted and the new one executed. It is up to the host controller
(the PC) to poll the device and make sure the previous command has finished, if that is
needed.
Query Commands
Query commands return a value to the PC as soon as the command is parsed and executed. The
value returned will depend on the command. The response is always terminated with a
“<CR><LF>”. If a query command is not recognized by the device, then a "?1" is returned.
Error Codes
?1
Command not recognized.
?2
Missing command keyword. If command requires keyword.
?3
Invalid command keyword. If command requires keyword.
?4
Missing parameter.
?5
Invalid parameter.
?6
Query only, command needs a question mark.
?7
Invalid query, command does not have a query function.
?8
Command unavailable in current system state.
?9
Module timeout error
Jewel Command Examples
Below are a few example commands and queries. A <CR> indicates the carriage return value
appended:
Set laser burst count to 123:
Command to send:
;LA:BC 123<CR>
Response:
OK<CR>
Enable laser:
Command to send:
;LA:EN 1<CR>
Response:
OK<CR>
Fire laser:
Command to send:
;LA:FL 2<CR>
Response:
OK<CR>
Set Pulse Period
Command to send:
;LA:PE 5.0<cr> sets pulse period to 5.0 seconds
Response:
OK<CR>
Query system status:
Command to send:
;LA:SS?<CR>
Response:
1028<CR>
(1028 decimal, when converted to bytes, means Q-Switch
Enabled, Ok to Enable)