I am writing an application in C for the 4824 where I would like to have two or more window triggers on different inputs - for example on channel 1 and channel 4.
I have created arrays for the trigger parameters and put the channel 1 parameters in the first elements of the arrays and the channel 4 parameters in the second elements.
I can enable either trigger separately by calling the SetTrigger function withe the pointers set to the first or second elements of the arrays and setting the numbers of elements to one.
If I set the pointers to the first elements of the arrays and call Set Trigger with the number of elements set to two it seems (although I can be sure) that both triggers are enabled but they are ANDed together so both trigger conditions must be valid to get a valid trigger.
If I make two separate SetTrigger calls (one for each trigger condition) it seems that the second trigger condition overwrites the first so I only have one trigger set.
How to I set up two independent triggers on separate channels?
I am also a little confused by the description of the ps4000aSetTriggerChannelConditions function. I am not sure when conditions are ORed or when they are ANDed.
Do you have some code examples that would help me or some additional clarification.