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 » Mon Oct 28, 2019 4:08 pm

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: 149
Joined: Tue Jul 18, 2017 8:28 am

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

Post by NeilH » Tue Oct 29, 2019 9:27 am

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 » Fri Nov 01, 2019 5:30 pm

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 181 times

Post Reply