Test and Measurement Forum

AutoTrigger and CallBackBlock function

Post your VB and VBA discussions here

AutoTrigger and CallBackBlock function

Postby Jay H » Mon Apr 12, 2010 8:12 pm

I'm trying to see if it is possible to determine whether my Trigger has been set or the AutoTrigger timeout was reached (as setup by the call to ps5000SetTriggerChannelProperties?

I believe the ps5000RunBlock will eventually call my CALLBACK function if the Trigger isn't hit and my CALLBACK sub will cause the BlockDataHandler to abort the loop and start sending data, so I would imagine if this is possible, I should be able to put something in my CALLBACK sub/function to see if the Trigger was hit or the AutoTrigger was reached. How would I do this, I tried to see if there is a Status (of type PICO_STATUS) that is returned but didn't find any. Is this possible, and if so, how?

Jay H
Posts: 0
Joined: Wed Mar 31, 2010 2:13 pm

Re: AutoTrigger and CallBackBlock function

Postby Robin » Tue Apr 13, 2010 10:45 am

Hi Jay

Unfortunately, it's not possible to tell whether the unit has autotriggered or triggered on a trigger condition.

Status is used only to report errors.

Zen Master
Zen Master
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests