Set Up and Test the DC Motor and Encoder (continued)
Step 4: Click the “Reset Counters” button two times to set the encoder couter value to zero. Maintain the frequency of
motor1 at 1000, and set the motor1 PWM duty cycle to 10. Confirm that the motor starts spinning and that the encoder
counter value is increasing.
Step 5: Set the motor1 PWM duty cycle to 0 and confirm that the motor stops spinning and that the encoder counter
value stops changing. Next, set the motor1 PWM duty cycle to -10 and confirm that motor1 starts spinning in the opposite
direction and that the encoder counter value is decreasing.
Step 6: Set the motor1 PWM frequency to 6000 and note any changes in the motor when you change its duty cycle. Set
the motor1 PWM duty cycle back to zero and click the reset counters butty two times to reset the encoder counter value
back to zero.
Step 7: Repeat steps 4 through 6 for motor2
Step 8: Stop the VI by pressing the stop button and close out the VI.
Control System Set Up and Testing 51