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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm trying to control a relay outpu

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 in VB (although there is one in QuickBasic, and their example works in that). 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 posted this on the VB 3-4 board, but haven't gotten a response. Anyone know how to do this?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top