Skip to content

Commit 73a9bd7

Browse files
author
neil.hamilton
committed
Add autotrigger timeout to example
1 parent 2a6e271 commit 73a9bd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ps5000aExamples/ps5000aBlockMSOTriggerExample.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
assert_pico_ok(status["SetDataBuffers"])
102102

103103
# set the digital trigger for a high bit on digital channel 0
104-
conditions = ps.PS5000A_CONDITIONS(ps.PS5000A_CHANNEL["PS5000A_DIGITAL_PORT0"], ps.PS5000A_TRIGGER_STATE["PS5000A_CONDITION_TRUE"])
104+
conditions = ps.PS5000A_CONDITION(ps.PS5000A_CHANNEL["PS5000A_DIGITAL_PORT0"], ps.PS5000A_TRIGGER_STATE["PS5000A_CONDITION_TRUE"])
105105
nConditions = 1
106106
clear = 1
107107
add = 2
@@ -119,6 +119,10 @@
119119
nDirections)
120120
assert_pico_ok(status["setTriggerDigitalPortProperties"])
121121

122+
# set autotrigger timeout value
123+
status["autoTriggerus"] = ps.ps5000aSetAutoTriggerMicroSeconds(chandle, 10000)
124+
assert_pico_ok(status["autoTriggerus"])
125+
122126
print ("Starting data collection...")
123127

124128
# Starts the block capture

0 commit comments

Comments
 (0)