***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADwin
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Quantuminfo
Experiment Control
ADwin
Commits
427fbc47
Commit
427fbc47
authored
2 years ago
by
Schabbauer, Johannes
Browse files
Options
Downloads
Patches
Plain Diff
Removed second limit check in PID loop
parent
48f22073
Branches
main
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ADbasic_program_buffered.bas
+2
-5
2 additions, 5 deletions
ADbasic_program_buffered.bas
with
2 additions
and
5 deletions
ADbasic_program_buffered.bas
+
2
−
5
View file @
427fbc47
...
...
@@ -265,16 +265,13 @@ EVENT:
' Check that output is within safe limits
if (set_output[i] < pid_min[pidn]) then set_output[i] = pid_min[pidn]
if (set_output[i] > pid_max[pidn]) then set_output[i] = pid_max[pidn]
' Check that output is within safe limits [-10,+10]V
if (set_output[i] < -N) then set_output[i] = - N
if (set_output[i] > 65535) then set_output[i] = 65535
endif
NEXT i
'========================= SET NEW AOUT VALUES =========================
'Write values to AOUT Cards
P2_Write_DAC8(AOUT1,set_output,1)
''sende neue stellwerte an die Analog out Karten
P2_Write_DAC8(AOUT1,set_output,1)
P2_Write_DAC8(AOUT2,set_output,9)
'Set all voltages synchronously
...
...
@@ -298,7 +295,7 @@ EVENT:
'=========================== CHECK END OF RUN ==========================
IF (processIdx
>= par_2) THEN
IF (processIdx >= par_2) THEN
END 'end loop when last last timing event completed
ENDIF
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment