PICO_CONDITIONS from SetTriggerChannelConditions

Post general discussions on using our drivers to write your own software here
Post Reply
Prakti
User
User
Posts: 4
Joined: Fri Jul 04, 2008 12:33 pm
Contact:

PICO_CONDITIONS from SetTriggerChannelConditions

Post by Prakti »

Hello,

I get the Error Code PICO_CONDITIONS from SetTriggerChannelConditions. my Conditions are:

Code: Select all

    Tconditions[0].channelA = CONDITION_TRUE; 
    Tconditions[0].channelB = CONDITION_DONT_CARE;
    Tconditions[0].channelC = CONDITION_DONT_CARE;
    Tconditions[0].channelD = CONDITION_DONT_CARE;
    Tconditions[0].external = CONDITION_DONT_CARE;
    Tconditions[0].aux = CONDITION_DONT_CARE;
    Tconditions[0].pulseWidthQualifier = CONDITION_DONT_CARE;
I call the function with:

Code: Select all

    Form1->info = Form1->SetTriggerChannelConditions (  *(Form1->pico_handle),
                                                        &Tconditions[0],
                                                        1);
The Conditions are copied from a example from this site.
What reasons could cause this error?

Prakti
User
User
Posts: 4
Joined: Fri Jul 04, 2008 12:33 pm
Contact:

Post by Prakti »

I found the solution for this here:
http://www.picotech.com/support/post-10981.html&fid=20

but it still dont trigger.

User avatar
markspencer
Site Admin
Site Admin
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Post by markspencer »

Hi,

Sorry to hear you are experiencing problems.

When setting the TriggerChannelProperties and the direction do you get PICO_OK. Check the result from the run block, or run streaming to check these are also returning PICO_OK.

I would also advise checking the unit triggers with PicoScope and the settings you are using.
Regards,

Mark Spencer

Prakti
User
User
Posts: 4
Joined: Fri Jul 04, 2008 12:33 pm
Contact:

Post by Prakti »

I solved the Problem by inserting some "Sleep" - Commands between some Lines.
I think it was a timing-problem.

Post Reply