axis vs touch offs.

More
4 years 11 months ago #227645 by Gene1934
Replied by Gene1934 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:
pyvcp.selectRadioX
pyvcp.selectRadioZ

And so they do! Thank you

Now to get them hooked up, I assume in postgui.hal, but that requires my presence in front of the machine to turn the dials and test it, but that will take a bit of coffee that's brewing, some clothes and breakfast first. I just woke up. To be greeted by snow on the decks.

Thanks again.

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 #227665 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
Now to get them hooked up, I assume in postgui.hal, but that requires my presence in front of the machine to turn the dials and test it, but that will take a bit of coffee that's brewing, some clothes and breakfast first. I just woke up. To be greeted by snow on the decks.

added these two lines to postgui.hal
net xtoggleout => pyvcp.selectRadioX
net ztoggleout => pyvcp.selectRadioZ
I can see x(or)ztoggleout on halscope but no pulse gets to pyvcp.selectRadioX(or)Z

Do I need an addf somename somethread? IDK how to put that in postgui.hal.
somethread would likely be jogthread as its slower than servothread, but that is
how the huge majority of where 95% of the dial stuff runs. So its plenty fast enough.

Thanks all!

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 #227668 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
found it!!!, My bad, hold the biscuits, I had used X and Z in the signal names in the postgui.hal but I had xtoggleout and ztoggleout in the main hal.
A noticeable lag in the update times but its working, might need to generate a longer pulse but that is not a problem to do.

And I could probably remove that timeout function that caused the need for that pulse in the first place, I'd added the timeout but have since found LCNC didn't need to shut the dials off as it ignores them anyway if its doing anything else. OTOH, it also protects it unless you intentionally push the button to reactivate them once timed out. And that button is hard to push, too hard in fact .

So if something brushes against the dial while changing tools or whatnot, its timed out and ignored.

Thanks guys, I think this is going to work.

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 #227700 by tommylight
Replied by tommylight on topic axis vs touch offs.

My bad, hold the biscuits,
Holding them and eating them ! :)
Was i supposed to not eat them ?

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

More
4 years 11 months ago #227704 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
As in bad dog, no biscuit. :o)

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 >
The following user(s) said Thank You: tommylight

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

More
4 years 11 months ago #227710 by Gene1934
Replied by Gene1934 on topic axis vs touch offs.
I've been playing some more and it appears to update the radio buttons on the falling edge of the strobe which I had set for 300 milliseconds. At a 50 ms pulse width setting, its pretty close to real time, good enough for me. Thank you again everyone that contributed.

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.

Time to create page: 0.185 seconds
Powered by Kunena Forum