[MWForum]controlling a motor
Jeff Knope
mwforum@lists.mathcats.com
Thu, 21 Aug 2003 10:20:04 -0700
This is a multi-part message in MIME format.
------=_NextPart_000_0018_01C367CD.C97C9ED0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Jinane wrote:
is there a way i can control a motor , a switch from my pc using the =
microworlds - using the serial or parallel port no pb, i used with C++ - =
& how ??
MicroWorlds Pro has some primitives for communicating with other =
devices. They are found by clicking Help -> MicroWorlds Topics -> =
Appendices -> "For systems programmers - using the serial port ..."
The primitives are .serialinit, .setbaud, .recc, and .send. The use of =
each is explained in the Help discussion.
My experience is a real RS-232 serial port (as opposed to USB ports) is =
required to use these primitives.
Good luck, Jeff
------=_NextPart_000_0018_01C367CD.C97C9ED0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Jinane wrote:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT color=3D#3366cc>is there a way i can control a motor , a =
switch from my=20
pc using the microworlds - using the serial or parallel port no pb, i =
used with=20
C++ - & how ??</FONT></DIV>
<DIV><FONT color=3D#3366cc></FONT> </DIV>
<DIV>MicroWorlds Pro has some primitives for communicating with =
other=20
devices. They are found by clicking Help -> =
MicroWorlds=20
Topics -> Appendices -> "For systems programmers - using the =
serial port=20
..."</DIV>
<DIV> </DIV>
<DIV>The primitives are .serialinit, .setbaud, .recc, and .send. =
The use=20
of each is explained in the Help discussion.</DIV>
<DIV> </DIV>
<DIV>My experience is a real RS-232 serial port (as opposed to USB =
ports) is=20
required to use these primitives.</DIV>
<DIV> </DIV>
<DIV>Good luck, Jeff</DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_0018_01C367CD.C97C9ED0--