Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Direct I/O output

Status
Not open for further replies.

GDGarth

Technical User
Aug 5, 2000
412
US
I'm trying to control a relay output card. The programming instructions are not clear.

To turn on a relay, you need to write a byte to the base address (992 or 3E0 Hex). How do I do this?

Their example is this:
Base = &h3E0 'Base I/O Address
Out Base,2 'Turn on Ch 1

I can't find an "out" function. Output, write, and Put seem to want to put the data into a file.

Print needs an object.

I'm using VB Version 4.0
 
I found the solution in my old Dos version of Quickbasic. They have a function called "Out", that writes directly to the address. I can't find the equivalent in VB.
 
please tell me what is the equivalent of portio.dll in Win32.
i have found it for a long time.would you please help me!!thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top