parport observation in outport out-inverter-1 seems not to work

  • RobotMatic
  • RobotMatic's Avatar Topic Author
  • Away
  • Elite Member
  • Elite Member
More
01 Dec 2025 15:13 #339593 by RobotMatic
2.9.7 I can't manage to start a configuration with inverted output ports.

pin 1-14-17 out-inverter-1 seems not to work

I can change state, but I can't start a setup with an inverted state

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

More
01 Dec 2025 16:06 - 01 Dec 2025 16:24 #339595 by langdons
Weird.

Try creating a new config with StepConf and look at the HAL file(s) it generates or look at the hal file(s) in an example config to make sure your syntax is correct.
Last edit: 01 Dec 2025 16:24 by langdons.

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

  • RobotMatic
  • RobotMatic's Avatar Topic Author
  • Away
  • Elite Member
  • Elite Member
More
01 Dec 2025 16:41 - 01 Dec 2025 16:51 #339596 by RobotMatic
video     That's what I did when I ran into the problem
Last edit: 01 Dec 2025 16:51 by RobotMatic.

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

More
01 Dec 2025 17:48 - 01 Dec 2025 17:50 #339597 by langdons
"out-inverter-1" should be: "pin-01-out-invert" (in the title)

Try setting pin-01-out-invert to 0 instead of 1.

Perhaps 1 is the default value.

Check all the HAL files in case the stuff in another file is messing stuff up.
Last edit: 01 Dec 2025 17:50 by langdons.
The following user(s) said Thank You: RobotMatic

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

  • RobotMatic
  • RobotMatic's Avatar Topic Author
  • Away
  • Elite Member
  • Elite Member
More
01 Dec 2025 19:04 #339602 by RobotMatic
I tried what you suggested, it doesn’t work, it has erratic behavior. It performs poorly in 2.8, 2.94, and 2.97, it behaves erratically in all of them, I don’t understand what’s going on

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
02 Dec 2025 05:46 #339621 by tommylight
What does "erratic behavior" mean, exactly and how does it show up?

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

  • RobotMatic
  • RobotMatic's Avatar Topic Author
  • Away
  • Elite Member
  • Elite Member
More
02 Dec 2025 15:47 #339648 by RobotMatic
At startup, the system,(for example the pin 1-out) does not change when an inverter is applied.
You can watch the video I uploaded in this thread to see what happens

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

More
02 Dec 2025 15:49 #339649 by langdons
"Erratic" means "changing and unpredictable".

The behavior of your system seems to be predictable.

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

  • RobotMatic
  • RobotMatic's Avatar Topic Author
  • Away
  • Elite Member
  • Elite Member
More
02 Dec 2025 15:54 #339650 by RobotMatic
I'm a bit confused, if I want to start the system with an output at 1, do I apply setp... inverter true

This should show me the output activated, but I don't see it that way; I still see it turned off. I don't know if I'm misinterpreting it or if it's not working for me, which is why I left a video showing it.

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

More
02 Dec 2025 16:07 #339652 by PCW
I think you may be misinterpreting how the invert parameter operates,
it does not change the state of the parport.0.pin-NN-out hal pin.
(It cannot as this hal pin would be driven by a hal signal)
but rather changes the physical output polarity. You cannot
detect this change in the parport.0.pin-NN-out hal pin but only by
measuring the actual parallel port hardware output pin.
The following user(s) said Thank You: RobotMatic, langdons

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

Time to create page: 0.383 seconds
Powered by Kunena Forum