projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(bktemp-updateLoopPI):write cv bias to tmpdir
[BK-2020-03.git]
/
unitproc
/
bktemp-updateLoopPI
diff --git
a/unitproc/bktemp-updateLoopPI
b/unitproc/bktemp-updateLoopPI
index 84adb77be28b03112923739f52deb023facfae23..bda89eee695f9a3be4de8a45812f2657df51ad90 100644
(file)
--- a/
unitproc/bktemp-updateLoopPI
+++ b/
unitproc/bktemp-updateLoopPI
@@
-9,7
+9,7
@@
update_pi() {
# process variable (PV). Uses proportional integral (PI)
# control.
# Usage: update_pi arg1 arg2 arg3 arg4 arg5 arg6
# process variable (PV). Uses proportional integral (PI)
# control.
# Usage: update_pi arg1 arg2 arg3 arg4 arg5 arg6
- # Version: 0.1.
0
+ # Version: 0.1.
1
# Input: arg1: path_loop_name (control loop name path)
# arg2: var_pv (process variable)
# arg3: var_sp (set point)
# Input: arg1: path_loop_name (control loop name path)
# arg2: var_pv (process variable)
# arg3: var_sp (set point)
@@
-59,6
+59,7
@@
update_pi() {
path_var_cv="$path_loop_name".cv
path_var_cv="$path_loop_name".cv
+ path_var_cv_bias="$path_loop_name".cv_bias
var_cv_bias="$6";
path_sum="$path_loop_name".sum
var_cv_bias="$6";
path_sum="$path_loop_name".sum
@@
-72,6
+73,7
@@
update_pi() {
#yell "DEBUG:var_pv:$var_pv";
#yell "DEBUG:var_sp:$var_sp";
#yell "DEBUG:var_cv:$var_cv";
#yell "DEBUG:var_pv:$var_pv";
#yell "DEBUG:var_sp:$var_sp";
#yell "DEBUG:var_cv:$var_cv";
+ #yell "DEBUG:var_cv_bias:$var_cv_bias";
#yell "DEBUG:tune_p:$tune_p";
#yell "DEBUG:tune_i:$tune_i";
#yell "DEBUG:tune_p:$tune_p";
#yell "DEBUG:tune_i:$tune_i";
@@
-93,12
+95,13
@@
update_pi() {
echo "$tune_p" > "$path_tune_p";
echo "$tune_i" > "$path_tune_i";
echo "$var_cv" > "$path_var_cv";
echo "$tune_p" > "$path_tune_p";
echo "$tune_i" > "$path_tune_i";
echo "$var_cv" > "$path_var_cv";
+ echo "$var_cv_bias" > "$path_var_cv_bias";
# Output control variable to stdout
echo "$var_cv";
#yell "DEBUG:=============END_ROUND===============";
# Output control variable to stdout
echo "$var_cv";
#yell "DEBUG:=============END_ROUND===============";
-}
+}
# update specified PI loop
#==END function definition==
#==BEGIN Example code==
#==END function definition==
#==BEGIN Example code==