Fixes some logic bugs and adds rate calculation #2
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user