MX Foundation 4
|
The sampling service is useful when not all the discrete input samples need 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_FLEXDIO_SAMPREC
structure is required.
The mxfFlexDIORxSamplingRead() function must be used to get the sampling data.
The example below shows how a sampling application can collect discrete data values.