Test and Measurement Forum

AUX trigger with matlab for 6402c Oscilloscope

Having problems ? let us know the details here

AUX trigger with matlab for 6402c Oscilloscope

Postby mehrtak » Mon Feb 26, 2018 5:15 pm

I am using Picoscope 6402c and control it with matlab. I have a problem with triggering on AUX port.
I use below commands for triggering on channel D and it works. But I don't know how I should change it to trigger on AUX port.

%% Set Simple Trigger
triggerGroupObj = get(ps6000DeviceObj, 'Trigger');
triggerGroupObj = triggerGroupObj(1);
set(triggerGroupObj, 'autoTriggerMs', 1000);
thresholdVoltage = 2000; % 2Volts
[status.setSimpleTrigger] = invoke(triggerGroupObj, 'setSimpleTrigger', 3, thresholdVoltage, 2);

Could anyone please help me with this?
Posts: 1
Joined: Fri Feb 16, 2018 10:58 am

Re: AUX trigger with matlab for 6402c Oscilloscope

Postby Hitesh » Tue Feb 27, 2018 9:17 am

Hi mehrtak,

To use the Aux input, you need to set the channel value to the correct enumeration value as you have done for channel D (3).

The ps6000Enuminfo struct which is created when the PS6000Config script is run can be used to query the available enumeration types available. For channels, you require the ps6000Enuminfo.enPS6000Channel range.

If you type:

Code: Select all

at the MATLAB Command Prompt, you should find the following values:

Code: Select all
ans =

  struct with fields:

              PS6000_CHANNEL_A: 0
              PS6000_CHANNEL_B: 1
              PS6000_CHANNEL_C: 2
              PS6000_CHANNEL_D: 3
               PS6000_EXTERNAL: 4
           PS6000_MAX_CHANNELS: 4
            PS6000_TRIGGER_AUX: 5

From the above list, you can see that the value to use for the Auxiliary input is 5.

Hope this helps,

Technical Support Engineer
Site Admin
Site Admin
Posts: 2619
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Return to Getting Started

Who is online

Users browsing this forum: No registered users and 3 guests