confusion over setting delay with simple trigger

Post your MATLAB discussions here
Post Reply
Brigham
Newbie
Posts: 0
Joined: Fri May 03, 2024 7:41 pm

confusion over setting delay with simple trigger

Post by Brigham »

I am using a 5000 series picoscope and am trying to set a delay on my trigger I'm not able to properly invoke the settrigger delay function and am confused by the delay for the setstimpletrigger function. in the manual it has the inputs handle, enable, source, threshold, direction, delay, autoTrigger_ms, but the example code I'm using from the Block_2Scope_example has only the channel threshold and direction and when I try to add more inputs nothing happens. I even put 10 inputs in and didn't even get an error can someone direct me to an example of a delay being used correctly for Matlab?

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

Re: confusion over setting delay with simple trigger

Post by NeilH »

Hi
In the MATLAB examples, when a function doesn't have the ps5000a prefix, it means that it is a simplified function that wraps the API function with some settings using set values.

You can use the delay setting the delay property of the triggerGroupObject in the same way that the autoTriggerMs value is set, using this code snippet;

Code: Select all

set(triggerGroupObj1, 'delay', x);
where x is your desired delay value
Neil
Technical Support Engineer

Post Reply