myWRIO
C++ framework for NationalInstruments myRIO
myRIO::AIO Class Reference

Read or write an analog value through a 12 bits DAC/ADC. More...

#include <AIO.h>

Static Public Member Functions

static void writePin (int pin, double value)
 Write an analog pin to the desired value. More...
 
static double readPin (int pin)
 Read an analog pin. More...
 

Detailed Description

Read or write an analog value through a 12 bits DAC/ADC.

Definition at line 41 of file AIO.h.

Member Function Documentation

◆ readPin()

double AIO::readPin ( int  pin)
static

Read an analog pin.

Pins Ax and Bx can handle 0 to 5V values. Pins Cx can handle +/- 10V.

Parameters
pinOne of AO0, AO1, ... CO2
Returns
The value read on the pin, in volts

Definition at line 34 of file AIO.cpp.

◆ writePin()

void AIO::writePin ( int  pin,
double  value 
)
static

Write an analog pin to the desired value.

Pins Ax and Bx can handle 0 to 5V values. Pins Cx can handle +/- 10V.

Parameters
pinOne of AO0, AO1, ... CO2
valueThe voltage to write on the pin, in volts
Examples
example_aio.cpp.

Definition at line 13 of file AIO.cpp.


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