Standard RunBlock returning error PICO_DRIVER_FUNCTION

Post your .Net discussions here
Post Reply
sal1
Newbie
Posts: 0
Joined: Fri Jul 14, 2023 10:16 am

Standard RunBlock returning error PICO_DRIVER_FUNCTION

Post by sal1 »

Use case: Using a pico5000 and trying to perform basic runblock and simple trigger programmatically.

Issue: on bench top test with a handful of signals there is no problem repeatedly triggering. When in real environment with lots of signals and some potential noise, unit gets in error condition that cannot be reversed programmatically after the first or second time the trigger is called.

Error: PICO_DRIVER_FUNCTION is received after calling runblock for the second or third time. The PICO programming guide does not even show this error as a valid return value for this function.

Help: how do I diagnose why this error is happening? Can I reset Pico with api calls after this happens? At the moment calling Stop or Close functions does not work.

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

Re: Standard RunBlock returning error PICO_DRIVER_FUNCTION

Post by Martyn »

This error means

Code: Select all

// A driver function has already been called and not yet finished.
// Only one call to the driver can be made at any one time.
#define PICO_DRIVER_FUNCTION                        0x00000043UL
so without seeing your code it will be difficult to diagnose the issue.

It may be easier if you contact support@picotech.com directly to discuss this.
Martyn
Technical Support Manager

Post Reply