NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Parallel Port Tester

Parallel Port Tester 18 Oct 2010 12:54 #4743

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5082
  • Thank you received: 102
  • Karma: 136
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
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.



This attachment is hidden for guests. Please log in or register to see it.

Enjoy
John
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
Last Edit: 18 Oct 2010 12:55 by BigJohnT.
The administrator has disabled public write access.

Re:Parallel Port Tester 07 Jui 2011 10:16 #10359

  • TarHeelTom
  • TarHeelTom's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 99
  • Karma: 2
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
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
The administrator has disabled public write access.

Re:Parallel Port Tester 07 Jui 2011 10:22 #10360

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5082
  • Thank you received: 102
  • Karma: 136
The administrator has disabled public write access.

Re:Parallel Port Tester 07 Jui 2011 10:24 #10361

  • TarHeelTom
  • TarHeelTom's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 99
  • Karma: 2
BigJohnT wrote:
Thanks

Tom
The administrator has disabled public write access.

Re:Parallel Port Tester 23 Auo 2012 05:09 #23575

  • Tonico
  • Tonico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
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.
The administrator has disabled public write access.

Re:Parallel Port Tester 23 Auo 2012 13:26 #23589

  • Todd Zuercher
  • Todd Zuercher's Avatar
  • NOW ONLINE
  • Gold Boarder
  • Posts: 286
  • Thank you received: 23
  • Karma: 8
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.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
Last Edit: 24 Auo 2012 10:26 by Todd Zuercher. Reason: The file I attached was bad.
The administrator has disabled public write access.

Re:Parallel Port Tester 24 Auo 2012 06:22 #23623

  • Tonico
  • Tonico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
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
The administrator has disabled public write access.

Re:Parallel Port Tester 24 Auo 2012 09:59 #23634

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5082
  • Thank you received: 102
  • Karma: 136
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
Last Edit: 24 Auo 2012 10:00 by BigJohnT.
The administrator has disabled public write access.

Re:Parallel Port Tester 24 Auo 2012 10:44 #23639

  • Todd Zuercher
  • Todd Zuercher's Avatar
  • NOW ONLINE
  • Gold Boarder
  • Posts: 286
  • Thank you received: 23
  • Karma: 8
Here's the corrected X-mode ptest files. I fell pray to windows scrambling the xml file when I posted from my windows machine. This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re:Parallel Port Tester 24 Auo 2012 13:13 #23641

  • Tonico
  • Tonico's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Karma: 0
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
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ArcEye
Time to create page: 1.531 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.