how should i get output from serial port of laptop...?

4 Ansichten (letzte 30 Tage)
kenil
kenil am 26 Feb. 2013
Kommentiert: Walter Roberson am 11 Jul. 2017
i want to get output from serial port or parallel port of laptop from matlab..
it should be in 0 or 5 V. means min or max voltage

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 26 Feb. 2013
0 to +5V is TTL levels, which you will not be able to get directly from a standard serial ports. Standard serial ports operate on both positive and negative voltages. It is possible to buy RS232 to TTL convertor modules.
Parallel ports operate on TTL levels. It is not recommended to create new projects that use parallel ports, as MS Windows is making it more and more difficult to access parallel ports.
Do you need these outputs as digital data, or as strobes, or as continuous high/low outputs? Or do you want variable output levels (e.g., 0.35V 0.91V at need) ? How quickly do you need to be able to vary the signals.
  9 Kommentare
Muhammad Mohsin Khan
Muhammad Mohsin Khan am 11 Jul. 2017
i have usb to ttl converter can i use it to take 5v output signal please help
Walter Roberson
Walter Roberson am 11 Jul. 2017
Muhammad Mohsin Khan: I would raise similar questions to what I asked those years ago: How long do you need to hold the voltage for?
If you need the voltage held instead of being pretty much a strobe, then I would recommend that you work with DTR; https://www.mathworks.com/help/matlab/matlab_external/dataterminalready.html

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by