Maker Pro
Maker Pro

Does anyone know how to integrate programming into basics electronics?

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
 
J

John Larkin

Jan 1, 1970
0
I wrote a program on visual basic using C++,

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

John
 
P

Puckdropper

Jan 1, 1970
0
[email protected] wrote in @j27g2000cwj.googlegroups.com:
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
 
R

Randy Day

Jan 1, 1970
0
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
 
M

maxfoo

Jan 1, 1970
0
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!
 
B

Bob Masta

Jan 1, 1970
0
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!
 
Top