Inpout32 Dll Serial Port Examples Of Similes

8 Aug 2006CPOL

Days of research and programming have led me to try all variants of inpout32.dll and inpoutx64.dll: binaries, source code, 32-bit, 64-bit, address wrappers. None work: no change is seen to the output bits of the port. InpOut32 is an open source windows DLL and Driver to give direct access to hardware ports (for example the parallel and serial port from user level programs. It is originally developed by the people at Logix4U for Windows 9x and 32bit variations of NT (NT/2000/XP/2003 etc.).

Using the Signal Port to read in data instead of Data Port

Introduction

This is a good tutorial about interfacing with the parallel port; more importantly reading from the port. Other articles I've seen only show how to write to the port.

Before I get ahead of myself, the parallel port I used is an ECP (<!--?xml:namespace prefix = st1 /-->Extended Capability Port). Find out if your port is the same as mine, yours could be an EPP or SPP.

Go to “Control Panel / System / Hardware Tab / Device Manager / Ports (Com & LPT) / Printer Port (LPT1 or LPT2) /

It should indicate what type you have. You can also go to the ‘Resource’ Tab to indicate the range of your port: mine is I/O Range 0378 – 037F, ignore the other I/O range.

For the ECP, there are some over headers if I was to use the data port as both input and output. Instead, I used the signal port for data processing.

If by any odd reason you don't understand the tutorial, please refer to the explanation towards the bottom of the page. Or just leave a comment below.

Note that all information regarding the inpout.dll is on http://www.logix4u.net/.

Please vote so I can get an indication whether it's worth my time to update.

Testing

As mentioned before, I used a DMM to test out the ports (nothing connected to the ports yet) and I used the read function from the inpout32.dll, i.e., In(Port Address), my particular port address was:

  • [Data Port] Address: 0x378H or in VB Express &H378S
  • [Status Port] Address: 0x379H or in VB Express &H379S
  • [Control Port] Address: 0x37AH or in VB Express &H37AS

*note these port address are in HEX

Data PinsStatus PinsControl Pins
Pin 9: D7Pin 10: S6Pin 1 : C0
Pin 8: D6Pin 11: S7Pin 14: C1
Pin 7: D5Pin 12: S5Pin 16: C2
Pin 6: D4Pin 13: S4Pin 17: C3
Pin 5: D3Pin 15: S3
Pin 4: D2
Pin 3: D1
Pin 2: D0

Tutorial #1

Note that this was done in VB 2005 Express Edition.

  • The 1st Tutorial: Writing to the 'data' port and reading what we wrote on it.
  • The 2nd Tutorial: Reading from the 'status' port externally.

Step 1

Basically; once you download the input32.dll file, copy it to your system directory, i.e., C:WINDOWSsystem32.

Step 2

Then in VB; open a New File.

Step 3

In the text box, write a name for this project. I called my 'Port_Testing':

Serial port adalah

Step 4

'Drag' a button to your form window and then 'Double Click' on the button.

This tool will download and update the correct Antec driver versions automatically, protecting you against installing the wrong Antec drivers. About The Author: Jay Geater is the President and CEO of Solvusoft Corporation, a global software company focused on providing innovative utility software. VFD by ANTEC. Versions: 6.0 and 1.0. File name: VFD.exe. Log in / Sign up. Windows › VFD. Choose the most popular programs from Audio & Video software 6.01.0702 ANTEC. LCDC and other related programs like Scott's Nixie Tube Clock at the 'download' section. Share your experience: Write a. Free antec imon software download download software at UpdateStar - iMon is a resident program that monitors the remote control and manages all of its settings. IMon also controls Frontview, which is the software application that displays information on the. Software Free antec vfd driver windows 7 download software at UpdateStar - iMon is a resident program that monitors the remote control and manages all of its settings. Where is the iMon download. Runs my Antec Premier LCD. 8.1 Imon driver windows 8 Soundgraph imon windows 10 Imon software windows 10 Imon remote software. Antec Quality 1/ 2 / 3 / 5 / 7 / 10 Years Limited Warranty RMA Definition and Difference - North America customers only Disclosure of RMA and Warranty Policy for international customers.

Step 5

Once you are in the code editor, declare this as follows at the beginning of your code:

Step 6

Scroll down to the 'event handler,' of Button1.

Step 7

Now within the event handler code, write the following three lines of code:

Step 8

Run It!!! Using 'F5 Key' or going to 'Debug/Start Debugging.'

Here is the result of our hard earned work! 255 should appear on the messagebox. If not, you screwed up. Go back and repeat. To see different results, you can also modify the code by writing in any other number in hex within the 'Out(&H378S, [HEX CODE: Only from &H0S to &HFFS ]).' *Note that the range is 0 (zero) to FF hex & not O.

Tutorial #2

Step 1

If you haven't gone through Tutorial #1 and you are a novice, I suggest that you should scroll up.

Step 2

Go to the 'Design Tab' and drag another button to the form window.

The ITC Avant Garde Gothic design was one of the first typeface families released by ITC – and continues to be one of its most popular. The basis for th. ITC Avant Garde Gothic is a font family based on the logo font used in the Avant Garde magazine. Herb Lubalin devised the logo concept and its companion headline typeface, then he and Tom Carnase, a partner in Lubalin’s design firm, worked together to transform the idea into a full-fledged typeface. ITC Avant Garde Gothic. Inspired by the 1920s German Bauhaus movement, ITC Avant Garde Gothic was designed by Herb Lubalin and Tom Carnase in 1970. The typeface design was based off the logo Lubalin created for Avant Garde magazine. Avant garde gothic alternative clubs What's a good replacement font for ITC Avant Garde Std? Ask Question 15. Tex Gyre Adventor is a really nice replacement for both Avant Garde and Century Gothic. Useful if you also target devices that are not a pc or Mac. Or if someone finding this is looking for a free alternative to ITC Avant Garde. ITC Avant Garde Gothic is a typeface designed by Herb Lubalin, Ed Benguiat and Tom Carnase, and is available for Desktop. Try, buy and download these fonts now! Demi Bold Alternative. Bold Oblique. Bold Alternative. CE Condensed Book. CE Condensed Medium. Condensed Demi.

Step 3

Next, double click on it and then add the following code in the 'eventhandler' for Button2.

Step 4

Run It!!! Press F5 or go to Debug/Start Debugging.

Step 5

Click on Button2 and watch for the popup window. It should read 120 Decimal.

Explanation

What are Hex, Bin, Dec?

They are representations of numbers at different bases:

  • Hex = Hexidecimal Numbers (Base 16)
  • Bin = Binary Numbers (Base 2)
  • Dec = Decimal Numbers (Base 10)

We are most familiar with base 10 since we count in decimal, however computers are only familiar with base 2; i.e., 1's and 0's or 'on' and 'off.' I'm not going to elaborate more than this. To change between bases, simply use Microsoft Calculator that is already built in. Just remember to change it from the 'Standard View' to the 'Scientific View.' Write in the numbers and then simply click on what base you would like to see the number represented in.

Using the Status Port?

In Tutorial #1; we saw the MessageBox popup window showing a value of 255. You might ask yourself, why is that. First of all, DUH! We wrote 255 Decimal or FF Hex to it and of course, we can write anything else (0 - FF).

In Tutorial #2; we saw the MessageBox popup window showing a value of 120. Again, you might as yourself, why is that. The answer is not as obvious. You might think the value should be '0' since we wrote nothing to it & we didn't connect anything to our parallel port yet. The answer is that Bit 7 (S7) of the signal port is inverted! (Ahhhhh) and S7 - S3 are always high enable. (Yes!)

  • S7' = 1' = 0
  • S6 = 1
  • S5 = 1
  • S4 = 1
  • S3 = 1
  • S2 = 0
  • S1 = 0
  • S0 = 0
  • 01111000bin = 120dec

So you might ask yourself, how do we use the status port!!!

Serial Port Adalah

Just tie any of your status pins (any red pin) to ground (any green pins) and you should see a value change when you run my program again.

You see, on the status line; the pins are 'high', i.e., 5V. To enable them for reading purposes, you'll have to ground your status pins. (OOOOOHHH!!!)

Examples

Example 1

Nothing Connected to Status Pins

The result should be: 120

S7S6S5S4S3S2S1S0
01111000
Example 2

Status Port (S7), pin 11 is grounded

The result should be: 248

S7S6S5S4S3S2S1S0
11111000
Example 3

Vb 2010 Serial Port Examples

Status Port (S5), pin 12, is grounded

Serial Port Examples

The result should be: 88

S7S6S5S4S3S2S1S0
01011000

Comments & Source Code

There you go! I know this was very long, but I hope it helps. If you need the code, I’ll be happy to share. It’s in VB Express although.

Parallel Port