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 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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DaqCapture
impl RefUnwindSafe for DaqCapture
impl Send for DaqCapture
impl Sync for DaqCapture
impl Unpin for DaqCapture
impl UnsafeUnpin for DaqCapture
impl UnwindSafe for DaqCapture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more