|
-
Aug 1st, 2002, 11:32 PM
#1
Thread Starter
^:^...ANGEL...^:^
Parallel port address and access
i'm trying to use the PC to controll stepper motors in a robotic arm.. to do that i need to send binary numbers to the motor controll circuit. i'm using VC++ on .net.how can i send data to the prallel port and what is the data address of the prallel port. i tried using 0x370(i.e. the address of LPT1) but it didn't work.
-
Aug 2nd, 2002, 05:04 PM
#2
PowerPoster
Check out this tutorial:
http://www.aaroncake.net/electronics/vblpt.htm
It covers Qbasic and Visual Basic but the functions are almost same. I think to talk to the parallel port, you use "out()" and "inp()" functions.
-
Aug 5th, 2002, 02:08 AM
#3
Thread Starter
^:^...ANGEL...^:^
Thanks...ABDUL...
Any more suggestions from anyone else...
Cheers...
-
Aug 5th, 2002, 12:07 PM
#4
Monday Morning Lunatic
Originally posted by abdul
Check out this tutorial:
http://www.aaroncake.net/electronics/vblpt.htm
It covers Qbasic and Visual Basic but the functions are almost same. I think to talk to the parallel port, you use "out()" and "inp()" functions.
No suggestions on *how* to do it, but I know you can't use those two functions any more, since direct hardware access is forbidden. Look at port access under NT in MSDN.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|