New ScreenPanel
This commit is contained in:
18
script/MonitorScan.py
Executable file
18
script/MonitorScan.py
Executable file
@@ -0,0 +1,18 @@
|
||||
###################################################################################################
|
||||
# Demonstrate the use of Monitor Scan: sampling based on device change event
|
||||
###################################################################################################
|
||||
|
||||
set_device_alias(sc1, None)
|
||||
setup_plotting( line_plots =[sc1] )
|
||||
|
||||
|
||||
#Execute the scan: 50 samples
|
||||
r1 = mscan(sc1, [sc1], 50)
|
||||
|
||||
#Execute the scan: 50 samples, with a timeout of 2s, including a second device
|
||||
r2 = mscan(sc1, [sc1, sin], 50, 2.0)
|
||||
|
||||
#Execute the scan: sampling for 5s, an undefined number of sample
|
||||
#The second device is cached so the scan is entirely asynchronous (the trigger device is always cached).
|
||||
r3 = mscan(sc1, [sc1, sin.cache], -1, 5.0)
|
||||
|
||||
Reference in New Issue
Block a user