- Posts: 3410
- Thank you received: 0
Parallel Port Tester
16 years 1 week ago #4743
by BigJohnT
Parallel Port Tester was created 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
You can push the output buttons and change the state of each output. When you toggle an input it shows up on the screen.
Enjoy
John
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.
Attachment ptest.zip not found
Enjoy
John
Please Log in to join the conversation.
- TarHeelTom
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
15 years 4 months ago #10359
by TarHeelTom
Replied by TarHeelTom on topic Re:Parallel Port Tester
BigJohnT wrote:
John,
What is the switch immediately following "halrun" in the above code sequence?
Thanks
Tom
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 to join the conversation.
15 years 4 months ago #10360
by BigJohnT
Replied by BigJohnT on topic Re:Parallel Port Tester
Please Log in to join the conversation.
- TarHeelTom
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 0
15 years 4 months ago #10361
by TarHeelTom
Replied by TarHeelTom on topic Re:Parallel Port Tester
Please Log in to join the conversation.
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.
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 to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
14 years 2 months ago #23589
by Todd Zuercher
Replied by Todd Zuercher on topic Re:Parallel Port Tester
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.
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.
Please Log in to join the conversation.
14 years 2 months ago #23623
by Tonico
Replied by Tonico on topic Re:Parallel Port Tester
Thanks for the reply. Unfortunately it did not help. The address in the Hal file is in fact the same as the port (onboard parallel port)
Is there anything that I need to do or set up BEFORE I run the test?
TIA
Tony
Is there anything that I need to do or set up BEFORE I run the test?
TIA
Tony
Please Log in to join the conversation.
14 years 2 months ago #23634
by BigJohnT
Replied by BigJohnT on topic Re:Parallel Port Tester
Are you running this on a computer with LinuxCNC installed via the LiveCD?
It should just work...
Are both files in the same directory?
Did you open the files with a windoze editor that might have tacked on some funny stuff to the end of each line?
John
It should just work...
Are both files in the same directory?
Did you open the files with a windoze editor that might have tacked on some funny stuff to the end of each line?
John
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
14 years 2 months ago #23639
by Todd Zuercher
Replied by Todd Zuercher on topic Re:Parallel Port Tester
Here's the corrected X-mode ptest files. I fell pray to windows scrambling the xml file when I posted from my windows machine.
Attachment ptest-b452f496a183f9d7b02aa5da782eb853.zip not found
Please Log in to join the conversation.
14 years 2 months ago #23641
by Tonico
Replied by Tonico on topic Re:Parallel Port Tester
Yes it was installed from a Live CD 8.04 -
Yes both files in the same directory
Downloaded directly to the Linux box and used "text editor" to verify the port address.
Thanks
Tony
Yes both files in the same directory
Downloaded directly to the Linux box and used "text editor" to verify the port address.
Thanks
Tony
Please Log in to join the conversation.
Time to create page: 0.332 seconds
