how to add new line character "\n" in UART Block
03-24-2021
05:17 AM
5,274件の閲覧回数
viet
Contributor II
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
3 返答(返信)
03-25-2021
05:58 AM
5,209件の閲覧回数
viet
Contributor II
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi @mariuslucianand @adriantudor
great thanks for your help. Both of solutions are work for me.
thanks for your support.
03-25-2021
03:03 AM
5,236件の閲覧回数


NXP Employee
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hi @viet
Another solution is to use a "matrix concatenation" block after the string to ASCII block and add decimal values for new-line and carriage return, as in this picture.
Best regards,
Adrian
返信
03-25-2021
02:32 AM
5,242件の閲覧回数


NXP Employee
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello @viet ,
One way of sending the newline character is to provide the data to the LPUART send as uint8 (char) and to add in the end the number 10 (which is newline) If you also want to send carriage return is to add the number 13 also. See the below example. This is not the most elegant way, but it works.
Hope this helps,
Marius
返信
