Test and Measurement Forum

PICO_CONDITIONS from SetTriggerChannelConditions

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

PICO_CONDITIONS from SetTriggerChannelConditions

Postby Prakti » Fri Jul 04, 2008 1:02 pm

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

Postby Prakti » Tue Jul 08, 2008 9:04 am

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

but it still dont trigger.
Prakti
User
User
 
Posts: 4
Joined: Fri Jul 04, 2008 12:33 pm

Postby markspencer » Wed Jul 30, 2008 12:44 pm

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
User avatar
markspencer
Site Admin
Site Admin
 
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Postby Prakti » Wed Jul 30, 2008 1:37 pm

I solved the Problem by inserting some "Sleep" - Commands between some Lines.
I think it was a timing-problem.
Prakti
User
User
 
Posts: 4
Joined: Fri Jul 04, 2008 12:33 pm


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 3 guests