home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 September / CHIP_CD_1997_09_PL.iso / software / testsoft / labwind / demo.6 / main / instr / hp34401a.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-02  |  6.0 KB  |  98 lines

  1.  
  2. /*= HP 34401 Multimeter =====================================================*/
  3.  
  4. /*===========================================================================*/
  5. /*  Please do not use global variables or arrays in the include file of      */
  6. /*  instrument drivers that will be submitted for inclusion into the         */
  7. /*  LabWindows Instrument Driver Library.                                    */
  8. /*===========================================================================*/
  9.  
  10. #ifndef __hp34401a_HEADER
  11. #define __hp34401a_HEADER
  12.  
  13. #include <vpptype.h>
  14.  
  15. #if defined(__cplusplus) || defined(__cplusplus__)
  16. extern "C" {
  17. #endif
  18.  
  19. /*****************************************************************************/
  20. /*= Define Instrument Specific Error Codes Here =============================*/
  21. /*****************************************************************************/
  22. #define VI_ERROR_FILE_OPEN              (_VI_ERROR+0x3FFC0800L)
  23. #define VI_ERROR_FILE_WRITE             (_VI_ERROR+0x3FFC0801L)
  24. #define VI_ERROR_SECURITY_CODE          (_VI_ERROR+0x3FFC0802L)
  25. #define VI_ERROR_INTERPRETING_RESPONSE  (_VI_ERROR+0x3FFC0803L)
  26. #define VI_ERROR_STAMP                  (_VI_ERROR+0x3FFC0805L) 
  27. #define VI_ERROR_OUTOFF_RANGE           (_VI_ERROR+0x3FFC0806L) 
  28.  
  29. /*****************************************************************************/
  30. /*= GLOBAL USER-CALLABLE FUNCTION DECLARATIONS (Exportable Functions) =======*/
  31. /*****************************************************************************/
  32. ViStatus _VI_FUNC hp34401a_init (ViRsrc resourceName, ViBoolean IDQuery,
  33.                         ViBoolean resetDevice, ViSession *instrumentHandle);
  34. ViStatus _VI_FUNC hp34401a_conf (ViSession instrumentHandle, ViInt16 function,
  35.                         ViBoolean autorange, ViReal64 range, ViInt16 resolution);
  36. ViStatus _VI_FUNC hp34401a_confTrig (ViSession instrumentHandle, ViInt16 triggerSource,
  37.                             ViBoolean autoTriggerDelay, ViReal64 triggerDelay,
  38.                             ViInt32 triggerCount, ViInt32 sampleCount);
  39. ViStatus _VI_FUNC hp34401a_confAperTime (ViSession instrumentHandle, ViInt16 function,
  40.                                 ViReal64 apertureTime);
  41. ViStatus _VI_FUNC hp34401a_confIntegratTime (ViSession instrumentHandle, ViInt16 function,
  42.                                     ViReal64 integrationTime);
  43. ViStatus _VI_FUNC hp34401a_confMisc (ViSession instrumentHandle, ViInt16 autozero,
  44.                             ViReal64 detectorBandwidth, ViBoolean autoImpedance);
  45. ViStatus _VI_FUNC hp34401a_waitForTrigger (ViSession instrumentHandle);
  46. ViStatus _VI_FUNC hp34401a_softTrig (ViSession instrumentHandle);
  47. ViStatus _VI_FUNC hp34401a_abortMeas (ViSession instrumentHandle);
  48. ViStatus _VI_FUNC hp34401a_beeper (ViSession instrumentHandle, ViBoolean beeperState,
  49.                           ViBoolean beep);
  50. ViStatus _VI_FUNC hp34401a_singleMeas (ViSession instrumentHandle, ViReal64 *measurement);
  51. ViStatus _VI_FUNC hp34401a_multiMeas (ViSession instrumentHandle, ViInt16 timeOut,
  52.                              ViInt16 *ofMeasurements, ViReal64 measurements[]);
  53. ViStatus _VI_FUNC hp34401a_actMathOp (ViSession instrumentHandle, ViInt16 mathOperation,
  54.                              ViBoolean state);
  55. ViStatus _VI_FUNC hp34401a_fetchMeas (ViSession instrumentHandle, ViInt16 timeOut,
  56.                              ViInt16 *ofMeasurements, ViReal64 measurements[]);
  57. ViStatus _VI_FUNC hp34401a_confNull (ViSession instrumentHandle, ViReal64 nullValue);
  58. ViStatus _VI_FUNC hp34401a_confDbMeas (ViSession instrumentHandle, ViReal64 dBReference);
  59. ViStatus _VI_FUNC hp34401a_confDbmMeas (ViSession instrumentHandle, ViInt16 dBmReference);
  60. ViStatus _VI_FUNC hp34401a_confLimitTest (ViSession instrumentHandle, ViReal64 highLimit,
  61.                                  ViReal64 lowLimit);
  62. ViStatus _VI_FUNC hp34401a_display (ViSession instrumentHandle, ViBoolean displayState,
  63.                            ViChar displayMessage[], ViBoolean clearMessage);
  64. ViStatus _VI_FUNC hp34401a_checkTerminals (ViSession instrumentHandle, ViInt16 *terminals);
  65. ViStatus _VI_FUNC hp34401a_checkScpiVersion (ViSession instrumentHandle, ViInt16 *year,
  66.                                     ViInt16 *versionNumber);
  67. ViStatus _VI_FUNC hp34401a_writeInstrData (ViSession instrumentHandle, ViString writeBuffer);
  68. ViStatus _VI_FUNC hp34401a_readInstrData (ViSession instrumentHandle,
  69.                                  ViInt16 numberBytesToRead, ViChar readBuffer[],
  70.                                  ViPInt32 numBytesRead);
  71. ViStatus _VI_FUNC hp34401a_reset (ViSession instrumentHandle);
  72. ViStatus _VI_FUNC hp34401a_selfTest (ViSession instrumentHandle, ViPInt16 selfTestResult,
  73.                             ViChar selfTestMessage[]);
  74. ViStatus _VI_FUNC hp34401a_errorQuery (ViSession instrumentHandle, ViPInt32 errorCode,
  75.                               ViChar errorMessage[]);
  76. ViStatus _VI_FUNC hp34401a_errorMessage (ViSession instrumentHandle, ViStatus errorCode,
  77.                                 ViChar errorMessage[]);
  78. ViStatus _VI_FUNC hp34401a_revisionQuery (ViSession instrumentHandle,
  79.                                  ViChar instrumentDriverRevision[],
  80.                                  ViChar firmwareRevision[]);
  81. ViStatus _VI_FUNC hp34401a_calSecure (ViSession instrumentHandle, ViChar securityCode[],
  82.                              ViBoolean calibration);
  83. ViStatus _VI_FUNC hp34401a_calCode (ViSession instrumentHandle, char newSecurityCode[]);
  84. ViStatus _VI_FUNC hp34401a_calStamp (ViSession instrumentHandle, ViChar stamp[]);
  85. ViStatus _VI_FUNC hp34401a_calibrate (ViSession instrumentHandle, ViReal64 calibrationValue,
  86.                              ViInt16 *calibrationCode);
  87. ViStatus _VI_FUNC hp34401a_close (ViSession instrumentHandle);
  88.  
  89. #if defined(__cplusplus) || defined(__cplusplus__)
  90. }
  91. #endif
  92.  
  93. /*****************************************************************************/
  94. /*=== END INCLUDE FILE ======================================================*/
  95. /*****************************************************************************/
  96.  
  97. #endif
  98.