diff --git a/ADbasic_program_buffered.bas b/ADbasic_program_buffered.bas index 0af484a687f760defbb705ff6fb22284bd1bdcec..d7ed826acdd52438971a26531ce38801fc3c76e3 100644 --- a/ADbasic_program_buffered.bas +++ b/ADbasic_program_buffered.bas @@ -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 =======================