×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

MATLAB to control the serial port voltage

MATLAB to control the serial port voltage

MATLAB to control the serial port voltage

(OP)
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

RE: MATLAB to control the serial port voltage

(OP)
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

RE: MATLAB to control the serial port voltage

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: Eng-Tips.com Forum Policies


RE: MATLAB to control the serial port voltage


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:

http://www.dsprelated.com/groups/matlab/show/2929.php

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

CV

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources