01.02.2023, 09:33
Code:
User library tratec_PID:126: attempt to perform arithmetic on local 'setpoint' (a boolean value)
stack traceback:
User library tratec_PID:126: in function 'compute'
User library tratec_PID:110: in function 'run'
Call:
Code:
if not pTV then
pTV = PID:init({
--manual ='', -- Setter PID i manuell ved "1"
kp = 1, -- P-Bånd
ki = 0.4 , -- I-Tid
kd = 1, -- D-Tid
current = TV_vav, --Faktisk Verdi
setpoint = TV_vav_SP, --Settpunkt
inverted = true, --Inverterer utgangen
min = 0, -- Minimum utgangssignal
max = 100, -- Maksimum utgangssignal
output = '33/1/6' --Pådrag
})
end
-- run algorithm
pTV:run()
log(pTV)