Anyone know how to extract duty cycle values from the DIO via the FPGA ? Does anyone have any example code.
The FPGA read/write control VI when linked to the RoboRIO Reference provides a DIO.PWMDutyCycleA
I have no idea how this works. But it seems like it will work. I just don’t know how to tell the RIO what DIO channel I’ve connected the encoder to.
Trying to read a Mag encoder with PWM output similar to CTRE’s mag encoder. Prior to this, when we used the CTRE mag encoder, we plugged our CTRE mag encoder into a canifier and the canifier API’s had a VI that would output duty cycle.
Trying to avoid the canifier, I was hoping to plug the PWM signal directly to a DIO channel in the RIO and program in labview some means of reading the duty cycle or pulse length.