***
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
3735705b
Commit
3735705b
authored
2 years ago
by
Schabbauer, Johannes
Browse files
Options
Downloads
Patches
Plain Diff
Adding AIN to process_manual
parent
c66bf572
No related branches found
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_manual.bas
+16
-1
16 additions, 1 deletion
ADbasic_program_manual.bas
with
16 additions
and
1 deletion
ADbasic_program_manual.bas
+
16
−
1
View file @
3735705b
...
...
@@ -23,6 +23,10 @@
DIM DATA_95[8] AS Long ' AOUT1 values
DIM DATA_96[8] AS Long ' AOUT2 values
DIM DATA_93[10000] AS Long AS FIFO ' AIN1 values in FiFo array
DIM DATA_94[10000] AS Long AS FIFO ' AIN2 values in FiFo array
DIM ain1_data[8] AS LONG
DIM ain2_data[8] AS LONG
INIT:
PROCESSDELAY = 1000000 ' in manual mode 1 ms cycle time is enough
...
...
@@ -31,13 +35,24 @@ INIT:
P2_Set_Led(DIO2, 1)
P2_Set_Led(AOUT1, 1)
P2_Set_Led(AOUT2, 1)
P2_Start_ConvF(AIN1,0FFh)
P2_Start_ConvF(AIN2,0FFh)
EVENT:
IF (Par_11=1) THEN
P2_DAC8(AOUT1,DATA_95,1)
P2_DAC8(AOUT2,DATA_96,1)
P2_DIGOUT_LONG(DIO1,Par_91)
P2_DIGOUT_LONG(DIO2,Par_92)
P2_DIGOUT_LONG(DIO2,Par_92)#
P2_Wait_EOCF(AIN1,0FFh)
P2_Wait_EOCF(AIN2,0FFh)
P2_READ_ADCF8(AIN1, ain1_data, 1)
P2_READ_ADCF8(AIN2, ain2_data, 1)
DATA_93 = ain1_data
DATA_94 = ain2_data
P2_Start_ConvF(AIN1,0FFh)
P2_Start_ConvF(AIN2,0FFh)
ENDIF
FINISH:
...
...
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