Correct way to end a block capture without crashing?

Post general discussions on using our drivers to write your own software here
Post Reply
JamCam
Newbie
Posts: 0
Joined: Fri Feb 22, 2019 12:03 am

Correct way to end a block capture without crashing?

Post by JamCam »

Is there a subroutine that I can use that doesn't crash the PicoScope if I want to prematurely quit a program I'm making?

Currently, I just have a Qt button call:

Code: Select all

    # Stop the scope
    # handle = chandle
    status["stop"] = ps.ps4000Stop(chandle)
    assert_pico_ok(status["stop"])

    # Close unit Disconnect the scope
    # handle = chandle
    status["close"] = ps.ps4000CloseUnit(chandle)
    assert_pico_ok(status["close"])
This usually results in an error and I will have to re-plug-in the PicoScope 4262 and restart the application in order for operation to continue.

NeilH
PICO STAFF
PICO STAFF
Posts: 267
Joined: Tue Jul 18, 2017 8:28 am

Re: Correct way to end a block capture without crashing?

Post by NeilH »

What kind of error do you get when running this?
Neil
Technical Support Engineer

JamCam
Newbie
Posts: 0
Joined: Fri Feb 22, 2019 12:03 am

Re: Correct way to end a block capture without crashing?

Post by JamCam »

NeilH wrote:
Tue Oct 29, 2019 9:27 am
What kind of error do you get when running this?
My error handler returns a Pico not found erorr.
Attachments
picoerror.png
picoerror.png (5.42 KiB) Viewed 8607 times

JamCam
Newbie
Posts: 0
Joined: Fri Feb 22, 2019 12:03 am

Re: Correct way to end a block capture without crashing?

Post by JamCam »

Any advice?

Post Reply