Live logging / recording of hal pin states possible ???

More
2 years 9 months ago - 2 years 9 months ago #289613 by beefy
Is there any way, or any component, that can record the states of selected hal pins live.

I designed and built a pendant that sends hal input signals to a custom component, and let's just say I'm getting unexpected things happening. 
So I'm wanting to do a "live" recording of these inputs for say 20-30 seconds, possibly a bit more, to see if any of them activated for even a very short time. Halshow won't be any good for this type of thing because a very short pulse won't even be visible.
Last edit: 2 years 9 months ago by beefy.

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

More
2 years 9 months ago #289619 by phillc54

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

More
2 years 9 months ago #289623 by zdenek
You can catch a HAL event of interest and pass it to the user space (where you can do whatever you want with it) as I showed here:
forum.linuxcnc.org/24-hal-components/491...-than-polling#272246

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

More
2 years 9 months ago #289676 by beefy
Thanks lads, I'll have a look at those.

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

More
2 years 9 months ago #289700 by PCW
If you are looking for an intermittent  signal you can also
use halscope and trigger on the signal in question.

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

More
2 years 9 months ago #289806 by beefy
Thanks Pete.

Yes that's exactly what I'm looking for so that could also come in handy.
What was happening in my system was that during a plasma cut, it would just mysteriously stop and the torch retract, no error messages.
I looked at the log file and all it said was Cycle Aborted. Phill said that normally means a STOP button was pressed or the ESC key was pressed if enabled.
My pendant sends signals to hal via the P1 expansion connector on the 7i96. Turning off my pendant did not eliminate the random stoppages, but when I unplugged the P1 expansion connector Qtplasmac ran rock solid for a 30 min cut. So I believe I'm getting some "garbage" from my pendant and will need to track it down.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum