Triggered NI-daqmx with multiplex.



The ni-daqmx-tmux daemon is composed of the following traits:



The ni-daqmx-tmux daemon has been tested with the following hardware:



channels (map) default: {}

choppers (map) default: {}

device_name (string)
DAQmx name of device to address.

loop_at_startup (boolean)
If set to true, the daemon will begin to loop measure as soon as it starts.

make (['null', 'string']) default: None

model (['null', 'string']) default: None

nsamples (int) default: 900

port (int)
TCP port for daemon to occupy.

rest_channel (string) default: ai0
Channel to occupy when not making an explicitly specified measurement.

serial (['null', 'string']) default: None
Serial number for the particular device represented by the daemon

timeout (float) default: 10.0
Timeout in seconds between each trigger edge.

trigger_source (string) default: ai0


The ni-daqmx-tmux daemon will provide the following state information:

nshots (int)

shots_processing_script (['null', 'string'])
Path to script for shots processing.


The ni-daqmx-tmux daemon will expose the following public messages:

busy ➜ boolean
Returns true if daemon is currently busy.

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

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

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

get_config ➜ string
Full configuration for the individual daemon as defined in the TOML file. This includes defaults and shared settings not directly specified in the daemon-specific TOML table.

get_config_filepath ➜ string
String representing the absolute filepath of the configuration file on the host machine.

get_measured ➜ {'type': 'map', 'values': ['float', 'ndarray']}
Get most recent measured value.

get_measured_samples ➜ ndarray
Get an array of shape (sample, shot).

get_measured_shots ➜ ndarray

get_nshots ➜ int
Get the currently planned number of shots.

get_sample_correspondances ➜ ndarray
Returns an array of integers of length nsamples. Zero indicates rest sample. Postive indicates channel. Negative indicates chopper.

get_shots_processing_script ➜ string
Get the path to the currently applied shots processing script.

get_state ➜ string
Get version of the running daemon

id ➜ {'type': 'map', 'values': ['null', 'string']}
JSON object with information to identify the daemon, including name, kind, make, model, serial.

measure ➜ int
Initiate a measurement. Returns integer, measurement ID.

loop (boolean) default: False

set_nshots ➜ null
Set the number of shots to acquire.

nshots (int)

set_shots_processing_script ➜ null
Give the path to a shots processing script.

path (string)

shutdown ➜ null
Cleanly shutdown (or restart) daemon.

restart (boolean) default: False

stop_looping ➜ null
Stop looping measurement.

built 2020-10-27 13:47:08                                      CC0: no copyright