MATLAB: How should i get output from serial port of laptop…
serial portserial port output from laptop
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
Best Answer
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.
RS232 RTS/DTR cannot be used for TTL levels without some conversion. TTL levels are 0 to +0.8V for low but RS232 is -25V to -3V for low. TTL is +2V to +5V for high, whereas RS232 is +3V to +25V, so youmight get lucky and have output in the +3V to +5V but you cannot generally be sure without specifications of the IC.
Best Answer