MX Foundation 4
|
While a schedule runs, the CAN data can be updated asynchronously by the main application using the mxfCanBusTxPeriodicUpdateMsgWrite() function.
The next example shows how to use some functions for updating a transmission buffer.
The program below shows how to define a single record with mxfTxPeriodicScheduleSingleMsgAdd() to schedule what will be later updated while the schedule runs.
The example in the next section shows how to update the records dynamically.
The value of the data sent (CAN data) can be updated while a background schedule runs.
The example below shows how the mxfCanBusTxPeriodicUpdateMsgWrite() function can be used to perform the update operation.