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

2 views (last 30 days)
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

Answers (1)

Bhanu Prakash
Bhanu Prakash on 8 May 2023
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.

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!