Skip to content

Commit 201010a

Browse files
authored
Update WignerTimeADwin.bas for endCC problem (#76)
* Update WignerTimeADwin.bas for endCC problem * Update WignerTimeADwinADC.bas for endCC problem * Corrected error in WignerTimeADwinADC.bas
1 parent fd2c196 commit 201010a

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

resources/ADwin/WignerTimeADwin.bas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ init:
6767
processSwitches(-1)
6868

6969
event:
70-
if (cyclecount = endCC+1) then end '+1 is needed to resolve the indexing differences between ADwin and Python
70+
' if (cyclecount = endCC+1) then end '+1 is needed to resolve the indexing differences between ADwin and Python
71+
if (cyclecount > endCC) then end
7172

7273
processSwitches(cyclecount)
7374

7475
inc cyclecount
7576

7677
finish:
7778
processSwitches(2147483647) ' 2**31-1
79+

resources/ADwin/WignerTimeADwinADC.bas

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ init:
106106
processSwitches(-1)
107107

108108
event:
109-
if (cyclecount = endCC+1) then end '+1 is needed to resolve the indexing differences between ADwin and Python
110-
109+
' if (cyclecount = endCC+1) then end '+1 is needed to resolve the indexing differences between ADwin and Python
110+
if (cyclecount > endCC) then end
111+
111112
processSwitches(cyclecount)
112113
par_10=1
113114

@@ -121,3 +122,5 @@ finish:
121122
processSwitches(2147483647) ' 2**31-1
122123

123124
P2_Burst_Read_Unpacked1 (ADC_Card, ADC_DataAmount, 0, Data_1, 1, 3)
125+
126+

0 commit comments

Comments
 (0)