Is there a way to access control pins on a DB9 connector in a Simulink simulation?

2 ビュー (過去 30 日間)
Howard Loewen
Howard Loewen 2023 年 3 月 9 日
回答済み: Bhanu Prakash 2023 年 5 月 8 日
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

回答 (1 件)

Bhanu Prakash
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.

カテゴリ

Help Center および File ExchangeTarget Computer Setup についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by