Trigger Delay on Picoscope 2206B

Post your MATLAB discussions here
Post Reply
m.a.t
Newbie
Posts: 0
Joined: Tue Aug 27, 2024 1:41 am

Trigger Delay on Picoscope 2206B

Post by m.a.t »

Hi, using a Picoscope 2206B in Matlab, I want to output a waveform at 25ms delay after an input trigger. I've been working with the Example files in the 2000 Series A API, and I can generate my waveform with AWG when the trigger arrives, but I have not worked out how to introduce a trigger delay.

The trigger and AWG are defined as follows

% Trigger
triggerGroupObj = get(ps2000aDeviceObj, 'Trigger');
triggerGroupObj = triggerGroupObj(1);

set(triggerGroupObj, 'autoTriggerMs', 0);
[status.setSimpleTrigger] = invoke(triggerGroupObj, 'setSimpleTrigger', 1, 80, 2);

% AWG output
[status.setSigGenArbitrary] = invoke(sigGenGroupObj, 'setSigGenArbitrary', 10, 2, y, 0, 0, 0, 200, 0, 0, 1, 0);




I have tried "set(triggerGroupObj, 'delay',1e5)", and while the delay property appears to be updated, the output stays exactly when the trigger is input. Is there another way to set up the triggering that will work for the delay?

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

Re: Trigger Delay on Picoscope 2206B

Post by NeilH »

Hi

Where in the code are you updating the delay value in relation to the setSimpleTrigger function?
Neil
Technical Support Engineer
Post Reply