Is there a way to access control pins on a DB9 connector in a Simulink simulation?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi,
In my SLDRT simulation I am generating a GPS-PPS signal that needs to be sent out to a device using serial communication (RS-232).
I was wondering if there is a way to access / control the, control pins on a DB9 connector in Simulink so that the PPS signal can be sent out, say on the DCD (Data Carrier Detect) pin.
The use of 3rd party cards to accomplish this is not what I am looking for.
Any insight on this is much appriciated !
Thank you
0 件のコメント
回答 (1 件)
Bhanu Prakash
2023 年 5 月 8 日
Hi Howard,
As per my understanding of the question, you want to access the control pins on a DB9 connector in Simulink.
To do this, you can use "Serial Transmit" and "Serial Receive" blocks in Simulink. These blocks can be connected to a DB9 connector and allow you to send and receive data through a serial port.
You can access the control pins on the DB9 connector using the "Serial Configuration" block.
You can refer to the following documentation of “Serial Configuration” block for more information:
Following is the documentation for “Serial Transmit” and “Serial Receive” blocks respectively:
Hope this answer helps you.
Thanks,
Bhanu Prakash.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Target Computer Setup についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!