Ability to use rising and falling edge detection when programming in Polyscope.
# What is it?
The ability to check for a rising or falling edge, e.g. when using the expression editor.
It could be 2 extra butons in the expression edtior, which would make this really easy and accessible.
Something like this:
# Why is it needed?
It would give a bit more power and flexibility to Polyscope programming, without the need of a PLC.
I currently have a project where it would be so much easier to just have an event that checks for a rising edge on an input and then sets a single pulse on an output - once.
digital_in REdge - set digital_out for 500ms
(just as an explanation, I don’t know polyscope script)
Here’s a script that does what you’re asking. You can just change the input, output, and duration variables to whatever you need. I do agree, having them built in would sure be handy.
input = 1
output = 1
outputDuration = 0.5
thrd = run risingEdge()