MX Foundation 4
|
The Acquisition Receive service provides the functions to sequentially buffer all the received data on one or several channels. Each receiver channel has an acquisition queue built in the device. The device onboard’s processor stores all the data as they are received with precise time stamping correlated with all channels. A function call is provided for the host application to read from a receiver acquisition queue.
A sequence of detected signal state(s) can be buffered in acquisition mode for reading. Each state is contained in a MXF_FLEXDIO_DATAREC and typically contains the time stamp defining when the sample has been taken.
In edge mode, when the acquisition is started, one record is immediately returned giving the initial state of the discrete input lines. The edge field of the record will be set to 0. The following records are generated according to specified discrete input transitions.
In sampling mode, a record will be returned at each sample rate based on KMXF_FLEXDIO_RX_SAMP_PERIOD attribute.
The example below shows how to start an acquisition on discrete input channel.
flexdio_sampling_acq.c