
40
“?BAD WL” if wavelength value entered is out of range of defined curve.
“?BAD PARAM” if parameter is out of range}
Examples:
Assume $AW command returned: "* CONTINUOUS 200 3000 2 2490 971 532 NONE NONE NONE[CR]"
$WD 7 1111 -> ?INDEX NOT IN RANGE[CR][LF]
$WD 5 111111 -> ?WAVELENGTH OUT OF RANGE[CR][LF]
$WD 1 1111 -> ?WAVELENGTH ALREADY DEFINED. USE WL COMMAND[CR][LF]
$WD 5 1111 -> *[CR][LF] – successfully changed index 5 to 1111
Wavelength Erase ($WE):
$WE <1-6>[CR] -> *[CR] {Wavelength Erase. Erase one of the existing favorite wavelengths, at index provided. This
change will be saved temporarily in RAM; after $HC S command, it will be stored permanently in EEPROM as the
power-up setting.
ERROR MESSAGES (in addition to general ones defined above):
"?NOT USING CALIBRATION CURVE" if sensor does not have Calibration Curve defined
"?BAD PARAM" if index is not within 1-6}
Continuous Send Commands:
NOTES ON CONTINUOUS SEND MODE:
As opposed to the more normal "Command/Reply" mode that is used for most other commands such as $SP, $VE,
"Continuous Send" mode places the device into a state where it transmits data continuously to the PC without being
specifically requested to. This mode can sometimes make the software support easier inside a PC application
supporting the device, and reduces the amount of communication overhead necessary to achieve the same thing
using Command/Reply mode.
The Continuous Send mode is initiated by sending the "$CS 2" command and is terminated by sending the "$CS 1"
command, or by sending any other command.
Once Continuous Send mode is stopped, the receive buffer inside the PC or host device must be flushed before
trying to send more commands to the device.
Continuous Send - Power Mode:
When measuring power, data is sent at the measurement rate of the device (15Hz) in the same format as the $SP
command. If the power is overrange then "OVER" is sent. For example:
*1.234E1[CR][LF]
*1.238E1[CR][LF]
*1.245E1[CR][LF]
Continuous Send - Energy Mode:
When measuring energy, status or measurement data is sent depending on the state of the device at any given time.
The device sends "*WAITING[CR]" (once) when waiting for the next energy trigger, "*SUMMING" (once) after the
trigger is received, and a value (once) when the value is measured. For example:
*WAITING[CR][LF] <--- waiting for a trigger
*SUMMING[CR][LF] <--- trigger is received
*2.720E-1[CR][LF] <--- energy measurement is ready and sent once
*WAITING[CR][LF] <---- waiting for next trigger
Start Continuous Send Mode ($CS 2):
$CS 2[CR] -> *STARTED[CR][LF]
Starts Continuous Send mode. Data is transmitted to the PC automatically. The exact data depends on the
measurement mode and the status of the device at any given moment. See notes above.
Stop Continuous Send Mode ($CS 1 or any command):
$CS 1[CR] {Sending CS 1 stops continuous send mode, as does sending any other command except $CS 2. Note that
while a reply "*STOPPED" will be given to this command, it will be mixed in with all the other data transmitted by the
device before the Continuous Send mode is stopped. Before sending any more commands and receiving "normal"