📄 niswitch.h
字号:
#define NISWITCH_VAL_REARCONNECTOR_MODULE2 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 2)
#define NISWITCH_VAL_REARCONNECTOR_MODULE3 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 3)
#define NISWITCH_VAL_REARCONNECTOR_MODULE4 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 4)
#define NISWITCH_VAL_REARCONNECTOR_MODULE5 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 5)
#define NISWITCH_VAL_REARCONNECTOR_MODULE6 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 6)
#define NISWITCH_VAL_REARCONNECTOR_MODULE7 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 7)
#define NISWITCH_VAL_REARCONNECTOR_MODULE8 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 8)
#define NISWITCH_VAL_REARCONNECTOR_MODULE9 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 9)
#define NISWITCH_VAL_REARCONNECTOR_MODULE10 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 10)
#define NISWITCH_VAL_REARCONNECTOR_MODULE11 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 11)
#define NISWITCH_VAL_REARCONNECTOR_MODULE12 (NISWITCH_VAL_REARCONNECTOR_MODULE_BASE + 12)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE1 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 1)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE2 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 2)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE3 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 3)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE4 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 4)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE5 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 5)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE6 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 6)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE7 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 7)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE8 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 8)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE9 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 9)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE10 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 10)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE11 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 11)
#define NISWITCH_VAL_FRONTCONNECTOR_MODULE12 (NISWITCH_VAL_FRONTCONNECTOR_MODULE_BASE + 12)
/* Defined values for NISWITCH_ATTR_SCAN_ADVANCED_OUTPUT */
/* #define NISWITCH_VAL_NONE DEFINED ABOVE */
/* #define NISWITCH_VAL_EXTERNAL DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL0 DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL1 DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL2 DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL3 DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL4 DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL5 DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL6 DEFINED ABOVE */
/* #define NISWITCH_VAL_TTL7 DEFINED ABOVE */
/* #define NISWITCH_VAL_PXI_STAR DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE1 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE2 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE3 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE4 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE5 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE6 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE7 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE8 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE9 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE10 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE11 DEFINED ABOVE */
/* #define NISWITCH_VAL_FRONTCONNECTOR_MODULE12 DEFINED ABOVE */
/* Defined values for NISWITCH_ATTR_WIRE_MODE */
#define NISWITCH_VAL_1_WIRE 1
#define NISWITCH_VAL_2_WIRE 2
#define NISWITCH_VAL_4_WIRE 4
/* Defined values for niSwitch_CanConnect path capability parameter */
#define NISWITCH_VAL_PATH_AVAILABLE IVISWTCH_VAL_PATH_AVAILABLE
#define NISWITCH_VAL_PATH_EXISTS IVISWTCH_VAL_PATH_EXISTS
#define NISWITCH_VAL_PATH_UNSUPPORTED IVISWTCH_VAL_PATH_UNSUPPORTED
#define NISWITCH_VAL_RSRC_IN_USE IVISWTCH_VAL_RSRC_IN_USE
#define NISWITCH_VAL_SOURCE_CONFLICT IVISWTCH_VAL_SOURCE_CONFLICT
#define NISWITCH_VAL_CHANNEL_NOT_AVAILABLE IVISWTCH_VAL_CHANNEL_NOT_AVAILABLE
/* Defined values for NISWITCH_ATTR_SCAN_ADVANCED_POLARITY and NISWITCH_TRIGGER_INPUT_POLARITY */
#define NISWITCH_VAL_RISING_EDGE 0
#define NISWITCH_VAL_FALLING_EDGE 1
/* Defined values for the NISWITCH_ATTR_TRIGGER_MODE attribute */
#define NISWITCH_VAL_SINGLE 0
#define NISWITCH_VAL_MASTER 1
#define NISWITCH_VAL_SLAVE 2
/* Defined values for the Scan function */
#define NISWITCH_VAL_MEASUREMENT_DEVICE_INITIATED 0
#define NISWITCH_VAL_DMM_INITIATED NISWITCH_VAL_MEASUREMENT_DEVICE_INITIATED
#define NISWITCH_VAL_SWITCH_INITIATED 1
/* Defined values for the niSwitch_GetRelayPosition's position parameter */
#define NISWITCH_VAL_OPEN 10
#define NISWITCH_VAL_CLOSED 11
/* Defined values for the niSwitch_RelayControl function */
#define NISWITCH_VAL_OPEN_RELAY 20
#define NISWITCH_VAL_CLOSE_RELAY 21
/****************************************************************************
*---------------- Instrument Driver Function Declarations -----------------*
****************************************************************************/
/*- Session Management Functions ---------------------------------------*/
ViStatus _VI_FUNC niSwitch_init(ViRsrc resourceName,
ViBoolean idQuery,
ViBoolean resetDevice,
ViSession *newVi);
ViStatus _VI_FUNC niSwitch_InitWithOptions(ViRsrc resourceName,
ViBoolean idQuery,
ViBoolean resetDevice,
ViConstString optionString,
ViSession *newVi);
ViStatus _VI_FUNC niSwitch_InitWithTopology(ViRsrc resourceName,
ViConstString topology,
ViBoolean simulate,
ViBoolean resetDevice,
ViSession *newVi);
ViStatus _VI_FUNC niSwitch_close(ViSession vi);
/*- Locking Functions --------------------------------------------------*/
ViStatus _VI_FUNC niSwitch_LockSession(ViSession vi,
ViBoolean *callerHasLock);
ViStatus _VI_FUNC niSwitch_UnlockSession(ViSession vi,
ViBoolean *callerHasLock);
/*- Switch Routing Functions -------------------------------------------*/
ViStatus _VI_FUNC niSwitch_Connect(ViSession vi,
ViConstString channel1,
ViConstString channel2);
ViStatus _VI_FUNC niSwitch_Disconnect(ViSession vi,
ViConstString channel1,
ViConstString channel2);
ViStatus _VI_FUNC niSwitch_DisconnectAll(ViSession vi);
ViStatus _VI_FUNC niSwitch_GetPath(ViSession vi,
ViConstString channel1,
ViConstString channel2,
ViInt32 bufferSize,
ViChar pathList[]);
ViStatus _VI_FUNC niSwitch_SetPath(ViSession vi,
ViConstString pathList);
ViStatus _VI_FUNC niSwitch_CanConnect(ViSession vi,
ViConstString channel1,
ViConstString channel2,
ViInt32 *pathCapability);
ViStatus _VI_FUNC niSwitch_IsDebounced(ViSession vi,
ViBoolean* isDebounced);
ViStatus _VI_FUNC niSwitch_WaitForDebounce(ViSession vi,
ViInt32 maxTime);
/*- Scanning Functions -------------------------------------------------*/
ViStatus _VI_FUNC niSwitch_Scan(ViSession vi,
ViConstString scanList,
ViInt16 initiation);
ViStatus _VI_FUNC niSwitch_InitiateScan(ViSession vi);
ViStatus _VI_FUNC niSwitch_AbortScan(ViSession vi);
ViStatus _VI_FUNC niSwitch_IsScanning(ViSession vi,
ViBoolean* isScanning);
ViStatus _VI_FUNC niSwitch_WaitForScanComplete(ViSession vi,
ViInt32 maxTime);
ViStatus _VI_FUNC niSwitch_SendSoftwareTrigger(ViSession vi);
ViStatus _VI_FUNC niSwitch_ConfigureScanList(ViSession vi,
ViConstString scanList,
ViInt32 scanMode);
ViStatus _VI_FUNC niSwitch_ConfigureScanTrigger(ViSession vi,
ViReal64 scanDelay,
ViInt32 triggerInput,
ViInt32 scanAdvancedOutput);
ViStatus _VI_FUNC niSwitch_SetContinuousScan(ViSession vi,
ViBoolean continuousScan);
ViStatus _VI_FUNC niSwitch_RouteTriggerInput(ViSession vi,
ViInt32 triggerInputConnector,
ViInt32 triggerInputBusLine,
ViBoolean invert);
ViStatus _VI_FUNC niSwitch_RouteScanAdvancedOutput(ViSession vi,
ViInt32 scanAdvancedOutputConnector,
ViInt32 scanAdvancedOutputBusLine,
ViBoolean invert);
/*- Error Functions ----------------------------------------------------*/
ViStatus _VI_FUNC niSwitch_error_query(ViSession vi,
ViInt32 *errorCode,
ViChar errorMessage[]);
ViStatus _VI_FUNC niSwitch_GetError(ViSession vi,
ViStatus *errorCode,
ViInt32 bufferSize,
ViChar description[]);
ViStatus _VI_FUNC niSwitch_ClearError(ViSession vi);
ViStatus _VI_FUNC niSwitch_error_message(ViSession vi,
ViStatus errorCode,
ViChar errorMessage[256]);
/*- Channel Info Functions ---------------------------------------------*/
ViStatus _VI_FUNC niSwitch_GetChannelName(ViSession vi,
ViInt32 index,
ViInt32 bufferSize,
ViChar name[]);
/*- Relay Operation Functions -------------------------------------------*/
ViStatus _VI_FUNC niSwitch_GetRelayName(ViSession vi,
ViInt32 index,
ViInt32 bufferSize,
ViChar name[]);
ViStatus _VI_FUNC niSwitch_GetRelayCount(ViSession vi,
ViConstString relayName,
ViInt32* count);
ViStatus _VI_FUNC niSwitch_GetRelayPosition(ViSession vi,
ViConstString relayName,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -