I am trying to generate a DC voltage to control an actuator (0-3V).
Basically, when receiving a trigger signal, the board will generate a steady 0V; then for the next trigger signal, it will generate 0.1V and so on until it reaches 3V and then it will start over from 0V.
The trigger signals are roughly 5~10 Hz, and connected to port PFI6.
I was trying to find a function to see if the program is triggered or not and if it is, the voltage will increase by 0.1V. But, I can't find such a function.
I am not pretty sure how to construct the code now. I would appreciate hearing any thought on this. Thanks.