pub struct DaqCapture {
pub busy: bool,
pub active: bool,
pub error: bool,
pub error_message: String,
pub data: Option<CaptureData>,
/* private fields */
}Expand description
DAQ Capture function block for NI triggered recordings.
Fields§
§busy: boolTrue while the FB is executing (from arm through data retrieval).
active: boolTrue when the DAQ is armed and waiting for the hardware trigger.
error: boolTrue when an error occurred.
error_message: StringError description (empty when no error).
data: Option<CaptureData>Captured data. Some after a successful capture, None otherwise.
Implementations§
Source§impl DaqCapture
impl DaqCapture
Sourcepub fn start(&mut self, client: &mut CommandClient)
pub fn start(&mut self, client: &mut CommandClient)
Start a new capture sequence (Arm the DAQ).
Sourcepub fn set_trigger_delay(&mut self, client: &mut CommandClient, delay_ms: u32)
pub fn set_trigger_delay(&mut self, client: &mut CommandClient, delay_ms: u32)
Update the Timer-trigger delay for this DAQ.
Only valid when the FB is idle (i.e. before start() is called or after
the capture has completed). If called while the FB is busy, the request
is silently dropped — call reset() first if you need to abort and
reconfigure. The change is also rejected server-side if the DAQ has been
armed by another caller.
Has no effect on DAQs whose trigger type is not timer.
Sourcepub fn tick(&mut self, timeout_ms: u32, client: &mut CommandClient)
pub fn tick(&mut self, timeout_ms: u32, client: &mut CommandClient)
Execute one scan cycle of the DAQ capture state machine.