Skip to content

Commit 8ead835

Browse files
author
neil.hamilton
committed
Add timebase warnings to ps5000a examples
1 parent bcbcc71 commit 8ead835

File tree

6 files changed

+22
-12
lines changed

6 files changed

+22
-12
lines changed

ps5000aExamples/ps5000aBlockAdvancedTriggerExample.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms.
2+
# Copyright (C) 2018-2022 Pico Technology Ltd. See LICENSE file for terms.
33
#
44
# PS5000A BLOCK MODE EXAMPLE
55
# This example opens a 5000a driver device, sets up two channels and a trigger then collects a block of data.
@@ -95,6 +95,8 @@
9595
maxSamples = preTriggerSamples + postTriggerSamples
9696

9797
# Get timebase information
98+
# Warning: When using this example it may not be possible to access all Timebases as all channels are enabled by default when opening the scope.
99+
# To access these Timebases, set any unused analogue channels to off.
98100
# handle = chandle
99101
timebase = 8
100102
# noSamples = maxSamples

ps5000aExamples/ps5000aBlockCallbackExample.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms.
2+
# Copyright (C) 2018-2022 Pico Technology Ltd. See LICENSE file for terms.
33
#
44
# PS5000A BLOCK MODE EXAMPLE
55
# This example opens a 5000a driver device, sets up two channels and a trigger then collects a block of data.
@@ -82,6 +82,8 @@
8282
maxSamples = preTriggerSamples + postTriggerSamples
8383

8484
# Get timebase information
85+
# Warning: When using this example it may not be possible to access all Timebases as all channels are enabled by default when opening the scope.
86+
# To access these Timebases, set any unused analogue channels to off.
8587
# handle = chandle
8688
timebase = 8
8789
# noSamples = maxSamples

ps5000aExamples/ps5000aBlockExample.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms.
2+
# Copyright (C) 2018-2022 Pico Technology Ltd. See LICENSE file for terms.
33
#
44
# PS5000A BLOCK MODE EXAMPLE
55
# This example opens a 5000a driver device, sets up two channels and a trigger then collects a block of data.
@@ -80,6 +80,8 @@
8080
maxSamples = preTriggerSamples + postTriggerSamples
8181

8282
# Get timebase information
83+
# Warning: When using this example it may not be possible to access all Timebases as all channels are enabled by default when opening the scope.
84+
# To access these Timebases, set any unused analogue channels to off.
8385
# handle = chandle
8486
timebase = 8
8587
# noSamples = maxSamples

ps5000aExamples/ps5000aBlockMSOExample.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#
2-
# Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms.
2+
# Copyright (C) 2018-2022 Pico Technology Ltd. See LICENSE file for terms.
33
#
4-
# PicoScope 3000 Series (A API) MSO Block Mode Example
5-
# This example demonstrates how to use the PicoScope 3000 Series (ps5000a) driver API functions in order to do the
4+
# PicoScope 5000 Series (A API) MSO Block Mode Example
5+
# This example demonstrates how to use the PicoScope 5000 Series (ps5000a) driver API functions in order to do the
66
# following:
77
#
8-
# Open a connection to a PicoScope 3000 Series MSO device
8+
# Open a connection to a PicoScope 5000 Series MSO device
99
# Setup a digital port
1010
# Collect a block of data
1111
# Plot data

ps5000aExamples/ps5000aBlockMSOTriggerExample.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#
22
# Copyright (C) 2018-2022 Pico Technology Ltd. See LICENSE file for terms.
33
#
4-
# PicoScope 3000 Series (A API) MSO Block Mode Triggered Example
5-
# This example demonstrates how to use the PicoScope 3000 Series (ps5000a) driver API functions in order to do the
4+
# PicoScope 5000 Series (A API) MSO Block Mode Triggered Example
5+
# This example demonstrates how to use the PicoScope 5000 Series (ps5000a) driver API functions in order to do the
66
# following:
77
#
8-
# Open a connection to a PicoScope 3000 Series MSO device
8+
# Open a connection to a PicoScope 5000 Series MSO device
99
# Setup a digital port
1010
# Set up a digital trigger
1111
# Collect a block of data
@@ -62,6 +62,8 @@
6262
totalSamples = preTriggerSamples + postTriggerSamples
6363

6464
# Gets timebase information
65+
# Warning: When using this example it may not be possible to access all Timebases as all channels are enabled by default when opening the scope.
66+
# To access these Timebases, set any unused analogue channels to off.
6567
# handle = chandle
6668
# timebase = 1252
6769
# Nosample = totalSamples

ps5000aExamples/ps5000aRapidBlockExample.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#
2-
# Copyright (C) 2018 Pico Technology Ltd. See LICENSE file for terms.
2+
# Copyright (C) 2018-2022 Pico Technology Ltd. See LICENSE file for terms.
33
#
44
# ps5000a RAPID BLOCK MODE EXAMPLE
5-
# This example opens a 3000a driver device, sets up one channel and a trigger then collects 10 block of data in rapid succession.
5+
# This example opens a 5000a driver device, sets up one channel and a trigger then collects 10 block of data in rapid succession.
66
# This data is then plotted as mV against time in ns.
77

88
import ctypes
@@ -71,6 +71,8 @@
7171
maxsamples = preTriggerSamples + postTriggerSamples
7272

7373
# Gets timebase innfomation
74+
# Warning: When using this example it may not be possible to access all Timebases as all channels are enabled by default when opening the scope.
75+
# To access these Timebases, set any unused analogue channels to off.
7476
# Handle = chandle
7577
timebase = 2
7678
# Nosample = maxsamples

0 commit comments

Comments
 (0)