PicoScope 3000A Series Prog rammer's Guide 115
Copyright © 2011-2013 Pico Technology Limited. All rights reserved. ps3000abpg.en r9
2.13.9
SetTriggerProperties
PICO_STATUS SetTriggerProperties
(
short handle,
int * propertiesArray,
short nProperties,
short auxEnable,
long autoTrig
)
This function is used to enable or disable triggering and set its parameters. This is done
by assigning the values from the propertiesArray to an array of
TRIGGER_CHANNEL_PROPERTIES structures which are then passed to the
ps3000aSetTriggerChannelProperties function with the other parameters.
Use this function with programming languages that do not support structs.
handle, the handle of the required device
propertiesArray, an array of sets of integers corresponding to
TRIGGER_CHANNEL_PROPERTIES structures describing the required
properties to be set. See also channelProperties in
ps3000aSetTriggerChannelProperties.
nProperties, the number that will be passed after the wrapper
code has created its structures (i.e. the number of
propertiesArray elements divided by 6)
auxEnable, not used
autoTrig, see autoTriggerMilliseconds in
ps3000aSetTriggerChannelProperties
See ps3000aSetTriggerProperties return values
Example
Here is an example for using the function in Visual Basic:
Dim propertiesArray(11) As Integer
'channel A
propertiesArray(0) = 1500 ' Upper
propertiesArray(1) = 300 ' UpperHysteresis
propertiesArray(2) = 0 ' Lower
propertiesArray(3) = 0 ' LowerHysteresis
propertiesArray(4) = 0 ' channel (0=ChA, 1=ChB, 2=ChC,
3=ChD)
propertiesArray(5) = 0 ' thresholdMode (Level=0, Window=1)
'channel B
propertiesArray(6) = 1500 ' Upper
propertiesArray(7) = 300 ' UpperHysteresis
propertiesArray(8) = 0 ' Lower
propertiesArray(9) = 0 ' LowerHysteresis
propertiesArray(10) = 1 ' channel (0=ChA, 1=ChB, 2=ChC,