Scope
scope::StimulationsDAQmx Class Reference

#include <StimulationsDAQmx.h>

Public Member Functions

 StimulationsDAQmx (const parameters::Scope &_params)
 
 ~StimulationsDAQmx ()
 
void Start ()
 
virtual int32_t Write (std::shared_ptr< const std::vector< uint8_t >> const _stimvec)
 

Protected Attributes

DAQmx::CDAQmxDigitalOutTask task
 

Detailed Description

Wraps hardware connection for stimulation output with NI-DAQmx.

Definition at line 16 of file StimulationsDAQmx.h.

Constructor & Destructor Documentation

scope::StimulationsDAQmx::StimulationsDAQmx ( const parameters::Scope _params)

Creates the tasks for digital stimulation output with NI-DAQmx.


Configure timing for the stimulation task.

Definition at line 9 of file StimulationsDAQmx.cpp.

scope::StimulationsDAQmx::~StimulationsDAQmx ( )

Stop and clear the digital stimulation task.

Definition at line 25 of file StimulationsDAQmx.cpp.

Member Function Documentation

void scope::StimulationsDAQmx::Start ( void  )

Start stimulation task, waits on first output task sample clock.

Definition at line 30 of file StimulationsDAQmx.cpp.

int32_t scope::StimulationsDAQmx::Write ( std::shared_ptr< const std::vector< uint8_t >> const  _stimvec)
virtual

Write the stimulation vector to the digital stimulation task.

Returns
the number of samples per channel actually written, -1 in case of error

Definition at line 34 of file StimulationsDAQmx.cpp.

Member Data Documentation

DAQmx::CDAQmxDigitalOutTask scope::StimulationsDAQmx::task
protected

The DAQmx tasks.

Definition at line 20 of file StimulationsDAQmx.h.


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