void digOut(int channel, int value);
sets the state of a digital output bit. jrioInit must be called first.
channel is the output channel number
void digOn(int channel);
sets the state of a digital output bit to on (1). jrioInit must be called first.
channel is the output channel number
void digOff(int channel);
sets the state of a digital output bit to off (0). jrioInit must be called first.
channel is the output channel number
NOTE: See the sample program JRIOTEST.C for an example of using the digital out- put functions.
4.4.1.3 Analog Output
The two analog output channels on the Jackrabbit (DA0 and DA1 on header J5) are con- trolled by a
The output channels can also be set in an “always on” or “always off” mode, which does not require CPU cycles. The “always on” mode is set by requesting an output value of 1024, and will provide about 3.4 V on channel DA0, and 3.6 V on DA1. The “always off” mode is selected by asking for a value of 0, and provides an output of around 0.1 V on DA0 and 0.0 V on DA1.
See Table 5 for a summary of the possible analog output voltages corresponding to values given in the anaOut function.
52 | Jackrabbit (BL1800) |