|
|
Comments and Discussions
|
|
 |

|
Hi
Actually i want to connect a sensor to the status pin but my status pin already show high value i.e I get status value as 127 instead of 120 as shown in your article plss help me out...
|
|
|
|

|
when i click on the button1 an 'System.Runtime.InteropServices.SEHException'
exception comes and the same exception comes if i press button2..What should i do?
|
|
|
|

|
Hi phebejtsov,
thank you for sharing this article. It helped me a lot building an application that reads the parallel port's status.
The application works on my developer PC. I'm primarily interested in 1 digital input and chose BUSY for that. A relais (switch side, not coil side) connects BUSY to GND. With inactive relais, as well as without anything plugged in the port, my application reads 0x78 from the port. Activation of the relais changes that to 0xF8.
However, it doesn't work on the target PC. Instead of returning 0x78 from an untouched parallel port, it returns 0x79. Activating the relais doesn't change anything. No exceptions, error messages or anything point me somewhere.
On the target machine, I don't have administrative rights. Does that hinder from using inpout.dll?
I'm using inpout32.dll, version 1.0.0.1, 32768 Bytes.
Have you heard of such a problem before? Do you know of a solution?
Ciao,
luker
|
|
|
|

|
I was granted administrative access on the target PC. And indeed, the application works now.
Any insights on how to get this to work as a non-priviliged user?
Ciao,
luker
|
|
|
|

|
Dear everybody,
I have made in vb6 a program using the inpout.dll for controling my modeltrain via the parallel port.
Now I have the situation that the parallelport is missing on my laptop.
Before I buy a usb to parallel convertor cable I like to know if the software is still working or in case not what to do to make it working again ?
thanks for your attention
Rob
|
|
|
|
|

|
Hello, I run this project in my computer with VB.net 2005 . when click to button1 with this event Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Out(&H378S, &HFFS) 'Print '1' to D7-D0 or 255 in Decimal Dim Value1 As String 'String named Value1 Value1 = Inp(&H378S) 'Now Value1 has the values in 'data port' MessageBox.Show(Value1) 'A popup will indicate the current value written End Sub
I found 120 result , but not found 255 in decimal . could you please say me about this problem. Thanks and Regards Md Kamrul Islam
|
|
|
|

|
Search the article for the headline "Using the Status Port?". It explains why you see a 120.
Ciao,
luker
|
|
|
|

|
Hello Sir,
I am really inspired by ur project and i appreciate ur efforts,
My Question in Detail:
I made two modules in VB regarding Inp and Out done programing, then i send the output to parallel port and i use inp function to get that value from sended port address, it seems my signals are reaching at the port. but i am still not confirming while they are reaching there or not, please inform me any simulator that detects signals in parallel port,
Secondly whenever i try to boot up my PC all Pins are on High, Even when i place One LED leg at controle Pin and One at Ground Still my LED Lights Up (Which should not be done)
Please show me a way that my LED only Lights Up on Certain Pins whom i give instructions from my Program otherwise these pins should be Off( not high as always).
I think there is nothing wrong from programing side but the problem is with hardware that is always active and lights up LED everytime before my instructions and also my if i send &H0 it also doesnot work and doesnot disable the datapins.
please help me urgently...
|
|
|
|

|
Hi,
Your tutorial is very helpful and it seems to be working except that I cannot change the output value (tutuorial 1). I think this is because I don't have the correct port address. No matter which Hex value I enter the messagebox always displays 255.
I'm using a USB to Parallel port on Windows 7 (32 -bit) and I'm running the code in VB 2010. Can you tell me how to determine the address when using a USB Parallel port?
Thanks
|
|
|
|

|
Hi bro....
Here im saathis final year student implementing speech door access system in vb6....
How to make sound to text then text to parallel port data high & low...
If user say his password that fixed in database. It will check then D1 of
port goes to high and rotate the motor to open the door... same process for close
operation... how to build it in VB6... please help me
info: microsoft access 2007 for database platform... Use USB to parallel 25 pin since
my laptop don't have parallel port... Please help me bro... it urgent :(
|
|
|
|

|
Hi bro....
Here im saathis final year student implementing speech door access system in vb6....
How to make sound to text then text to parallel port data high & low...
If user say his password that fixed in database. It will check then D1 of
port goes to high and rotate the motor to open the door... same process for close
operation... how to build it in VB6... please help me
info: microsoft access 2007 for database platform... Use USB to parallel 25 pin since
my laptop don't have parallel port... Please help me bro... it urgent :(
|
|
|
|

|
Very nice tutorial
|
|
|
|

|
its good demonstration, helped me lot
|
|
|
|

|
Very nice tutorial .. ...
***ISLAM POWER***
|
|
|
|

|
Hello
If you came to this article from Google because you are looking for a way to measure digital signals via parallel port then have a look at the following article:
17 Channel Logic Analyzer!
* Digital Oscilloscope / Logic Analyzer with up to 17 input lines
* Uses the parallel (printer) port for input.
* While Logic Analyzers normally are very expensive, this one is for zero cost
* Written in speed optimized C++ to get the maximum possible sample rates
* The program is a stand alone single EXE file which neither needs any additional DLLs nor any framework. It runs out of the box
* Runs on all Windows platforms (95, 98, ME, NT, 2000, XP, 2003, Vista, 2008, Windows 7, 2008 R2)
* Runs on 32 Bit Windows and 64 Bit Windows
* When first run, installs a driver to access hardware IO ports on all NT platforms
* Plays a sound via PC speaker to prove that the driver works correctly
* Shows the actual state of the input lines life in the LED's of the GUI
* Captures up to 500.000 samples / second (depending on your hardware and OS)
* Captures to memory (rather than disk) for maximum speed
* Capturing runs always with the maximum frequency that the hardware allows
* Memory saving capture technology stores only the changes of the input lines rather than storing all lines with each sample that is taken
* The capture process is independent of data analyzing so you can try various settings to display the captured data in the best way
* The analyzer generates coloured oscilloscope diagrams with a raster grid
* The output is written into an HTML file and one or multiple GIF files
* So the analyzer results can easily be shared with other people who must not install any program to view a proprietary binary format
* You can write an individual heading into each analyzer output to distinguish them later in a multitude of files
* When analyzing data, you can choose to delete old analyzer output or keep the old files
* The time axis shows absolute or relative time with microsecond precision (Performance Counter)
* Automatic detection of inactive input lines shows only the channels that have activity
* Automatic detection of idle time cuts out long phases of inactivity
* Automatic detection of input frequency chooses the adequate raster unit like on a real oscilloscope (10 µs, 20 µs, 25 µs, 50 µs, 100 µs, etc..)
* Automatic detection of context switches of the operating system
* Decoding of serial protocols like I2C Bus, PS/2 Bus, SMBus, ModBus, SPI Bus, Asynchronous (RS232, RS422, RS485), Infrared Remote Controls, Smartcards is partially already implemented or may be added by you.
* Decoded serial data (Start Bit, Parity, Acknowledge, Stop Bit) and the Byte that they represent is written into the diagram
* Very cleanly written source code with a proper error handling and plenty of comments
Elmü
|
|
|
|

|
Hi,
Its good article you teach how to read port status other than sending data to port, my question is, is there some method to rise an event when ever status of statur port is changed.
Regards
|
|
|
|
|

|
<pre lang="sql">when i click on the button1 an 'System.Runtime.InteropServices.SEHException' exception comes and the same exception comes if i press button2..What should i do?</pre>
|
|
|
|

|
thanks phebejtsov, it really helps!
|
|
|
|

|
when i click on the button1 an 'System.Runtime.InteropServices.SEHException' exception comes and the same exception comes if i press button2..What should i do?
|
|
|
|

|
I got ur code and test, but i got the exception:
System.Runtime.InteropServices.SEHException: External component has thrown an exception.
I tried to put INPOUT32.DLL to application folder and system32 folder, it can not normally both.
I dont why, pls help me, thanx.
|
|
|
|

|
put it in the bin\debug folder
|
|
|
|

|
you mean bin is folder and debug is a folder inside it and where is bin located... Actually when i run the code the SHE exception comes on pressing the buttons...what should i do.
|
|
|
|

|
how can i connect PIC16F877 to parallel port.?
i'll w8 ur rply...
|
|
|
|

|
Hello,
excelent tutorial
I have a question for you
Can I use safely for reading purpose, the pins named S0, S1 and S2 ?
And in this case, we would not need to ground those pins. Am I right ?
in order to activate those pins
Can I inject safely 5v or 12v into those pins? for example, from an external Pc's power supply
regards!
javier from Cordoba (Argentina)
|
|
|
|

|
have inout32.dll but still not working
|
|
|
|

|
how can i control microcontroller in vb.net perllel ports ..
plz reply
|
|
|
|

|
as we have tried to follow the tutorial and killed many hours on this nice peace - it did NOT work and we have been running around the net and been looking for the "Right"
inpout32.dll - but no success at all - we run windows XP
and have posted the inpout32.dll in various places including the system32 and the project catalog but no success. The saying is SEhException was unhandled and it stops on
inp (&H379S)
|
|
|
|

|
Hi,
I have seen the same problem as yours, but after I get the new inpout32.dll, and save it into c:\windows\system32\drivers or c:\windows\system32\
it is working now
WriteOh!!
|
|
|
|

|
how can i add button switch on circuit so the user can click the button on circuit then our program catch the input..
thanks
noname
|
|
|
|

|
hello, I tried the steps in this article step by step on my VB2005 (not the express edition), I got no errors but when I click on the button there is a run time error and a VB message is shown "External component has thrown an exception." and the message is titled "SEHExeption was unhandled".
I'm using a PC with windows XP with SP2, can it be the problem?
|
|
|
|

|
Me too.
This worked for me:
I replaced old version C:\WINDOWS\system32\inpout32.dll
with new version from http://www.logix4u.net/
|
|
|
|

|
How i can use an event when status pins changed and response to my robot speed?
|
|
|
|
|

|
The logix4u site is down, do you still have the inpout32.dll, please share me into this email: darmayuda.b.ariston@gmail.com, I really need the DLL for my project.
Thanks.
|
|
|
|

|
I also need the inpout32.dll. My email is citizen_runner@yahoo.com.
Thanks
|
|
|
|

|
I too need that...pls send as soon as possible to this mail
gsuspradeep@gmail.com
|
|
|
|

|
hi I'm new here,recently i'm doing my project on parallel port,using the parallel port to control my motor,i used vb 6.0, i've read the inpout32.dll,for write to the port, the portaddress was 888, whereas read from the port,portaddress was 889.
well!!! the output of the pin are working fine.now i stunt on the input of the parallel port. how do i get feedback from the input of the parallel port while it's on high(1).because i'm using sensor the track the movement of the motor.could anyone tell me what's the solution.thanks
|
|
|
|

|
im a beginner. , there are four pins of the 5 status pins of status port i was thinking of using. So I was thinking of only reading the result of those for 4 bit info from which to get motion info from. Only one pin is on hight is it not ?
I am wanting to get the exact position. Could you share your ideas on motion sensing please?
|
|
|
|

|
well basically there are 5pins of status port.4pins are on high,when they aren't grounded.which is pin 10,12,13,15.whereas pin 11 is Low.pin 11 is high when it was grounded.so it also can be use as one reading info.
sorry for one thing i need to know before i answer your question,what thing u apply on this status pins.
|
|
|
|

|
I have been using a couple of 1.5 batteries to get a 3 volt source. I connect that between a ground pin and whichever status pin. What was high becomes low, low becomes high, whilst ever the battery is connected to a particular pin.
This all seems to work fine, unless all the data pins D0 - D7 are on high. Then this stops working , I dont know why just yet.
-- modified at 4:17 Thursday 5th July, 2007
also my status port seems back to front from the example, the value returned
from status port with no connections on parallel port anywhere is 135, the exact opposite . 10000111
|
|
|
|

|
first check your coding,data port D0-D07 wont be affected by status port and control port.data port address was 888,and status port was 889.this is what i declared on my project.
default value of the status port was 127, which is 1111111. why you want to connect the 3v on the status pin?isnt it's supply source to other component,or else. if it is, you can use one of the data pins, data pins provide 5v, add one 1K resistor.
if you want to get exact position, there is one easy way for doing that,apply a limit switch on that position, connect it with on of the status pin, when the limit switch is turn on, then get the value to do next step.
value=inp(889)
if value = 63 then 'assumed i'm used pin 10,(binary=0111111)'
.....
end if
hope can help you.;)
|
|
|
|

|
ECP parallel Port. C# VS2005, win XP ,asus k8v-x se, Inpout32.dll , io.dll
Hi Experts, this may weary you but I getting nowhere. I am trying to get reliable input to the status port using external power supply. Always works great while DATA Port is low(00000000) If Data Port Low and nothing connected then Status Port Reads 135(10000111) , the status port reverts back to 135(10000111) as soon as I take away the signal voltage I have on pin/s. This seems perfect! BUT.....
If DATA Port is high(11111111) then Status Port reads 127(01111111) and I cannot use /affect status port again untill I have reset the Data Port (00000000)? This is the worst extreme of the situation. In between values on the DATA Port simply make the Status Port 'haphazard/unreliable' not sure of the pattern yet.
Im operating machinery of a sort with the Data Port and trying to get them to feed back to the Status Port what is going on
-- modified at 17:51 Monday 9th July, 2007
|
|
|
|

|
I had messed around with my notebook's LPT1 for sometime. A week ago when I developed a program that read the port, everything was fine and sweet. My LPT1 worked well. I assigned &H378 to 0, which seems to make the data port as input port, and the program read the port smoothly. But when I applied the prog (in VB 6) and install/copy some dll (incl inpout32.dll to my PC, it didn't worked. I'm still curious why it did not work in my PC. I checked all the bios setting on both but it seems that they are similar (all in ECP mode).
dOni
"Imagination is more important than knowledge" - A.Einstein
|
|
|
|

|
regarding your problem, have u copy the dll to right position>?(C:\WINDOWS\system32).
if u do, then u ca try to unistall ur parallel port on device manager.and then reinstall back.and u're assigned the port address to &H378, for input port of the parallel port should use &H379, or use 889.
hope can assist u and solve your problem.
|
|
|
|

|
Hi,
Thanks for the great article.
I would like to know about data input
1. Anyway to get the value of the input pin whenever the input port value is changed? without pressing the button?
2. Can we get the value from the status and control input port concurrently?
Thanks and regards
Aaron
|
|
|
|

|
I guess to use the timer control, and within the timers event just put the two methods to read the input.
|
|
|
|

|
sorry
i donot know
tell me if you reach to the answer
MREM
|
|
|
|

|
sir i want to control my PC with remote control. i have a remote control, whose receiver is connected to computer through printer port. how can i rceive the signal of remote on computer.
Waqas
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
Using the Signal Port to read in data instead of Data Port
| Type | Article |
| Licence | |
| First Posted | 1 Aug 2006 |
| Views | 222,101 |
| Bookmarked | 80 times |
|
|