PicoScope 7 Software
Available on Windows, Mac and Linux
PicoScope 7 Software
Available on Windows, Mac and Linux
OEM & custom applications
PicoScope, Pico data logger and RF products can be used as components in custom applications and OEM projects.
A to Z of PC oscilloscopes
Everything you need to know about PC oscilloscopes from Advanced Triggers to Zooming.
A to Z of Data Loggers
Everything you need to know about PC-based data loggers from Alarms to Zooming.
Application Notes
Details of some of the many applications for Pico data logger and oscilloscope products.
How do I measure...?
Find out how you can measure using Pico products
Videos
Showing you how to get the most out of PicoScope oscilloscope software.
Documentation
Up-to-date versions of the documentation supplied with your products in PDF format.
Educational Experiments
Our library of science experiments suitable for use with oscilloscope and data logging products.
PicoApps
Want to share hints, tips and code with other developers? Show your Pico-based products to the world.
Newsletter
Archive of our monthly Test and Measurement Newsletters.
Code: Select all
# PICO_STATUS ps3000aSetEts
# (
# short handle,
# PS3000A_ETS_MODE mode,
# short etsCycles,
# short etsInterleave,
# long * sampleTimePicoseconds
# )
numSamples = 1
numInterleave = 1
self.effectiveSampleRatePs = ctypes.c_long()
ets_mode = 2 #slow
self.status["setEts"] = ps.ps3000aSetEts(self.chandle, ets_mode, numSamples, numInterleave, ctypes.byref(self.effectiveSampleRatePs) )
print(f'ETS Status={self.status["setEts"]}. Effective sampling {self.effectiveSampleRatePs}.')
assert_pico_ok(self.status["setEts"])
# Sets up single trigger
# Handle = self.chandle
# Source = ps3000A_channel_B = 0
# Enable = 0
# Threshold = 1024 ADC counts
# Direction = ps3000A_Falling = 3
# Delay = 0
# autoTrigger_ms = 1000
autoTrigDelayMS = 10000
TrigThresh = 0 # ADC level
trigSource = 1 # Firing signal
delay = 000
self.status["trigger"] = ps.ps3000aSetSimpleTrigger(self.chandle, 1, trigSource, TrigThresh,
ps.PS3000A_THRESHOLD_DIRECTION["PS3000A_FALLING"], delay, autoTrigDelayMS)
assert_pico_ok(self.status["trigger"])
# Gets timebase innfomation
# 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.
# To access these Timebases, set any unused analogue channels to off.
# Handle = self.chandle
# Timebase = 2 = timebase
# Nosample = maxsamples
# TimeIntervalNanoseconds = ctypes.byref(timeIntervalns)
# MaxSamples = ctypes.byref(returnedMaxSamples)
# Segement index = 0
timebase = TIMEBASE_TYPES["4ns"]
timeIntervalns = ctypes.c_float()
returnedMaxSamples = ctypes.c_int16()
self.status["GetTimebase"] = ps.ps3000aGetTimebase2(self.chandle, timebase, self.maxsamples, ctypes.byref(timeIntervalns), 1, ctypes.byref(returnedMaxSamples), 0)
assert_pico_ok(self.status["GetTimebase"])
Return to “General Software Discussions”