Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MATLAB to control the serial port voltage

Status
Not open for further replies.

absoluthish

Computer
Apr 23, 2007
2
Hi
i m trying to control(ON/OFF) a LED using the serial port on the MATLAB .. up till now all i found that the MATLAB only sends a string or binary to the port
can anyone help me on how to control the voltage on the serial port pins ?
thanks in advance
Hisham
 
Replies continue below

Recommended for you

As a computer professional, you should already know that RS-232 does not allow for voltage adjustment

TTFN

FAQ731-376


 
As a Computer Professional i already know that pin4 and pin7 in the RS232 change polarity during the transmission and reception ..
my problem is that i need to control these pins
thanks for your generous help :)
Hisham
 
It changes polarity because it SWITCHES between the FIXED positive supply and the FIXED negative supply. There is no programming of the voltages.

TTFN

FAQ731-376


 
If you are trying to do a binary switch, the parallel port would be your best choice. The matlab data acquisition toolbox has support for parallel port operations.

A quick web search turned up several other options. Here is one that describes one of the harder techniques:


At your own risk, you may be able to find someone who has already done this and posted the DLL.

CV
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor