DVDRW Posted September 9, 2008 Share Posted September 9, 2008 (edited) Hi! I want to set or read LPT port bits. Placed Inpout32.dll to script folder. Is there something more should i do? This should send all LPT data bits to high level? DllCall( "INPOUT32.dll", "int", "out32", "int",0x378, "int", 255 ) When i launch that, nothing happens, my multimeter still shows 0V on parallel port 0x378 address is right because DIK74 software works without problem + my multimeter shows 3,3V. OS is WinXP Pro SP2 Edited September 9, 2008 by DVDRW Link to comment Share on other sites More sharing options...
picaxe Posted September 9, 2008 Share Posted September 9, 2008 Have a look at this example from suthers. Link to comment Share on other sites More sharing options...
DVDRW Posted September 9, 2008 Author Share Posted September 9, 2008 (edited) Yep i started from there. Set all bits to 1 and read result was all 0s Tried two different computers Edited September 9, 2008 by DVDRW Link to comment Share on other sites More sharing options...
picaxe Posted September 9, 2008 Share Posted September 9, 2008 Works for me, I've just runDllCall( "E:\inpout32.dll", "int", "Out32", "int", 0x378, "int", 255)and metered the data pins 0-7 as high and then used 0 as the last param and confirmed data pins 0-7 go low. Link to comment Share on other sites More sharing options...
DVDRW Posted September 9, 2008 Author Share Posted September 9, 2008 Thanx got it work! "INPOUT32.dll" caused the problem. "c:\INPOUT32.dll" worked I heard that when script location is the same place as file then you wont need write full path. It seems that is not true Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now