Best way to implement pin writing checks
Posted: 13 Aug 2021, 10:41
Hi All,
I have been reading through the https://revpimodio.org/ documentation as we are using that to control our IO module and interface with the python code in the rest of our system (ROS - Robotic Operating System). In other hardware environments I'm accustomed to the write operation returning a boolean indication that it was able to do so successfully. I can't see anywhere that this functionality is available using revpimodio? At the moment we are following the write command with a read command to the same output pin which allows us to perform this check but it doesn't feel like the most effective methodology. I have seen that there is an IO error counter is this the best way to track it? We currently have it set to 0 and aren't using that at all.
Has anyone got some good methods they are willing to share or have I missed something entirely?
I have been reading through the https://revpimodio.org/ documentation as we are using that to control our IO module and interface with the python code in the rest of our system (ROS - Robotic Operating System). In other hardware environments I'm accustomed to the write operation returning a boolean indication that it was able to do so successfully. I can't see anywhere that this functionality is available using revpimodio? At the moment we are following the write command with a read command to the same output pin which allows us to perform this check but it doesn't feel like the most effective methodology. I have seen that there is an IO error counter is this the best way to track it? We currently have it set to 0 and aren't using that at all.
Has anyone got some good methods they are willing to share or have I missed something entirely?