if you truly want PID, you must have a way of actually defining your setpoint and reading your PV.
for example, setting X position and speed of a motor, using an encoder, will require you to have a method of counting pulses and current position.
what are your values?