04-19-2017 01:35 PM
Hey guys, I'm trying to control a motor speed using Labview's PID toolkit
My issue is that my motor controller vi (MTR-CM) can only accept integer values within a range of 0 to 600 and I can't find a good way to limit what the PID control can output. I've attached demo code with an example of how the application would be implemented (Main.vi)
If anyone knows a good way to solve this, I'd greatly appreciate input.
04-19-2017 01:42 PM
Scale your float to the appropriate integer range.
Ben
04-19-2017 01:48 PM - edited 04-19-2017 01:51 PM
Hi ATE,
My issue is that my motor controller vi (MTR-CM) can only accept integer values within a range of 0 to 600 and I can't find a good way to limit what the PID control can output.
Set the output range of the PID function to [0, 600] and apply RoundToNearest on the PID output: