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
/usr/bin/python3.6 /home/timyin/Desktop/FA/picosdk-python-wrappers-master/ps3000aExamples/autoScope.py
b'GO7680079'
b'GO7680025'
{'openunit': 0} c_short(1)
{'openunit': 0}
{'openunit': 0} c_short(2)
{'openunit': 0}
the threshold of Trigger D in 3000.000000 mV is to ADC 9754
the threshold of Trigger D2 in 3000.000000 mV is to ADC 9754
the time, that the scope will spend collecting samples in (c_int(1003)) ms
the time, that the scope2 will spend collecting samples in (c_int(1003)) ms
{'openunit': 0, 'setChA': 0, 'setChB': 0, 'setChC': 0, 'setChD': 0, 'maximumValue': 0, 'triggerD': 0, 'GetTimebase': 0, 'runblock': 0, 'SetDataBuffers': 0, 'isReady': 0, 'GetValues': 37} {'openunit': 0, 'setChA': 0, 'setChB': 0, 'setChC': 0, 'setChD': 0, 'maximumValue': 0, 'triggerD': 0, 'GetTimebase': 0, 'runblock': 0, 'SetDataBuffers': 0, 'isReady': 0}
Traceback (most recent call last):
File "/home/timyin/Desktop/FA/picosdk-python-wrappers-master/ps3000aExamples/autoScope.py", line 464, in
runScope()
File "/home/timyin/Desktop/FA/picosdk-python-wrappers-master/ps3000aExamples/autoScope.py", line 342, in runScope
assert_pico_ok(status["GetValues"])
File "/home/timyin/Desktop/FA/picosdk-python-wrappers-master/picosdk/functions.py", line 146, in assert_pico_ok
raise BaseException("Pico_OK not returned")
BaseException: Pico_OK not returned
Process finished with exit code 1
Code: Select all
# Checks data collection to finish the capture
ready = c_int16(0)
check = c_int16(0)
ready2 = c_int16(0)
check2 = c_int16(0)
while ready.value == check.value and ready2.value == check2.value:
status["isReady"] = ps.ps3000aIsReady(chandle, byref(ready))
status2["isReady"] = ps.ps3000aIsReady(chandle2, byref(ready2))
# Handle = chandle
# start index = 0
# noOfSamples = byref(cmaxSamples)
# DownSampleRatio = 0
# DownSampleRatioMode = 0
# SegmentIndex = 0
# Overflow = byref(overflow)
status["GetValues"] = ps.ps3000aGetValues(chandle, 0, byref(cmaxSamples), 0, 0, 0, byref(overflow))
print(status, status2)
assert_pico_ok(status["GetValues"])
status2["GetValues"] = ps.ps3000aGetValues(chandle2, 0, byref(cmaxSamples2), 0, 0, 0, byref(overflow2))
print(status, status2)
assert_pico_ok(status2["GetValues"])
Post by Hitesh »
Return to “General Software Discussions”