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

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

Improved sync between DO and AO channels

parent 7a89b610
No related branches found
No related tags found
1 merge request!2PID and timing improvements
......@@ -239,11 +239,6 @@ init:
EVENT:
timer = Read_Timer_Sync()
'Synchronize DIO Channels
if(processIdx = 20) then
P2_set_par(DIO1,1,20,1) 'starte tico event Modul 1
P2_set_par(DIO2,1,20,1) 'starte tico event Modul 5
endif
'======================== READ ANALOG IN CARDS =========================
......@@ -253,6 +248,12 @@ EVENT:
'Start conversion at all ADC Channels Synced for next Event
P2_Sync_All(001100b)
'Synchronize DIO Channels (once after 20 events)
if(processIdx = 20) then
P2_set_par(DIO1,1,20,1) 'starte tico event Modul 1
P2_set_par(DIO2,1,20,1) 'starte tico event Modul 5
endif
'====================== CALCULATE NEW SET VALUES =======================
......
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