Main Page | Report this Page
 
   
Science Forum Index  »  Electronics - Basics Forum  »  Does anyone know how to integrate programming into basics el
Page 1 of 1    
Author Message
Guest
Posted: Thu Feb 01, 2007 12:17 am
I wrote a program on visual basic using C++, but now I want to see if
the program can run mechanical objects. how is this possible?

D
John Larkin
Posted: Thu Feb 01, 2007 12:57 am
Guest
On 31 Jan 2007 20:17:57 -0800, dmannn12345@gmail.com wrote:

Quote:
I wrote a program on visual basic using C++,

Umm, let's get that part untangled before we go on to the rest.

John
Puckdropper
Posted: Thu Feb 01, 2007 1:15 am
Guest
dmannn12345@gmail.com wrote in news:1170303477.726768.257450
@j27g2000cwj.googlegroups.com:

Quote:
I wrote a program on visual basic using C++, but now I want to see if
the program can run mechanical objects. how is this possible?

D



Compile it. See if it works.

Puckdropper
--
Wise is the man who attempts to answer his question before asking it.

To email me directly, send a message to puckdropper (at) fastmail.fm
Randy Day
Posted: Thu Feb 01, 2007 8:27 am
Guest
dmannn12345@gmail.com wrote:
Quote:
I wrote a program on visual basic using C++, but now I want to see if
the program can run mechanical objects. how is this possible?

Three options:

serial port
parallel port
USB
maxfoo
Posted: Thu Feb 01, 2007 8:36 am
Guest
On 31 Jan 2007 20:17:57 -0800, dmannn12345@gmail.com wrote:

Quote:
I wrote a program on visual basic using C++, but now I want to see if
the program can run mechanical objects. how is this possible?

D

Not if you're writing C++ code in a visual basic IDE!
Bob Masta
Posted: Thu Feb 01, 2007 9:10 am
Guest
On 31 Jan 2007 20:17:57 -0800, dmannn12345@gmail.com wrote:

Quote:
I wrote a program on visual basic using C++, but now I want to see if
the program can run mechanical objects. how is this possible?

D


Are you talking about driving real motors and such, or just modelling
them in software? If you want to connect to the outside world,
by far the simplest approach is to use the parallel printer
port on a Win9x machine. You get 8 (or more) output lines
to do with as you wish under software control. These can
drive relays or switching transistors that then drive motors
or whatever you want.

Th reason I said Win9x is that NT, XP, 2K, etc, don't
allow direct port control. However, you can get special
Ring 0 drivers that do allow this. (GIVEIO and USERPORT
are two that I've heard of, but never tried.)

Since you are probably new to port programming, you
might want to check out
www.lvr.com
They have lots of info on all kinds of ports, but the
parallel is simplest to interface for this application.

Best regards,


Bob Masta

D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
Scope, Spectrum, Spectrogram, Signal Generator
Science with your sound card!
 
Page 1 of 1       All times are GMT - 5 Hours
The time now is Thu Jul 24, 2008 1:16 pm