?? hpe3631a.h
字號:
/* Copyright (C) 1997 Hewlett-Packard Company */
/* VXIplug&play Instrument Driver for the hpe3631a*/
#ifndef hpe3631a_INCLUDE
#define hpe3631a_INCLUDE
#include "vpptype.h"
#if defined(__cplusplus) || defined(__cplusplus__)
extern "C" {
#endif
/*****************************************************************************/
/* hpe3631a.h */
/* Copyright (C) 1997 Hewlett-Packard Company */
/*---------------------------------------------------------------------------*/
/* Driver for hpe3631a, Triple Output DC Power Supply */
/* Driver Version: A.03.01 */
/*****************************************************************************/
/*****************************************************************************/
/* STANDARD SECTION */
/* Constants and function prototypes for HP standard functions. */
/*****************************************************************************/
/*---------------------------------------------------------------------------*/
/* DEVELOPER: Remove what you don't need from this standard function */
/* section, with the exception that VPP required functions */
/* may not be removed. */
/* Don't add to this section - add to the instrument specific */
/* section below. */
/* Don't change section - if you need to "change" the prototype */
/* of a standard function, delete it from this section and */
/* add a new function (named differently) in the instrument */
/* specific section. */
/*---------------------------------------------------------------------------*/
/***************************************************/
/* Standard constant error conditions returned */
/* by driver functions. */
/* HP Common Error numbers start at BFFC0D00 */
/* The parameter errors extend the number of */
/* errors over the eight defined in VPP 3.4 */
/***************************************************/
#define hpe3631a_INSTR_ERROR_NULL_PTR (_VI_ERROR+0x3FFC0D02L) /* 0xBFFC0D02 */
#define hpe3631a_INSTR_ERROR_RESET_FAILED (_VI_ERROR+0x3FFC0D03L) /* 0xBFFC0D03 */
#define hpe3631a_INSTR_ERROR_UNEXPECTED (_VI_ERROR+0x3FFC0D04L) /* 0xBFFC0D04 */
#define hpe3631a_INSTR_ERROR_INV_SESSION (_VI_ERROR+0x3FFC0D05L) /* 0xBFFC0D05 */
#define hpe3631a_INSTR_ERROR_LOOKUP (_VI_ERROR+0x3FFC0D06L) /* 0xBFFC0D06 */
#define hpe3631a_INSTR_ERROR_DETECTED (_VI_ERROR+0x3FFC0D07L) /* 0xBFFC0D07 */
#define hpe3631a_INSTR_NO_LAST_COMMA (_VI_ERROR+0x3FFC0D08L) /* 0xBFFC0D08 */
#define hpe3631a_INSTR_ERROR_PARAMETER9 (_VI_ERROR+0x3FFC0D20L) /* 0xBFFC0D20 */
#define hpe3631a_INSTR_ERROR_PARAMETER10 (_VI_ERROR+0x3FFC0D21L) /* 0xBFFC0D21 */
#define hpe3631a_INSTR_ERROR_PARAMETER11 (_VI_ERROR+0x3FFC0D22L) /* 0xBFFC0D22 */
#define hpe3631a_INSTR_ERROR_PARAMETER12 (_VI_ERROR+0x3FFC0D23L) /* 0xBFFC0D23 */
#define hpe3631a_INSTR_ERROR_PARAMETER13 (_VI_ERROR+0x3FFC0D24L) /* 0xBFFC0D24 */
#define hpe3631a_INSTR_ERROR_PARAMETER14 (_VI_ERROR+0x3FFC0D25L) /* 0xBFFC0D25 */
#define hpe3631a_INSTR_ERROR_PARAMETER15 (_VI_ERROR+0x3FFC0D26L) /* 0xBFFC0D26 */
#define hpe3631a_INSTR_ERROR_PARAMETER16 (_VI_ERROR+0x3FFC0D27L) /* 0xBFFC0D27 */
#define hpe3631a_INSTR_ERROR_PARAMETER17 (_VI_ERROR+0x3FFC0D28L) /* 0xBFFC0D28 */
#define hpe3631a_INSTR_ERROR_PARAMETER18 (_VI_ERROR+0x3FFC0D29L) /* 0xBFFC0D29 */
/***************************************************/
/* Constants used by system status functions */
/* These defines are bit numbers which define */
/* the operation and questionable registers. */
/* They are instrument specific. */
/***************************************************/
/***************************************************/
/* Constants used by function hpe3631a_timeOut */
/***************************************************/
#define hpe3631a_TIMEOUT_MAX 2147483647L
#define hpe3631a_TIMEOUT_MIN 0L
#define hpe3631a_CMDINT16ARR_Q_MIN 1L
#define hpe3631a_CMDINT16ARR_Q_MAX 2147483647L
#define hpe3631a_CMDINT32ARR_Q_MIN 1L
#define hpe3631a_CMDINT32ARR_Q_MAX 2147483647L
#define hpe3631a_CMDREAL64ARR_Q_MIN 1L
#define hpe3631a_CMDREAL64ARR_Q_MAX 2147483647L
/***************************************************/
/* Required plug and play functions from VPP-3.1 */
/***************************************************/
ViStatus _VI_FUNC hpe3631a_init
(ViRsrc resourceName,
ViBoolean IDQuery,
ViBoolean resetDevice,
ViPSession instrumentHandle);
ViStatus _VI_FUNC hpe3631a_close
(ViSession instrumentHandle);
ViStatus _VI_FUNC hpe3631a_reset
(ViSession instrumentHandle);
ViStatus _VI_FUNC hpe3631a_self_test
(ViSession instrumentHandle,
ViPInt16 selfTestResult,
ViChar _VI_FAR selfTestMessage[]);
ViStatus _VI_FUNC hpe3631a_error_query
(ViSession instrumentHandle,
ViPInt32 errorCode,
ViChar _VI_FAR errorMessage[]);
ViStatus _VI_FUNC hpe3631a_error_message
(ViSession instrumentHandle,
ViStatus statusCode,
ViChar _VI_FAR message[]);
ViStatus _VI_FUNC hpe3631a_revision_query
(ViSession instrumentHandle,
ViChar _VI_FAR instrumentDriverRevision[],
ViChar _VI_FAR firmwareRevision[]);
/***************************************************/
/* HP standard utility functions */
/***************************************************/
ViStatus _VI_FUNC hpe3631a_timeOut
(ViSession instrumentHandle,
ViInt32 setTimeOut);
ViStatus _VI_FUNC hpe3631a_timeOut_Q
(ViSession instrumentHandle,
ViPInt32 timeOut);
ViStatus _VI_FUNC hpe3631a_errorQueryDetect
(ViSession instrumentHandle,
ViBoolean setErrorQueryDetect);
ViStatus _VI_FUNC hpe3631a_errorQueryDetect_Q
(ViSession instrumentHandle,
ViPBoolean errorQueryDetect);
ViStatus _VI_FUNC hpe3631a_dcl
(ViSession instrumentHandle);
ViStatus _VI_FUNC hpe3631a_opc_Q
(ViSession instrumentHandle,
ViPBoolean instrumentReady);
/***************************************************/
/* HP standard status functions */
/***************************************************/
ViStatus _VI_FUNC hpe3631a_readStatusByte_Q
(ViSession instrumentHandle,
ViPInt16 statusByte);
ViStatus _VI_FUNC hpe3631a_operEvent_Q
(ViSession instrumentHandle,
ViPInt32 operationEventRegister);
ViStatus _VI_FUNC hpe3631a_operCond_Q
(ViSession instrumentHandle,
ViPInt32 operationConditionRegister );
ViStatus _VI_FUNC hpe3631a_quesEvent_Q
(ViSession instrumentHandle,
ViPInt32 questionableEventRegister );
ViStatus _VI_FUNC hpe3631a_quesCond_Q
(ViSession instrumentHandle,
ViPInt32 questionableConditionRegister );
/***************************************************/
/* HP standard command passthrough functions */
/***************************************************/
ViStatus _VI_FUNC hpe3631a_cmd
(ViSession instrumentHandle,
ViString sendStringCommand);
ViStatus _VI_FUNC hpe3631a_cmdString_Q
(ViSession instrumentHandle,
ViString queryStringCommand,
ViInt32 stringSize,
ViChar _VI_FAR stringResult[]);
ViStatus _VI_FUNC hpe3631a_cmdInt
(ViSession instrumentHandle,
ViString sendIntegerCommand,
ViInt32 sendInteger);
ViStatus _VI_FUNC hpe3631a_cmdInt16_Q
(ViSession instrumentHandle,
ViString queryI16Command,
ViPInt16 i16Result);
ViStatus _VI_FUNC hpe3631a_cmdInt32_Q
(ViSession instrumentHandle,
ViString queryI32Command,
ViPInt32 i32Result);
ViStatus _VI_FUNC hpe3631a_cmdInt16Arr_Q
(ViSession instrumentHandle,
ViString queryI16ArrayCommand,
ViInt32 i16ArraySize,
ViInt16 _VI_FAR i16ArrayResult[],
ViPInt32 i16ArrayCount);
ViStatus _VI_FUNC hpe3631a_cmdInt32Arr_Q
(ViSession instrumentHandle,
ViString queryI32ArrayCommand,
ViInt32 i32ArraySize,
ViInt32 _VI_FAR i32ArrayResult[],
ViPInt32 i32ArrayCount);
ViStatus _VI_FUNC hpe3631a_cmdReal
(ViSession instrumentHandle,
ViString sendRealCommand,
ViReal64 sendReal);
ViStatus _VI_FUNC hpe3631a_cmdReal64_Q
(ViSession instrumentHandle,
ViString queryRealCommand,
ViPReal64 realResult);
ViStatus _VI_FUNC hpe3631a_cmdReal64Arr_Q
(ViSession instrumentHandle,
ViString realArrayCommand,
ViInt32 realArraySize,
ViReal64 _VI_FAR realArrayResult[],
ViPInt32 realArrayCount);
/* End of HP standard declarations */
/*---------------------------------------------------------------------------*/
/*****************************************************************************/
/* INSTRUMENT SPECIFIC SECTION */
/* Constants and function prototypes for instrument specific functions. */
/*****************************************************************************/
/*---------------------------------------------------------------------------*/
/* DEVELOPER: Add constants and function prototypes here. */
/* As a matter of style, add the constant #define's first, */
/* followed by function prototypes. */
/* Remember that function prototypes must be consistent with */
/* the driver's function panel prototypes. */
/*---------------------------------------------------------------------------*/
/***************************************************/
/* Instrument specific constants */
/***************************************************/
#define hpe3631a_FILE_OPEN_ERROR (_VI_ERROR+0x3FFC0D30L) /* 0xBFFC0D30 */
#define hpe3631a_FILE_READ_ERROR (_VI_ERROR+0x3FFC0D31L) /* 0xBFFC0D31 */
#define hpe3631a_FILE_WRITE_ERROR (_VI_ERROR+0x3FFC0D32L) /* 0xBFFC0D32 */
/***************************************************/
/* Instrument specific functions */
/***************************************************/
/* End of instrument specific declarations */
/*---------------------------------------------------------------------------*/
/****** Used by Function hpe3631a_current *****/
#define hpe3631a_CURR_INST1 1
#define hpe3631a_CURR_INST2 2
#define hpe3631a_CURR_INST3 3
#define hpe3631a_CURR_MAX 5.15
#define hpe3631a_CURR_MIN 0
/****** Used by Function hpe3631a_measureCurrent_Q *****/
#define hpe3631a_CURR_MEAS1 1
#define hpe3631a_CURR_MEAS2 2
#define hpe3631a_CURR_MEAS3 3
/****** Used by Function hpe3631a_measureVoltage_Q *****/
#define hpe3631a_VOLT_MEAS1 1
#define hpe3631a_VOLT_MEAS2 2
#define hpe3631a_VOLT_MEAS3 3
/****** Used by Function hpe3631a_outputOn *****/
#define hpe3631a_OUTPUT_OFF 0
#define hpe3631a_OUTPUT_ON 1
/****** Used by Function hpe3631a_stepVoltageRange *****/
#define hpe3631a_STEP_INST1 1
#define hpe3631a_STEP_INST2 2
#define hpe3631a_STEP_INST3 3
#define hpe3631a_START_VOLT_MAX 30.9
#define hpe3631a_START_VOLT_MIN -30.9
#define hpe3631a_END_VOLT_MAX 30.9
#define hpe3631a_END_VOLT_MIN -30.9
#define hpe3631a_STEP_VOLT_MAX 30.9
#define hpe3631a_STEP_VOLT_MIN -30.9
#define hpe3631a_DELAY_MAX 100000
#define hpe3631a_DELAY_MIN 0
#define hpe3631a_CURR_LIMIT_MAX 7.21
#define hpe3631a_CURR_LIMIT_MIN 0
#define hpe3631a_ARR_LENGTH_MAX 1028
#define hpe3631a_ARR_LENGTH_MIN 1
/****** Used by Function hpe3631a_voltage *****/
#define hpe3631a_VOLT_INST1 1
#define hpe3631a_VOLT_INST2 2
#define hpe3631a_VOLT_INST3 3
#define hpe3631a_VOLT_MAX 30.9
#define hpe3631a_VOLT_MIN -30.9
ViStatus _VI_FUNC hpe3631a_current (ViSession instrumentHandle, ViInt16 instrument, ViReal64 current);
ViStatus _VI_FUNC hpe3631a_measureCurrent_Q (ViSession instrumentHandle, ViInt16 instrument, ViPReal64 current);
ViStatus _VI_FUNC hpe3631a_measureVoltage_Q (ViSession instrumentHandle, ViInt16 instrument, ViPReal64 voltage);
ViStatus _VI_FUNC hpe3631a_outputOn (ViSession instrumentHandle, ViInt16 state);
ViStatus _VI_FUNC hpe3631a_stepVoltageRange (ViSession instrumentHandle, ViInt16 instrument, ViReal64 startVoltage, ViReal64 endVoltage, ViReal64 step, ViInt32 delay, ViReal64 currentLimit, ViReal64 _VI_FAR voltArray[], ViReal64 _VI_FAR currArray[], ViInt32 arrayLength);
ViStatus _VI_FUNC hpe3631a_voltage (ViSession instrumentHandle, ViInt16 instrument, ViReal64 voltage);
/* Used for "C" externs in C++ */
#if defined(__cplusplus) || defined(__cplusplus__)
} /* end of "C" externs for C++ */
#endif
#endif /* hpe3631a_INCLUDE */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -