Test and Measurement Forum

External Trigger PicoScope 3000 Series

Post your MATLAB discussions here

External Trigger PicoScope 3000 Series

Postby Dome1985 » Wed Apr 09, 2014 6:12 am

Hello,

I am trying to trigger my PicoScope 3206B with an external digital Input (0 - 1V). So I connected the EXT Channel and with my signal generator and nothing else is connected, only the EXT Channel.

I can connect my PicoScope and have to do some special channel settings, but i don´t know exactly which one. Maybe anybody has already tried to trigger his PicoScope with an external channel. After the trigger comes up, i just would like to give me an output like disp('External Trigger was successful').

In the end, of course i would like to trigger my channel A with the external trigger, but for now i try to get the ext. trigger done.

Thanks to everybody, who can support me.

Dome1985
Dome1985
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am

Re: External Trigger PicoScope 3000 Series

Postby Martyn » Wed Apr 09, 2014 6:59 am

Set up your trigger on channel A, and check the levels are correct.

Now change the trigger channel to Ext at the bottom of the screen and move the trigger signal from A to the Ext input. If the scope triggers from the Ext input it will draw the signal that is present on A. Note that there will be no trigger diamond.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: External Trigger PicoScope 3000 Series

Postby Dome1985 » Wed Apr 09, 2014 7:13 am

I am sorry, i forget to tell you that i want to include the PicoScope3206B with Matlab to write my own application.
So i downloaded the SDK for Matlab PS3000Asdk10.5.0.28.zip and unfortunately there is no example for an external trigger, so maybe you/somebody already tried something like that.

I have problems to figure out which functions of the guide (programmers guide, functions guide) i have to use to include the external trigger (EXT Input) in Matlab and also the order to call every function.

Thanks for any help.
Dome1985
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am

Re: External Trigger PicoScope 3000 Series

Postby Karunen » Wed Apr 09, 2014 8:56 am

Hi,

If you look at the PS3000A_IC_Generic_Driver_1buffer_RunBlock.m example in the MatLab folder.

At the Set Simple Trigger section you can change

Code: Select all
source = enuminfo.enPS3000AChannel.PS3000A_CHANNEL_A;


to


Code: Select all
source = enuminfo.enPS3000AChannel.PS3000A_EXTERNAL;


Please note that the external trigger is fixed at the range of 5V.

Code: Select all
threshold = mv2adc(500, 5000, ps3000a_obj.maxValue);

This code shows who to calculate the threshold for the external input so that it is set to 500mV

Thanks,
Karunen

Technical Specialist
Pico Technology
Karunen
Zen Master
Zen Master
 
Posts: 194
Joined: Thu Nov 21, 2013 9:22 am


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests