Trigger direction values

Post your VB and VBA discussions here
Post Reply
MikeNorris
Newbie
Posts: 0
Joined: Tue Oct 09, 2012 2:05 pm

Trigger direction values

Post by MikeNorris »

Could you provide me the numerical values associated with the Trigger Direction constants.
Trigger direction constants
Constant Type Direction
ABOVE gated above the upper threshold
ABOVE_LOWER gated above the lower threshold
BELOW gated below the upper threshold
BELOW_LOWER gated below the lower threshold
RISING threshold rising edge, using upper threshold
RISING_LOWER threshold rising edge, using lower threshold
FALLING threshold falling edge, using upper threshold
FALLING_LOWER threshold falling edge, using lower threshold
RISING_OR_FALLING threshold either edge
INSIDE window-qualified inside window
OUTSIDE window-qualified outside window
ENTER window entering the window
EXIT window leaving the window
ENTER_OR_EXIT window either entering or leaving the window
POSITIVE_RUNT window-qualified entering and leaving from below
NEGATIVE_RUNT window-qualified entering and leaving from above
NONE none none

Martyn
Site Admin
Site Admin
Posts: 4491
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Trigger direction values

Post by Martyn »

This is for the 3000a, you will find others in the appropriate deviceAPI.h file

Code: Select all

typedef enum enPS3000AThresholdDirection
{
	PS3000A_ABOVE, //using upper threshold
	PS3000A_BELOW, 
	PS3000A_RISING, // using upper threshold
	PS3000A_FALLING, // using upper threshold
	PS3000A_RISING_OR_FALLING, // using both threshold
	PS3000A_ABOVE_LOWER, // using lower threshold
	PS3000A_BELOW_LOWER, // using lower threshold
	PS3000A_RISING_LOWER,			 // using upper threshold
	PS3000A_FALLING_LOWER,		 // using upper threshold

	// Windowing using both thresholds
	PS3000A_INSIDE = PS3000A_ABOVE, 
	PS3000A_OUTSIDE = PS3000A_BELOW,
	PS3000A_ENTER = PS3000A_RISING, 
	PS3000A_EXIT = PS3000A_FALLING, 
	PS3000A_ENTER_OR_EXIT = PS3000A_RISING_OR_FALLING,
	PS3000A_POSITIVE_RUNT = 9,
  PS3000A_NEGATIVE_RUNT,

	// no trigger set
  PS3000A_NONE = PS3000A_RISING 
} PS3000A_THRESHOLD_DIRECTION;
Martyn
Technical Support Manager

Post Reply