Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert angle to PWM value ~ NI myRIO

Solved!
Go to solution

Hello guys! I have the following problem: I am trying to control the Ball and Beam System from Acrome Robotics using the NI myRIO controller and the VI attached. I want to excite the system using a sine signal and collect the data read from the potentiometer regarding the position of the ball. I have managed to read the values successfully but I can't translate motion to the system continuously in order to collect the data I want. The function 'Angle_to_PWM.vi' converts an angle value (in degrees) to a PWM value but it seems to convert only one value and does not produce different PWM  values for all the values of angle I am sending during the simulation. Anyone has any idea of how I could acomplish that ? 

0 Kudos
Message 1 of 2
(2,036 Views)
Solution
Accepted by topic author teoprot

Excuse me for the mistake. Problem was a sily mistake. I had not turned the action controller into true. 

0 Kudos
Message 2 of 2
(2,029 Views)