Study of xPC Target Serial Communication Based on Circular Buffer

LU Jun-jie,ZHOU Jun,ZHAO Bin
DOI: https://doi.org/10.3969/j.issn.1000-8829.2011.07.014
2011-01-01
Abstract:To satisfy the requirement of serial communication in hardware-in-loop simulation,the serial communication technology using circular buffers driven by the CPU interrupt and the software timing in xPC target was proposed.The key technologies based on the S-function were studied which included the module task principle analysis,hardware interrupts obtain,the circular buffer design and its parameter transmission,and the write and read of the buffer.The communication module of the inertial measurement unit was achieved using this method,and test on the three axis simulator,which can get the acceleration and angular rate information correctly.Tests prove that the proposed method is effective and can help the expansion of the xPC target.
What problem does this paper attempt to address?