yaq/traits/is-sensor


Daemons with the is-sensor trait are capable of measuring some unknown quantities. Sensor daemons may have multiple channels if a single measurement returns multiple values.

messages

Daemons with the is-sensor trait expose the following public messages:

get_measured ➜ {'type': 'map', 'values': ['int', 'double', 'ndarray']}
Returns map of channel_name to measured_value. Always returns additional key measurement_id.

get_measurement_id ➜ {'type': 'int'}
Get current measurement_id. Clients are encouraged to watch for this to be updated before calling get_measured to get entire measurement.

get_channel_names ➜ {'type': 'array', 'items': 'string'}
Get current channel names.

get_channel_shapes ➜ {'type': 'map', 'values': {'type': 'array', 'items': 'int'}}
Get current channel shapes. If list is empty, channel is scalar.

get_channel_units ➜ {'type': 'map', 'values': ['null', 'string']}
Get current channel units.

daemons

The following daemons implement the is-sensor trait:

ads1115
andor-neo
andor-simcam
becker-hickl-spc130
edaq-isopod
fake-camera
fake-sensor
fake-spectrometer
fake-triggered-sensor
gage-chopping
gage-compuscope
gpio-digital-sensor
labjack-sensor
mcc-118
mcp3428
mcp9600
mqtt-homie-sensor
ni-daqmx-tmux
omega-platinum
picotech-adc-triggered
rgb-qmini
scpi-sensor
seabreeze
seek-compact
system-monitor
thorlabs-pax1000
thorlabs-pm-triggered
wright-ingaas


built 2022-11-30 17:44:22                                      CC0: no copyright