pico5203 trigger functions

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

pico5203 trigger functions

Post by 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.

Guest

Re: pico5203 trigger functions

Post by Guest »

[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));

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: pico5203 trigger functions

Post by Robin »

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

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

Re: pico5203 trigger functions

Post by tan »

thanks, Robin

Where Can i get example?

Thanks

Robin
Advanced User
Advanced User
Posts: 558
Joined: Fri Sep 19, 2008 10:17 am

Re: pico5203 trigger functions

Post by Robin »

Hi

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

Robin

Post Reply