- https://www.dspace.com/de/gmb/home/support/supvers/supverscompm.cfm
- https://www.dspace.com/en/inc/home/support/supvers/supverscompm/mlcomp.cfm
How do I configure data in simulink for serial transmission over dSPACE RTI
조회 수: 12 (최근 30일)
이전 댓글 표시
I'm trying to transmit 12 8-bit values from dSPACE RTI to a LabVIEW controller. The only communication port I have available on both is a UART serail port. Simulink is producing a vector with the 12 values stored in it, but the dSPACE block controlling the COM1 port seems to want a sequence of singluar values. I've not been able to find any documentation describing how to configure this system.
댓글 수: 0
답변 (1개)
Sivapriya Srinivasan
2023년 10월 3일
편집: Sivapriya Srinivasan
2023년 10월 9일
Hello Brenton,
To transmit 12 8-bit values from dSPACE RTI(real time interface) to a LabVIEW controller using a UART serial port, you need to ensure that the data is properly formatted and transmitted in a way that can be interpreted correctly on the receiving end. Here are some steps to consider:
1. Since you have a vector of 12 values in Simulink, you need to serialize the data before transmitting it over the UART serial port. This means converting the vector into a sequence of singular values that can be transmitted one by one.
2. To ensure proper synchronization and identification of the transmitted data, it is common to use a framing protocol. This involves adding start and stop bits or using specific characters to mark the beginning and end of each data value. The LabVIEW controller should be configured to recognize and interpret these framing bits or characters.
3.Configure the UART serial port on both the dSPACE RTI and the LabVIEW controller with the appropriate settings, such as baud rate, parity, stop bits, and data format (8 bits per character). Ensure that the UART settings match on both ends to establish a successful communication link.
4.Communication Protocol: Define a communication protocol that outlines how the data will be transmitted and interpreted. This protocol should specify the message format, including any header information, data framing, and any other necessary information for the LabVIEW controller to correctly receive and interpret the data.
5.Implement the Transmission: In your Simulink model, use the dSPACE block controlling the COM1 port to transmit the serialized data using the configured UART settings. Ensure that the data is transmitted according to the defined communication protocol.
6.LabVIEW Configuration: On the LabVIEW side, configure the UART serial port to receive the transmitted data using the same UART settings as configured on the dSPACE side. Implement the necessary logic to receive and interpret the data according to the defined communication protocol.
Browse the following links for version compatibilities between products from MathWorks and dSPACE products:
Hope this helps
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 RF Blockset Models for Transceivers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!