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