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

More
02 Jan 2024 22:33 - 02 Jan 2024 22:33 #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: 02 Jan 2024 22:33 by beefy.

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

More
02 Jan 2024 23:11 #289619 by phillc54

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

More
03 Jan 2024 00:05 #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
03 Jan 2024 17:13 #289676 by beefy
Thanks lads, I'll have a look at those.

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

More
03 Jan 2024 21:52 #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
04 Jan 2024 19:54 #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.

More
04 Jan 2024 21:59 #289812 by PCW
You likely need to add debounce (or use firmware that has the inm module)
on the P1 input pins you are using since they have no filtering which means a 20 ns
glitch from EMI can be detected a a momentary state change.

EMI filtering the signals near P1 is also not a bad idea.

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

More
05 Jan 2024 09:06 #289841 by beefy
Thanks very much Pete, I'll look into that.

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

Time to create page: 0.180 seconds
Powered by Kunena Forum