axis vs touch offs.

More
4 years 11 months ago - 4 years 11 months ago #227597 by cmorley
Replied by cmorley on topic axis vs touch offs.
Gene

Here is working sample of radio button selection pins added to axis using the USER_COMMAND_FILE option to add runtime modifications.

Add this file to your config folder.
Add this command to your INI under the DISPLAY heading.

USER_COMMAND_FILE=jogSelectPins.py

There will be two input pins added:
axisui.selectRadioX
axisui.selectRadioZ

This just gets the basics done - there may be details to work out such as joint jogging if you allow that in your config.

Chris
Last edit: 4 years 11 months ago by cmorley.
The following user(s) said Thank You: cakeslob, Bidul

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

More
4 years 11 months ago #227599 by cakeslob
Replied by cakeslob on topic axis vs touch offs.
ohhh it needs to go in user live update, that makes sense,
The following user(s) said Thank You: Bidul

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

More
4 years 11 months ago #227612 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.

Gene

Here is working sample of radio button selection pins added to axis using the USER_COMMAND_FILE option to add runtime modifications.

Add this file to your config folder.
Add this command to your INI under the DISPLAY heading.

USER_COMMAND_FILE=jogSelectPins.py

There will be two input pins added:
axisui.selectRadioX
axisui.selectRadioZ

This just gets the basics done - there may be details to work out such as joint jogging if you allow that in your config.

I do it in my .hal.
This did not add the buttons
I put the attachd file in the $config dir. and put the USER_COMMAND_FILE=jogSelectPins.py as the last item under the [DISPLAY|
and ran it, no effect. does it need an addf to one of the threads?
Thanks Chris.
Gene1934

 

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

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

More
4 years 11 months ago #227614 by cmorley
Replied by cmorley on topic axis vs touch offs.
It doesnt add buttons. It adds HAL pins that will select the a is selection radio buttons.
Strobe the pin high and the radio button will be selected.

The jogSelectPin.py file needs to be in the same place as the INI file.

Watch the capitals are the same in the file name as the entry in the INI

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

More
4 years 11 months ago #227632 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
It doesn't add buttons. It adds HAL pins that will select the a is selection radio buttons
Strobe the pin high and the radio button will be selected.
I knew that, but there has to be a pin to strobe.
The jogSelectPin.py file needs to be in the same place as the INI file.
It is, but no added pins can be seen. I even did a chmod +x on the file,
Watch the capitals are the same in the file name as the entry in the INI
First thing I checked, used copy/paste to create the file content and its names. htop can't see it running.
Perhaps there should be a python shebang at the top?
 

File Attachment:

File Name: 7i90-axis.ini
File Size:5.13 KB

 

File Attachment:

File Name: JogSelectPins.py
File Size:383 B

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

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

More
4 years 11 months ago #227638 by MaHa
Replied by MaHa on topic axis vs touch offs.
If you have a PYVCP panel, (found this in your .ini;  PYVCP    =    pyvcp-panel-tach-status.xml)
the pins show up as:
Code:
pyvcp.selectRadioX pyvcp.selectRadioZ
 

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

Time to create page: 0.062 seconds
Powered by Kunena Forum