www.pudn.com > truetime-1.2-compiled.zip > analogin.cpp


#ifndef ANALOG_IN
#define ANALOG_IN

double ttAnalogIn(int inputNbr) {

  if (inputNbr < 1 || inputNbr > rtsys->nbrOfInputs) {
    MEX_ERROR("ttAnalogIn: inpChan out of bounds");
    return 0.0;
  }

  return rtsys->inputs[inputNbr-1];
}

#endif