USER’S MANUAL__________________________________________________________________
474 _________________________________________________________________ M211322EN-D
F.9.2 Monitoring Analog Inputs
There are hooks in the WSR98D Set IO RPC to enable sampling of the
analog inputs. There were no customer requirements on how to integrate
the sampling in the RVP900/RCP8 processes, but a sample code is
provided on how to enable and control the sampling process and retrieve
the averaged voltage values. One of three inputs can be selected at a time.
A user-defined RVP900 trigger enables/disables the triggering. When the
trigger is high, samples are taken at a user-defined sampling rate, which is
defined in usec. The voltage is averaged over a user-defined number of
triggers. At the completion of the specified number of triggers, an average
value is calculated. The value is held until the user reads the value with the
WSR98D Get IO RPC, at which point a new acquisition is started, if the
number of samples is not set to zero. To monitor the Log Video Input, the
channel number should be set to 0, to monitor the Spare input, it should be
set to 4, and the 5V supply should be set to 3.