Show/Hide Toolbars

Navigation: API functions

ps6000aSetTriggerChannelConditions - set triggering logic

Scroll Prev Top Next More

PICO_STATUS ps6000aSetTriggerChannelConditions

(

int16_t             handle,

PICO_CONDITION    * conditions,

int16_t             nConditions,

PICO_ACTION         action

)

 

This function sets up trigger conditions on the scope's inputs. The trigger is defined by one or more PICO_CONDITION structures that are then ORed together. Each structure is itself the AND of the states of one or more of the inputs. This AND-OR logic allows you to create any possible Boolean function of the scope's inputs.

If complex triggering is not required, use ps6000aSetSimpleTrigger().

Applicability

All modes

Arguments

handle, the device identifier returned by ps6000aOpenUnit().

conditions, an array of PICO_CONDITION structures specifying the conditions that should be applied to each channel. In the simplest case, the array consists of a single element. When there is more than one element, the overall trigger condition is the logical OR of all the elements.

nConditions, the number of elements in the conditions array. If nConditions is zero then triggering is switched off.

action, specifies how to apply the PICO_CONDITION array to any existing trigger conditions:

PICO_CLEAR_ALL = 0x00000001

PICO_ADD = 0x00000002

 

Returns

PICO_OK

PICO_INVALID_HANDLE

PICO_USER_CALLBACK

PICO_CONDITIONS

PICO_MEMORY_FAIL

PICO_DRIVER_FUNCTION