Additional c/c++/visual basic functions, Functions (continued) – National Instruments Switch Executive User Manual

Page 4

Advertising
background image

Functions (continued)

ICON

TYPE

PARAMETER

VALUE TO SET, COMMENTS

NISESession

sessionHandle

Reference to virtual device session

NISEBoolean* [out]

isDebounced

• NISE_TRUE
• NISE_FALSE

NISESession

sessionHandle

Reference to virtual device session

NISEInt32

maxTime

Amount of time to wait (in ms) for

the debounce to complete before
timing out

Additional C/C++/Visual Basic Functions

C, C++, and Visual Basic users have two additional functions available that are not

needed in LabVIEW.

TYPE

PARAMETER

VALUE TO SET, COMMENTS

Clears the last queried error from memory.

NISESession

sessionHandle

Reference to virtual device session

Queries for and returns the most recent error.

NISESession

sessionHandle

Reference to virtual device session

NISEStatus* [out]

errorNumber

Returns the error number of the first

error that occurred in the session since
the error was last cleared

NISEBuffer* [out]

errorDescription

Returns a string describing the error

NISEInt32* [out]

errorDescriptionSize

• Input = size of the error description

buffer being passed

• Return = size required to hold entire

string

niSE_GetError

niSE_ClearError

niSE Wait For Debounce

(niSE_WaitForDebounce)

Waits for all of the switches in the NISE virtual device to debounce.

niSE Is Debounced

(niSE_IsDebounced)

Checks to see if the switching system is debounced or not. This VI/function
does not wait for debouncing to occur and returns true if the system is fully
debounced.

NI Switch Executive Quick Reference Guide

4

ni.com

323249d.qxp 7/22/2004 4:39 PM Page 4

Advertising