...
Description | Files | Notes | ||||
---|---|---|---|---|---|---|
Example python code from VPH measurement system at SSL. Written for a Newport 1936-C intensity meter, which perhaps uses similar code to the KPF intensity meter (Newport 1830-R-GPIB) |
|
...
Dispatcher Implementation
Keyword | Value | Type |
---|---|---|
CALMON_POW | Power measured by detector every time delay (see above) | Double - read only |
CALMON_AVGPOW | Power measured by detector averaged over a number of steps specified in NAVG | Double - read only |
CALMON_AVGTIME | Time stamp of last average measurement | Time in ascii format or unix timestamp in binary format - read only |
CALMON_NAVG | Number of POW measurements to average to compute AVGPOW. Dispatcher requires > 1. | Integer - writable as as well readable, default set in configuration file |
CALMON_AVG | Averaging is on or off. | Boolean |
CALMON_CONN | Connection on or off to the device | Boolean |
CALMON_IP | IP address of the Lantronix | String - read only but set in configuration file. |
CALMON_PORT | Port id on the Lantronix for the serial connection | String - read only but set in configuration file. |
CALMON_ID | ID string returned by device. Only valid when there is a connection. | String - read only. |
CALMON_ATT | Attenuator on / off | Enum - 0 Off - 1 On |
CALMON_BEEP | Device Beep on / off | Enum - 0 Off - 1 On |
CALMON_DISPLAY | Front panel display on / off | Enum - 0 Off - 1 On |
CALMON_FILTER | Averaging on the device | Enum - 1 Slow (16) - 2 Medium (4) - 3 Fast (1 or no averaging) |
CALMON_LOCK | Front paneled locked remotely, on locks | Enum - 0 Off - 1 On |
CALMON_RANGE | The device does automatic scaling of the output (0) or has eight preset ranges | Enum - 0 Auto - 1 2 3 4 5 6 7 8 |
CALMON_UNITS | The output units of the power measurement. Can be relative (REL) to a previous value. | Enum - 1 Watts - 2 dB - 3 dBm - 4 REL |
CALMON_ZERO | Use a previous value as a zero point, can be turned on or off. | Enum - 0 Off - 1 On |
CALMON_WAVE | Wavelength of light used for the detector calibration, specified in nanometers. | Integer - dispatcher enforces range between 0 and 2000 |
DISPSTA | Dispatcher status. | Enum and read only. If value is 4 or “Not Connected” the connection to the Vaisala or the Lantonix is not available. If value is 3 or “Connecting” the dispatcher is attempting to connect to the Vaisala through the Lantronix. |
Configuration | Value | Explanation |
---|---|---|
ip | 192.168.23.102 | IP address of the Lantronix |
port | 10002 | Port that is used, 10002 means port 2 |
poll_time | 0.5 | Time between data requests for the measured power value. |
navg | 10 | Default starting value for NAVG. Keyword can be written. |