- Posts: 228
- Thank you received: 0
Live logging / recording of hal pin states possible ???
2 years 9 months ago #289613
by beefy
Live logging / recording of hal pin states possible ??? was created 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.
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.
Please Log in to join the conversation.
2 years 9 months ago #289619
by phillc54
Replied by phillc54 on topic Live logging / recording of hal pin states possible ???
Please Log in to join the conversation.
2 years 9 months ago #289623
by zdenek
Replied by zdenek on topic Live logging / recording of hal pin states possible ???
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
forum.linuxcnc.org/24-hal-components/491...-than-polling#272246
Please Log in to join the conversation.
2 years 9 months ago #289676
by beefy
Replied by beefy on topic Live logging / recording of hal pin states possible ???
Thanks lads, I'll have a look at those.
Please Log in to join the conversation.
2 years 9 months ago #289700
by PCW
Replied by PCW on topic Live logging / recording of hal pin states possible ???
If you are looking for an intermittent signal you can also
use halscope and trigger on the signal in question.
use halscope and trigger on the signal in question.
Please Log in to join the conversation.
2 years 9 months ago #289806
by beefy
Replied by beefy on topic Live logging / recording of hal pin states possible ???
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.
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 to join the conversation.
2 years 9 months ago #289812
by PCW
Replied by PCW on topic Live logging / recording of hal pin states possible ???
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.
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 to join the conversation.
Time to create page: 0.088 seconds
