 |
|
 |
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
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
|
 |
|
 |
thanks phebejtsov, it really helps!
|
|
|
|
 |
|
 |
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
|
|
|
|
 |
|
 |
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/
|
|
|
|
 |