LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID motor control using FPGA (PWM and Incremental encoder)

PWM coding is used to drive the motor.

 

Pulse is generated by using the sequence structure, and there is a problem in receiving the encoder value simultaneously while driving the motor.

Since the sequence structure cannot be escaped in the middle, I don't know how to construct the code to get the encoder value while driving.

 

Please help.

image.png

How can I implement PID control by using this code(FPGA pulse in sequence structure) ??

0 Kudos
Message 1 of 2
(1,725 Views)

Hi Odong,

 

use a parallel loop to read your encoder…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(1,685 Views)