EXT trigger on 2206

Post your C and C++ discussions here
Post Reply
ARC
Newbie
Posts: 0
Joined: Wed Aug 08, 2012 8:38 am

EXT trigger on 2206

Post by ARC »

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

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

Re: EXT trigger on 2206

Post by Martyn »

Try

Code: Select all

PS2000A_SIGGEN_EXT_IN
Martyn
Technical Support Manager

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

Re: EXT trigger on 2206

Post by ARC »

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

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

Re: EXT trigger on 2206

Post by Martyn »

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 Support Manager

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

Re: EXT trigger on 2206

Post by ARC »

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

Post by ARC »

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

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

Re: EXT trigger on 2206

Post by Martyn »

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 Support Manager

Post Reply