picoscope turned off upon establishing connection via python wrapper

Post general discussions on using our drivers to write your own software here
Post Reply
yliu
Newbie
Posts: 0
Joined: Sat Jul 24, 2021 6:23 pm

picoscope turned off upon establishing connection via python wrapper

Post by yliu »

Hello there,

we are new to picoscope and would appreciate any suggestions!

The picoscope at hand is 3203D and we are testing it with a linux laptop. We were able to see waveforms using the PicoScope 6 software. However, we are having trouble using the python wrapper (https://github.com/picotech/picosdk-python-wrappers). Specifically, running the following lines is buggy:

Code: Select all

# Opens the device/s
status["openunit"] = ps.ps3000aOpenUnit(ctypes.byref(chandle), None)
The indicator light on the picoscope would blink green and then turn itself off. status["openunit"] returns a value 0. Any ideas what is going on?

Thanks in advance!

Regards,
Yan

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: picoscope turned off upon establishing connection via python wrapper

Post by Martyn »

A return value of zero (PicoStatus_OK) means the scope has been opened successfully, and it is now waiting for further instructions.

I would suggest trying the examples here https://github.com/picotech/picosdk-pyt ... 0aExamples
Martyn
Technical Support Manager

yliu
Newbie
Posts: 0
Joined: Sat Jul 24, 2021 6:23 pm

Re: picoscope turned off upon establishing connection via python wrapper

Post by yliu »

Hi Martyn,

Thanks for your reply! We've tried the example you linked (the code I pasted is from line 22 of this file: https://github.com/picotech/picosdk-pyt ... aSigGen.py). However, the picoscope indicator light (red to start with) would blink green and then shun down completely.

Regards,
Yan

Martyn
Site Admin
Site Admin
Posts: 4047
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: picoscope turned off upon establishing connection via python wrapper

Post by Martyn »

I would try the block mode example, all the sig gen example will do is output a signal on the generator connector, you won't see it do anything else in the example.
Martyn
Technical Support Manager

Post Reply