yaq/daemons/gage-compuscope


yaq daemon supporting GaGe CompuScope Digitizer Models. This daemon essentially exposes GaGe's CompuScope configuration options directly. This daemon aims to support any configuration possible in GaGe's C/C# SDK.

bugtracker
source

installation

The gage-compuscope daemon can be installed using the following package managers:

PyPI

traits

The gage-compuscope daemon is composed of the following traits:

is-sensor
has-measure-trigger
is-daemon

configuration

channels (array) default: []

depth (int) default: 4096
Post-trigger depth, in samples.

ext_clk (boolean) default: False
Enable or disable external clocking functionality. If external clocking is activated, the sample rate must be set to the external clocking frequency. Not all CompuScope hardware supports external clocking.

loop_at_startup (boolean) default: False
If set to true, the daemon will begin to loop measure as soon as it starts.
from has-measure-trigger

make (['null', 'string']) default: None
from is-daemon

mode (int)
Sets the operating mode of the CompuScope system. Refer to the CompuScope documentation for valid values.

model (['null', 'string']) default: None
from is-daemon

port (int)
TCP port for daemon to occupy.
from is-daemon

sample_rate (['null', 'int']) default: None
Sampling rate in Hertz. If not provided, model-dependent default is used.

segment_count (int) default: 1
Number of segments to acquire. Segments are basically shots.

segment_size (int) default: 8192
Size of the segment to capture. A segment is the sum of the pre- and post-trigger samples that are to be acquired.

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

time_stamp_clock (enum) default: Fixed
The time-stamping clock may operate in one of two modes. In fixed mode, the on-board oscillator will be used as the counter source. In sample mode, a frequency derived from the sampling clock will be used as the counter source.

time_stamp_mode (enum) default: Free
The time-stamping counter may be reset upon the start of each acquisition or left free-running.

trigger_delay (int) default: 0
Number of samples to acquire between the occurance of the trigger event and the actual logging of the trigger event. By using this you can more easily capture signals far away from the trigger. Not all CompuScope models support TriggerDelay.

trigger_hold_off (int) default: 0
Number of samples during which trigger events will be ignored after the system begins caputuring. This is useful for ensuring the accumulation of a specified amount of pre-trigger data.

trigger_time_out (int) default: -1
Trigger timeout of the CompuScope system. The value is in 100 nanosecond units of time (e.g. a value of 10,000,000 gives a trigger timeout of 1 second). A value of -1 will cause the driver to wait indefinitely for a trigger.

triggers (array) default: []

messages

The gage-compuscope daemon will expose the following public messages:

busy ➜ boolean
Returns true if daemon is currently busy.
from is-daemon

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

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

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

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.
from is-daemon

get_config_filepath ➜ string
String representing the absolute filepath of the configuration file on the host machine.
from is-daemon

get_measured ➜ {'type': 'map', 'values': ['double', 'ndarray']}
Get most recent measured value.
from is-sensor

get_state ➜ string
Get version of the running daemon
from is-daemon

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

measure ➜ int
Initiate a measurement. Returns integer, measurement ID.
from has-measure-trigger
parameters:

loop (boolean) default: False

shutdown ➜ null
Cleanly shutdown (or restart) daemon.
from is-daemon
parameters:

restart (boolean) default: False

stop_looping ➜ null
Stop looping measurement.
from has-measure-trigger


built 2021-01-21 06:07:57                                      CC0: no copyright