Fixes some logic bugs and adds rate calculation #2

Merged
wall_e merged 5 commits from bugfixing into main 2025-11-24 10:34:15 +01:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit aa00966599 - Show all commits

View File

@@ -69,7 +69,8 @@ record(ai, "$(INSTR)$(NAME):R$(CHANNEL)")
field(EGU, "cts/sec")
field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT),0,$(TIMEOUT=1)) RATE$(CHANNEL)")
field(SCAN, ".2 second")
field(SCAN, ".5 second")
field(PREC, 2)
# field(SCAN, "I/O Intr")
field(PINI, "YES")
}

View File

@@ -47,7 +47,7 @@ while True:
header[17] = t_high >> 8
num_events = random.randint(0, 243)
num_events = 243
# num_events = 243
# num_events = 1
# update buffer length
@@ -61,7 +61,7 @@ while True:
# reduce also the number of checks on the parsing side of things...
is_monitor = random.randint(0, 9)
is_monitor = 4
# is_monitor = 4
header[11] = 0 if is_monitor > 3 else random.randint(1,9)
@@ -79,7 +79,7 @@ while True:
d = list(data)
monitor = random.randint(0,3)
monitor = 0
# monitor = 0
d[5] = (1 << 7) | monitor