IviSwtch_WaitForDebounce

CVI/LabWindows IVI Class Driver

IviSwtch_WaitForDebounce

IviSwtchBase Capability Group

C Function Prototype

ViStatus IviSwtch_WaitForDebounce (ViSession vi, ViInt32 maxTime);

Purpose

This function causes the driver to block user process execution until all the paths that you previously created have settled or the time you specified with the maxTime parameter has elapsed.

Parameters

Name Type Description
vi ViSession The instrument handle that you obtain from the IviSwtch_init or IviSwtch_InitWithOptions functions. The handle identifies a particular IVI session.
maxTime ViInt32 Specifies the maximum length of time for this function to wait until all switches in the switch module debounce. If the time you specify elapses before all switches debounce, this function returns a timeout error. The units are milliseconds.

Return Values