*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit c4e35679 authored by Schabbauer, Johannes's avatar Schabbauer, Johannes
Browse files

Adding overwriting PID parameters from GUI

parent 0a319c8a
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,12 @@ init:
pid_sum[i]=0
pid_prev_dError[i]=0
next i
' Set paramters of manual PID control from GUI
IF Par_21 <> 0 THEN
pid_P[Par_21] = FPar_21
pid_I[Par_21] = FPar_22
pid_D[Par_21] = FPar_23
'===========================================================INITIALIZE AOUTS============================================================
'Initialize set values of all output channels to 0V
......
......@@ -26,12 +26,16 @@ The global variables in the ADwin can be used for data transfer with the compute
| Par_1 | Process status (running=1, finshed=0) |
| Par_2 | Stop time (in number of process cycles) |
| Par_10 | Tico Process status of *DIO1* at end of shot, running (fine) = 1, stopped (error) = 0 |
| Par_20 | Tico Process status of *DIO2* at end of shot, running (fine) = 1, stopped (error) = 0 |
| Par_11 | Start parameter of process for *manual programming* |
| Par_13 | Time for current event loop in number of CPU cycles (1ns) |
| Par_15 | Process index, updated every event loop |
| Par_11 | Start parameter of process for *manual programming* |
| Par_20 | Tico Process status of *DIO2* at end of shot, running (fine) = 1, stopped (error) = 0 |
| Par_21 | PID No. which gets its parameters set from GUI |
| Par_91 | Digital output of DIO1 for *manual programming* |
| Par_92 | Digital output of DIO2 for *manual programming* |
| FPar_21 | Value set from GUI for `pid_P[Par_21]` |
| FPar_22 | Value set from GUI for `pid_I[Par_21]` |
| FPar_23 | Value set from GUI for `pid_D[Par_21]` |
| Data_1 | Times for setting new analog output (in number of process cycles) |
| Data_2 | **Analog** output channel where output is updated at time from Data_1 |
| Data_3 | Output value ([-10,10]V digitized to 10 bit integer) for channel from Data_2 at time from Data_1 |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment