MX Foundation 4
|
The sampling service is useful when not all the discrete input state change needs to be captured, but only a snapshot (for display for example). The sampling logic keeps the last record.
When sampling discrete input signals, the use of one MXF_DISCRETE_SAMPREC
structure is required.
The mxfDiscreteRxSamplingRead() function must be used to get the sampling data.
The example below shows how a sampling application can collect discrete data values.