Level and Window Dropout Triggers

Post general discussions on using our drivers to write your own software here
Post Reply
JasonS
Newbie
Posts: 0
Joined: Thu Sep 20, 2018 1:44 pm

Level and Window Dropout Triggers

Post by JasonS »

I've been attempting to implement Level and Window dropout triggers via the API using a Picoscope 4824A, but so far I haven't been able to do so.

What I expect to happen in the pseudo code below is that if the signal on A goes high and stays high for at least PulseWidth samples then the acquisition is triggered. However, it seems to require the signal to go high for PulseWidth samples and then go low again, for it to trigger. What am I doing wrong?

Code: Select all

ps4000aSetTriggerChannelConditions(
   handle,
   conditions=[
      {Channel A, True}, 
      {PWQ, True}], 
   nConditions=2,
   Clear|Add);

ps4000aSetTriggerChannelProperties(
   handle,
   channelProperties = [{
      upper=thresholdValue, 
      upperHysteresis=0, 
      lower=0,
      lowerHysteresis=0,
      channel=A,
      thresholdMode=Level}],
   nChannelProperties=1,
   auxOutputEnable=0,
   autoTriggerMilliseconds=0);
	 
ps4000aSetTriggerChannelDirection)
   handle,
	 directions=[{Above, True}],
	 nDirections=1);
	 
ps4000aSetPulseWidthQualifierProperties(
   handle,
	 direction=Greater Than
	 lower=PulseWidth
	 upper=0,
	 type=Above);
	 
ps4000aSetPulseWidthQualifierConditions)
   handle,
	 conditions=[{Channel A, True}]
	 nConditions=1);

Post Reply