Test and Measurement Forum

Digital Triggering

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

Digital Triggering

Postby Will252 » Wed May 04, 2016 9:01 am

Hi, I am writing a python program to interface with a PicoScope 2205MSO. I can set the timebase and voltage range, run in block, rapid block and streaming modes, set a data buffer and read back the data. But I am having trouble setting a digital trigger.

My script calls ps2000aSetTriggerDigitalPortProperties without any errors but the data returned doesn't seem to have been triggered, it appears to have just starts recording immediately. Do I need to call any other functions to set a digital trigger?
Will252
Newbie
 
Posts: 0
Joined: Wed Aug 05, 2015 1:39 pm

Re: Digital Triggering

Postby Hitesh » Thu May 05, 2016 10:00 am

Hi Will252,

Try calling the ps2000aSetTriggerChannelConditions() function to indicate that a digital trigger will be used.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2007
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Digital Triggering

Postby Will252 » Fri May 06, 2016 2:55 pm

So I've tried calling ps2000aSetTrggerChannelConditions. When I set channel A as the trigger channel it runs without errors but if I try to use digital I get the error: PICO_CONDITIONS (One or more of the conditions are incorrect.).

The reason I didn't try it before is the manual says
channelC, channelD, aux, digita: not used.
. I assume that is why it is ok with channel A but not digital.
Will252
Newbie
 
Posts: 0
Joined: Wed Aug 05, 2015 1:39 pm

Re: Digital Triggering

Postby Hitesh » Mon May 09, 2016 9:18 am

Hi Will252,

Which version of the ps2000a.dll are you using?

A new function (ps2000aSetDigitalAnalogTriggerOperand()) has been introduced - please refer to section 3.41 of the Programmer's Guide.

If you are using the dll provided as part of the PicoScope 6.11 installation, try calling this function with operand set to PS2000A_OPERAND_OR.

If this does not work, please post your code showing how the trigger is being set up.

I will check here in case there is an error in the Programmer's Guide with respect to the ps2000aSetTriggerChannelConditions() function.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2007
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests