xPC Target | ![]() ![]() |
Async Buffer Write and Read Blocks
These blocks provide double buffering of data between the ISR and the model which executes rate-monotonically in real-time. Always use these blocks in pairs with an Async Buffer Write Block leading into an Async Buffer Read block. The Async Buffer Write Block has to be part of the ISR, and the Async Buffer Read block is outside the ISR.
Use Async Buffer Write and Read blocks for a more secure method of transferring data. Unlike the rate transition block, the data from one buffer is not copied to the second buffer. Instead, interrupts are disabled, and pointers to the buffers are swapped. This method produces the smallest time the interrupts are disabled and protects against data corruption caused by overwriting partially copied buffers.
Block Parameters |
Description |
Sample time |
Enter a base sample time or a multiple of the base sample time. |
![]() | Async Rate Transition Block | Asynchronous Interrupt Examples | ![]() |