Channels A and B simultaneous trigger configuration (PS2203)

Post your MATLAB discussions here
Post Reply
nexflatline
Newbie
Posts: 0
Joined: Thu May 06, 2021 2:45 am

Channels A and B simultaneous trigger configuration (PS2203)

Post by nexflatline »

I'm trying to use both channels A and B triggers simultaneously but I can't make channel B work. I don't need any data actually, I only need to know the moment the voltage exceeds a specific point in either channel (I think that's the closest to real time accuracy I can get).

I found this topic which seems to be very similar to what I'm asking, but it's for the PS4000 model, with many other configurations that I can't translate to the PS2203:
viewtopic.php?t=20211 (adding channel to PS4000A_IC_Generic_Driver_Block)

These are the relevant parts of my code:

Code: Select all

%Setup oscilloscope
PS2000Config;
ps2000DeviceObj = icdevice('picotech_ps2000_generic.mdd');
connect(ps2000DeviceObj);
blockGroupObj = get(ps2000DeviceObj, 'Block');
blockGroupObj = blockGroupObj(1);
triggerGroupObj = get(ps2000DeviceObj, 'Trigger');
triggerGroupObj = triggerGroupObj(1);

% Set Oscilloscope channels:
[status.setChA] = invoke(ps2000DeviceObj, 'ps2000SetChannel', 0, 1, 1, 3);
[status.setChB] = invoke(ps2000DeviceObj, 'ps2000SetChannel', 1, 1, 1, 3);

timebaseIndex = get(blockGroupObj, 'timebase');

% Set simple trigger:
set(triggerGroupObj, 'autoTriggerMs', 0);

[simpleTriggerStatus] = invoke(triggerGroupObj, 'setSimpleTrigger', ps2000ConfigInfo.simpleTrigger.source, ps2000ConfigInfo.simpleTrigger.threshold, ps2000ConfigInfo.simpleTrigger.direction);

%Wait for trigger
while true
  [bufferTimes, bufferChA, bufferChB, numDataValues, timeIndisposedMs] = invoke(blockGroupObj, 'getBlockData');
end

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

Re: Channels A and B simultaneous trigger configuration (PS2203)

Post by Martyn »

The PicoScope 2203 is a very old scope that doesn't support advanced triggering, the trigger circuit can only be applied to a single channel.
Martyn
Technical Support Manager

nexflatline
Newbie
Posts: 0
Joined: Thu May 06, 2021 2:45 am

Re: Channels A and B simultaneous trigger configuration (PS2203)

Post by nexflatline »

Martyn wrote:
Thu May 06, 2021 4:45 am
The PicoScope 2203 is a very old scope that doesn't support advanced triggering, the trigger circuit can only be applied to a single channel.
Thank you very much for your reply. I will find a workaround or upgrade to a newer model.

nexflatline
Newbie
Posts: 0
Joined: Thu May 06, 2021 2:45 am

Re: Channels A and B simultaneous trigger configuration (PS2203)

Post by nexflatline »

Martyn wrote:
Thu May 06, 2021 4:45 am
The PicoScope 2203 is a very old scope that doesn't support advanced triggering, the trigger circuit can only be applied to a single channel.
Hi Martyn, would you know if the PicoScope 2204A supports advanced triggering (both channels simultaneously configured as triggers)? If not, which is the smallest device that does?

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

Re: Channels A and B simultaneous trigger configuration (PS2203)

Post by Martyn »

Yes the 2204a can be used with logic triggering on two channels
Martyn
Technical Support Manager

Post Reply