Parallel Port Tester

More
16 years 2 weeks ago - 16 years 2 weeks ago #4743 by BigJohnT
This is a little parallel port tester done with pyVCP.

To run this place both files in the same directory and open a terminal window and use the command
Code:
halrun -I -f ptest.hal

You can push the output buttons and change the state of each output. When you toggle an input it shows up on the screen.

image missing http://www.linuxcnc.org/media/kunena/attachments/legacy/images/ptest_final.png

Attachment ptest.zip not found



Enjoy
John
Last edit: 16 years 2 weeks ago by BigJohnT.
The following user(s) said Thank You: seuchato, captain chaos

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #10359 by TarHeelTom
Replied by TarHeelTom on topic Re:Parallel Port Tester
BigJohnT wrote:

This is a little parallel port tester done with pyVCP.

To run this place both files in the same directory and open a terminal window and use the command

Code:
halrun -I -f ptest.hal

You can push the output buttons and change the state of each output. When you toggle an input it shows up on the screen.

<snip>
Enjoy
John


John,

What is the switch immediately following "halrun" in the above code sequence?

Thanks

Tom

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #10360 by BigJohnT

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #10361 by TarHeelTom
Replied by TarHeelTom on topic Re:Parallel Port Tester
BigJohnT wrote:

Tom,

www.linuxcnc.org/docview/html/man/man1/halrun.1.html

John


Thanks

Tom

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago #23575 by Tonico
Replied by Tonico on topic Re:Parallel Port Tester
I am trying to run this test. First can it be run with nothing connected to the parallel port? If so this is what happens:
When I run halrun -I -f ptest.hal I get " Waiting for component 'PortTest' to become ready" a bunch of dots and than halcmd: I also get a new blank window called PortTest., eventually every thing seems to time out and I get back the normal prompt and the blank window closes.
This may wll be something that I am doing wrong due to my ignorance of Linux.
Any help wpould be appreciated
TIA
Tony.

Please Log in or Create an account to join the conversation.

More
14 years 2 months ago - 14 years 2 months ago #23589 by Todd Zuercher
Yes it works with nothing pugged into the port. You have to be sure that the port adress in the 1st line of the Hal file is the same as the port you are testing.

I would use it (a slightly modified version) to test if certain ports would work work in X-mode. I would start the test then probe holes with a resistor to see if the circles changed color.
Last edit: 14 years 2 months ago by Todd Zuercher. Reason: The file I attached was bad.

Please Log in or Create an account to join the conversation.

Time to create page: 0.266 seconds
Powered by Kunena Forum