SeekDAS S100M4X C++ SDK 0.2.0
seekdas.hpp: C++17 interface over the Rust SDK
Loading...
Searching...
No Matches
seekdas::Trigger Class Reference

One trigger run: N points on each target channel, CONV edges from one to four analogue inputs. More...

#include <seekdas.hpp>

Public Member Functions

 Trigger ()
Trigger & target (ChannelMask channels, std::uint32_t points_per_channel)
 target: points_per_channel (>= 1) points on every channel of channels (at least one)
Trigger & conv (Channel input, Edge edge, int threshold)
 use this input as the only CONV source: edge, threshold in ADC codes (-8192..8191), hysteresis 200 codes
Trigger & add_conv (Channel input, Edge edge, int threshold, int hysteresis=200, std::uint32_t min_interval_samples=0)
 add a CONV input (at most 4, merged in time); an input already in the list is changed in place
Trigger & remove_conv (Channel input)
Trigger & clear_conv ()
int conv_count () const noexcept
Trigger & bandwidth (double hz)
 filter by signal bandwidth (up to 20 MHz, the default)
Trigger & raw ()
 no filter: the last raw sample before each CONV edge
Trigger & timestamps (bool on)
Trigger & packet_beats (int beats)
Trigger & standard_mtu ()
Trigger & time_calibration (int ticks)
void validate () const
 throws ArgumentError unless the target and a CONV input are set
const seekdas_trigger * native () const noexcept

Detailed Description

One trigger run: N points on each target channel, CONV edges from one to four analogue inputs.

t.target({Channel::S0A, Channel::S1B}, 5000) // each of S0A, S1B: 5000 points
.conv(Channel::S2A, Edge::Falling, -1200) // CONV = falling edges of S2A through -1200 codes
.add_conv(Channel::S2B, Edge::Rising, 1400, 80); // ... merged with rising edges of S2B (hysteresis 80)
One trigger run: N points on each target channel, CONV edges from one to four analogue inputs.
Definition seekdas.hpp:394
Trigger & target(ChannelMask channels, std::uint32_t points_per_channel)
target: points_per_channel (>= 1) points on every channel of channels (at least one)
Definition seekdas.hpp:400
Trigger & add_conv(Channel input, Edge edge, int threshold, int hysteresis=200, std::uint32_t min_interval_samples=0)
add a CONV input (at most 4, merged in time); an input already in the list is changed in place
Definition seekdas.hpp:410
Trigger & conv(Channel input, Edge edge, int threshold)
use this input as the only CONV source: edge, threshold in ADC codes (-8192..8191),...
Definition seekdas.hpp:405

Every CONV edge gives one value on every target channel. Defaults: full-band (20 MHz) filter, time stamps on, jumbo packets. Setters throw ArgumentError and leave the set-up unchanged on a bad value.

Definition at line 394 of file seekdas.hpp.

Constructor & Destructor Documentation

◆ Trigger()

seekdas::Trigger::Trigger ( )
inline

Definition at line 396 of file seekdas.hpp.

Member Function Documentation

◆ target()

Trigger & seekdas::Trigger::target ( ChannelMask channels,
std::uint32_t points_per_channel )
inline

target: points_per_channel (>= 1) points on every channel of channels (at least one)

Definition at line 400 of file seekdas.hpp.

◆ conv()

Trigger & seekdas::Trigger::conv ( Channel input,
Edge edge,
int threshold )
inline

use this input as the only CONV source: edge, threshold in ADC codes (-8192..8191), hysteresis 200 codes

Definition at line 405 of file seekdas.hpp.

◆ add_conv()

Trigger & seekdas::Trigger::add_conv ( Channel input,
Edge edge,
int threshold,
int hysteresis = 200,
std::uint32_t min_interval_samples = 0 )
inline

add a CONV input (at most 4, merged in time); an input already in the list is changed in place

Definition at line 410 of file seekdas.hpp.

◆ remove_conv()

Trigger & seekdas::Trigger::remove_conv ( Channel input)
inline

Definition at line 414 of file seekdas.hpp.

◆ clear_conv()

Trigger & seekdas::Trigger::clear_conv ( )
inline

Definition at line 415 of file seekdas.hpp.

◆ conv_count()

int seekdas::Trigger::conv_count ( ) const
inlinenoexcept

Definition at line 416 of file seekdas.hpp.

◆ bandwidth()

Trigger & seekdas::Trigger::bandwidth ( double hz)
inline

filter by signal bandwidth (up to 20 MHz, the default)

Definition at line 418 of file seekdas.hpp.

◆ raw()

Trigger & seekdas::Trigger::raw ( )
inline

no filter: the last raw sample before each CONV edge

Definition at line 420 of file seekdas.hpp.

◆ timestamps()

Trigger & seekdas::Trigger::timestamps ( bool on)
inline

Definition at line 421 of file seekdas.hpp.

◆ packet_beats()

Trigger & seekdas::Trigger::packet_beats ( int beats)
inline

Definition at line 422 of file seekdas.hpp.

◆ standard_mtu()

Trigger & seekdas::Trigger::standard_mtu ( )
inline

Definition at line 427 of file seekdas.hpp.

◆ time_calibration()

Trigger & seekdas::Trigger::time_calibration ( int ticks)
inline

Definition at line 428 of file seekdas.hpp.

◆ validate()

void seekdas::Trigger::validate ( ) const
inline

throws ArgumentError unless the target and a CONV input are set

Definition at line 434 of file seekdas.hpp.

◆ native()

const seekdas_trigger * seekdas::Trigger::native ( ) const
inlinenoexcept

Definition at line 436 of file seekdas.hpp.


The documentation for this class was generated from the following file: