Skip to content

Commit 17db62e

Browse files
authored
Update ps3000aBlockAdvancedTriggerExample.py
An error occurs if extDirection is set to PS3000A_NONE. Setting it to PS3000A_RISING fixes the error. Range 8 is not 10V but 5V. The comment is changed to reflect that fact.
1 parent 589dee2 commit 17db62e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ps3000aExamples/ps3000aBlockAdvancedTriggerExample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# channel = PS3000A_CHANNEL_A = 0
4444
# enabled = 1
4545
# coupling type = PS3000A_DC = 1
46-
# range = PS3000A_10V = 8
46+
# range = PS3000A_5V = 8
4747
# analogue offset = 0 V
4848
chARange = 8
4949
status["setChA"] = ps.ps3000aSetChannel(chandle, 0, 1, 1, chARange, 0)
@@ -93,7 +93,7 @@
9393
channelBDirection = ps.PS3000A_THRESHOLD_DIRECTION["PS3000A_NONE"]
9494
channelCDirection = ps.PS3000A_THRESHOLD_DIRECTION["PS3000A_NONE"]
9595
channelDDirection = ps.PS3000A_THRESHOLD_DIRECTION["PS3000A_NONE"]
96-
extDirection = ps.PS3000A_THRESHOLD_DIRECTION["PS3000A_NONE"]
96+
extDirection = ps.PS3000A_THRESHOLD_DIRECTION["PS3000A_RISING"]
9797
auxDirection = ps.PS3000A_THRESHOLD_DIRECTION["PS3000A_NONE"]
9898
status["setTrigDir"] = ps.ps3000aSetTriggerChannelDirections(chandle, channelADirection, channelBDirection, channelCDirection, channelDDirection, extDirection, auxDirection)
9999
assert_pico_ok(status["setTrigDir"])

0 commit comments

Comments
 (0)