Test and Measurement Forum

EXT trigger on 2206

Post your C and C++ discussions here

EXT trigger on 2206

Postby ARC » Tue Jul 30, 2013 2:30 pm

Hello,

I have tried a few times to get this to work on my PicoScope 2206 now and i still can't get it.

I can output a waveform using software trigger but can't trigger from EXT port.

Could you tell me if these settings are correct?
Code: Select all
status = ps2000aSetSigGenArbitrary(unit.handle,
            offset,
            pktopk,
            (unsigned long) delta,
            (unsigned long) delta,
            0,
            0,
            arbitraryWaveform,
            waveformSize,
            (PS2000A_SWEEP_TYPE) 0,
            (PS2000A_EXTRA_OPERATIONS) 0,
            PS2000A_SINGLE,
            1,
            0,
            PS2000A_SIGGEN_RISING,
            PS2000A_SIGGEN_AUX_IN,
            0);


Many Thanks :)

Rob
ARC
Newbie
 
Posts: 0
Joined: Wed Aug 08, 2012 8:38 am

Re: EXT trigger on 2206

Postby Martyn » Thu Aug 01, 2013 1:59 pm

Try
Code: Select all
PS2000A_SIGGEN_EXT_IN
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: EXT trigger on 2206

Postby ARC » Fri Aug 02, 2013 9:09 am

Thanks for your reply.

That has stopped it crashing but now i call the function and the waveform is output when nothing is connected to EXT port.
but it should be waiting for a rising edge?
Are any of my other settings wrong?

Thanks

Rob
ARC
Newbie
 
Posts: 0
Joined: Wed Aug 08, 2012 8:38 am

Re: EXT trigger on 2206

Postby Martyn » Fri Aug 02, 2013 12:46 pm

You need to play around with the last parameter which you have as zero
Code: Select all
extInThreshold, used to set trigger level for external trigger.
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: EXT trigger on 2206

Postby ARC » Wed Aug 14, 2013 8:06 am

Hi Martyn,

I have tried both Gate high and Rising settings with ADC count values of 19507 (3V) and 13004 (2V) and have connected a bench power supply set to 5V and turned it on and off and still the waveform isnt output. I have also tried ramping it up and down as well as setting it to 2v and 3v for the different settings and still no trigger.

Does the PicoScope output if set to gate high and voltage on the port is over the set trigger value?
or only when its exactly the trigger value?
ARC
Newbie
 
Posts: 0
Joined: Wed Aug 08, 2012 8:38 am

Re: EXT trigger on 2206

Postby ARC » Wed Aug 21, 2013 12:27 pm

Hi,

I still can't get the PicoScope to trigger a function on a channel (scope or EXT). I either get error 51 PICO_PLL_LOCK_FAILED when trying to use EXT (which i htink is to do with digital inputs?!?) or if i set PS2000SetSignGenArbitrary TRIG SOURCE to AUX_IN i get error 46 PICO_BUFFERS_NOT_SET.
None of the rest of the setup produces an error.

Heres a more detailed view of my code:
Code: Select all
struct tPwq pulseWidth;
   struct tPS2000ATriggerChannelProperties sourceDetails = {   8,
         256 * 10,
         6,
         256 * 10,
         PS2000A_EXTERNAL,
         PS2000A_LEVEL };

   struct tPS2000ATriggerConditions conditions = {   PS2000A_CONDITION_DONT_CARE,// Channel A
         PS2000A_CONDITION_DONT_CARE,// Channel B
         PS2000A_CONDITION_DONT_CARE,// Channel C
         PS2000A_CONDITION_DONT_CARE,// Channel D
         PS2000A_CONDITION_TRUE,// Exteranl
         PS2000A_CONDITION_DONT_CARE,// aux
         PS2000A_CONDITION_DONT_CARE,// PWQ
         PS2000A_CONDITION_DONT_CARE };// digital

            struct tTriggerDirections directions = {   PS2000A_NONE,// Channel A
                                       PS2000A_NONE,         // Channel B
                                       PS2000A_NONE,         // Channel C
                                       PS2000A_NONE,         // Channel D
                                       PS2000A_RISING_OR_FALLING,   // External
                                       PS2000A_NONE };         // Aux


            memset(&pulseWidth, 0, sizeof(struct tPwq));

         status = SetTrigger(&unit, &sourceDetails, 1, &conditions, 1, &directions, &pulseWidth, 0, 1, 0, 0, 0);
            if (status != 0) return status;

            status = ps2000aSetSigGenArbitrary(unit.handle,
            offset,
            pktopk,
            (unsigned long) delta,
            (unsigned long) delta,
            0,
            0,
            arbitraryWaveform,
            waveformSize,
            (PS2000A_SWEEP_TYPE) 0,
            (PS2000A_EXTRA_OPERATIONS) 0,
            PS2000A_SINGLE,
            1,
            0,
            PS2000A_SIGGEN_RISING,
            PS2000A_SIGGEN_EXT_IN,
            10000);
            if (status != 0) return status;


Really need to get this working now, so any help would be greatly appreciated.

Many Thanks :)

Rob
ARC
Newbie
 
Posts: 0
Joined: Wed Aug 08, 2012 8:38 am

Re: EXT trigger on 2206

Postby Martyn » Fri Aug 30, 2013 9:07 am

Would it be possible to send your project into support@picotech.com and then we can run it up and test it out
Martyn
Technical Specialist
Martyn
Site Admin
Site Admin
 
Posts: 2355
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots


Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests