Commit a64cf447 authored by Jacob Wikmark's avatar Jacob Wikmark
Browse files

turning off I resets it

parent 98486e86
......@@ -27,9 +27,9 @@ function makegui(P, run_process, plottingframerate = 10, guiframerate = 10)
u in slider(0:0.01:1, label=" um"),
run in button("Run"), #This should only exist in the simulated version
cali in button("Calibrate"),
K in slider(0:0.1:50, label="K"),
Ti in slider(0:0.1:50, label="Ti"),
Td in slider(0:0.1:50, label="Td"),
K in slider(0:0.1:30, label="K"),
Ti in slider(0:0.1:30, label="Ti"),
Td in slider(0:0.1:30, label="Td"),
mode in togglebuttons(["Manual", "Automatic"], label=""),
tankno in togglebuttons(["Upper", "Lower"], label=""),
pOn in togglebuttons(["On", "Off"], label="P"),
......@@ -117,6 +117,12 @@ function makegui(P, run_process, plottingframerate = 10, guiframerate = 10)
end
end
on(observe(iOn)) do val
if val=="Off"
tankpid.I = 0
end
end
# Below is the construction of the gui DOM
LabGUI.set!(gui, widgets)
add!(gui, rcont)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment