MX Foundation 4
|
The sampling service is useful when not all the traffic needs to be captured, but only a snapshot (for display for example). The sampling logic keeps the last value received for each channel. The service also allows the discarding of the latest data from the queue if it becomes obsolete after a period of time called, kill time.
The way to set a basic sampling receive application is as follows:
MXF_SCLASS_RXSAMPLING_SRV
subclass.The MXF_ANALOG_SAMPREC
structure must be used for reading an ADC message with sampling service.
adc_sampling.c
The example below shows how to implement an ADC sampling receive application.