#include <MCDIO.h>
Inheritance diagram for OSCAR::MCDIO:

Public Methods | |
| MCDIO (unsigned int boardNo, DIO::PortDirection direction=DIO::Input, unsigned int portType=FIRSTPORTA, const String &name=String(), OSCARError &err=DUMMY_ERROR(noError)) | |
| virtual | ~MCDIO () |
| bool | SetPortDirection (DIO::PortDirection direction) |
| bool | ReadDI (unsigned int channel, bool &state) |
| bool | WriteDI (unsigned int channel, bool state) |
Protected Attributes | |
| int | boardNo |
| int | portType |
|
||||||||||||||||||||||||
|
First Constructor for MCDIO Use this to create a MCDIO object which controls the specified port on the board. Port initializes as OUTPUT.
|
|
|
Destructor for MCDIO.
|
|
||||||||||||
|
Read digital input. Use this method to read a digital input from the DAQ board.
Implements OSCAR::DIO. |
|
|
Configure port as Input or Output.
Reimplemented from OSCAR::DIO. |
|
||||||||||||
|
Write digital input. Use this method to set the state of a digital line on a DAQ board.
Implements OSCAR::DIO. |
|
|
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |