Test and Measurement Forum

pico5203 trigger functions

Post general discussions on using our drivers to write your own software here

pico5203 trigger functions

Postby tan85 » Mon Nov 16, 2009 3:21 pm

I have a question to ask:
How to set the trigger level?
1)Condition ps5000SetTriggerChannelConditions(Pico_handle1,ATriggerConditions,1);


2)Direction
ps5000SetTriggerChannelDirections(Pico_handle1,RISING,NONE,NONE,NONE,NONE,NONE);

3)Properties
ps5000SetTriggerChannelProperties(Pico_handle1, AChannelProperties, 1, 0, 0);

Do I need use all these 3 functions to set trigger level for 'Simple Edge'?
if i just want to use 'Simple Edge' trigger, which functions (1,2,3) i need to call in delphi.
tan85
 

Re: pico5203 trigger functions

Postby Guest » Mon Nov 16, 2009 4:32 pm

[quote="tan85"]I have a question to ask:
How to set the trigger level?
1)Condition ps5000SetTriggerChannelConditions(Pico_handle1,ATriggerConditions,1);


2)Direction
ps5000SetTriggerChannelDirections(Pico_handle1,RISING,NONE,NONE,NONE,NONE,NONE);

3)Properties
ps5000SetTriggerChannelProperties(Pico_handle1, AChannelProperties, 1, 0, 0);

Do I need use all these 3 functions to set trigger level for 'Simple Edge'?
if i just want to use 'Simple Edge' trigger, which functions (1,2,3) i need to call in delphi.[/quote]
Another problem is:
The return value of the function =73, which is not in the list.
What is the problem? Here is my code:
var
BTriggerConditions : pTriggerConditions;

BTriggerConditions^.ChannelA:=CONDITION_TRUE;
BTriggerConditions^.channelB:=CONDITION_DONT_CARE;
BTriggerConditions^.channelC:=CONDITION_DONT_CARE;
BTriggerConditions^.channelD:=CONDITION_DONT_CARE;
BTriggerConditions^.channelExt:=CONDITION_DONT_CARE;
BTriggerConditions^.aux:=CONDITION_DONT_CARE;
BTriggerConditions^.pulseWidthQualifier:=CONDITION_DONT_CARE;

CodeError:=ps5000SetTriggerChannelConditions(Pico_handle1,BTriggerConditions,1);
Memo1.lines.Add('SetTrigChCond='+inttostr(CodeError));
Guest
 

Re: pico5203 trigger functions

Postby Robin » Tue Nov 17, 2009 1:25 pm

Hi

You do need to call all three functions to set the trigger. I suggest having a look at some of our examples.

The status code 73 corresponds to PICO_INVALID_TRIGGER_PROPERTY. See picoStatus.h the documentation will be updated with the extra error codes.

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: pico5203 trigger functions

Postby tan » Tue Nov 17, 2009 4:39 pm

thanks, Robin

Where Can i get example?

Thanks
tan
Newbie
 
Posts: 0
Joined: Mon Nov 16, 2009 3:01 pm

Re: pico5203 trigger functions

Postby Robin » Wed Nov 18, 2009 1:07 pm

Hi

Examples are in the software development kits (SDKs), which can be downloaded from http://www.picotech.com/software.html

Robin
Robin
Zen Master
Zen Master
 
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 2 guests