IviScope_ConfigureGlitchTriggerSource
IviScopeGlitchTrigger Capability Group
C Function Prototype
ViStatus IviScope_ConfigureGlitchTriggerSource (ViSession vi, ViConstString source, ViReal64 level, ViReal64 glitchWidth, ViInt32 glitchPolarity, ViInt32 glitchCondition);
Purpose
This function configures the oscilloscope for glitch triggering.
A glitch trigger occurs when the trigger signal has a pulse with a width that is less than or greater than the glitch width. The end user specifies which comparison criterion to use with the glitchCondition parameter. You specify the glitch width in the glitchWidth parameter. You specify the polarity of the pulse with the glitchPolarity parameter. The trigger does not actually occur until the edge of a pulse that corresponds to the glitchWidth and glitchPolarity crosses the threshold you specify in the level parameter.
This function affects instrument behavior only if the trigger type is IVISCOPE_VAL_GLITCH_TRIGGER. Call the IviScope_ConfigureTrigger function to set the trigger type before calling this function.
Parameters
Name | Type | Description |
---|---|---|
vi | ViSession | The instrument handle that you obtain from the IviScope_init or IviScope_InitWithOptions functions. The handle identifies a particular IVI session. |
triggerSource | ViConstString | Specifies the trigger source. The driver uses this value to set the IVISCOPE_ATTR_TRIGGER_SOURCE attribute. |
level | ViReal64 | Trigger Level. Sets the attribute IVISCOPE_ATTR_TRIGGER_LEVEL. |
glitchWidth | ViReal64 | Sets the glitch triggering glitch width in seconds. The driver uses the IVISCOPE_ATTR_GLITCH_WIDTH attribute to set this value. |
glitchPolarity | ViInt32 | Sets the glitch polarity. The driver uses this value to set the IVISCOPE_ATTR_GLITCH_POLARITY attribute. |
glitchCondition | ViInt32 | Sets the glitch triggering condition. The driver uses this value to set the IVISCOPE_ATTR_GLITCH_CONDITION attribute. |