home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-02 | 113.9 KB | 3,239 lines |
-
- HP 53131/2A Universal Counter (VISA I/O)
- ________________________________________________________________________________
-
- Introduction:
-
- This instrument driver provides programming support for the HP 53131/2A Universal Counter (VISA I/O).
- It contains functions for opening, configuring, taking measurements from, and
- closing the instrument.
-
- ________________________________________________________________________________
-
- Assumptions:
-
- To successfully use this module, the following conditions must be met:
-
- For GPIB instrument drivers:
- - the instrument is connected to the GPIB.
- - the GPIB address supplied to the initialize function must match the
- GPIB address of the instrument.
-
- ________________________________________________________________________________
-
- Error Codes:
-
- Error codes are returned as the return value of each instrument driver
- function. A program should examine this value after each call to an instrument
- driver function to determine if any error occurred. Possible error codes and
- their meanings are listed with the corresponding instrument driver function.
-
- ________________________________________________________________________________
-
- How To Use This Document:
-
- This document is intended to be used as a programming reference manual.
- It describes each function in the HP 53131/2A Universal Counter (VISA I/O)
- instrument. The functions are listed in alphabetical order with a
- description of the function, C syntax of the function, a description of each
- parameter, and possible error codes.
-
- ________________________________________________________________________________
-
- Function Tree Layout:
-
- HP 53131/2A Universal Counter Function Name:
- (VISA I/O)
-
- Initialize hp5313xa_init
- Configuration Functions
- Input Conditions hp5313xa_inputCond
- Trigger/Sensitivity hp5313xa_trigSens
- Limits hp5313xa_limit
- Math hp5313xa_math
- Save/Recall Settings hp5313xa_savRecSet
- Configure Particular Meas
- Freq, Period, & Ratio hp5313xa_freqPeriodRatio
- Phase (Ch1 To Ch2) hp5313xa_phase
- Totalize (Ch1) hp5313xa_totalize
- Time, Width, Dutycycle hp5313xa_timWidDuty
- Time Interval Ch1 To Ch2 hp5313xa_timeInterval
- Configure For Block Meas hp5313xa_confblock
- Configure Generic Measurements hp5313xa_confFunc
- Action/Status Functions
- Particular Measurements
- Start/Stop Measurements hp5313xa_strStpMeas
- Status Register
- Initiate Registers hp5313xa_initReg
- Set SRQ Enable Condition hp5313xa_setSrqCond
- Wait For SRQ hp5313xa_waitSrq
- Initiate Generic Measurements hp5313xa_initMeas
- Invoke Post-Processing hp5313xa_postProcess
- Data Functions
- Query Measurements hp5313xa_queryMeas
- Data Results hp5313xa_dataRes
- Math Results hp5313xa_mathRes
- Limit Results hp5313xa_limitRes
- Statistics Results hp5313xa_statisticsRes
- Utility Functions
- Query Chan 3's Settings hp5313xa_queryChan3
- Enable/Disable Settings hp5313xa_enaDisSet
- Write To Instrument hp5313xa_writeInstrData
- Read Instrument Data hp5313xa_readInstrData
- Reset hp5313xa_reset
- Self-Test hp5313xa_selfTest
- Error-Query hp5313xa_errorQuery
- Error Message hp5313xa_errorMessage
- Revision Query hp5313xa_revisionQuery
- Close hp5313xa_close
- ________________________________________________________________________________
-
- HP 53131/2A Universal Counter (VISA I/O)
-
- This instrument module provides programming support for the
- HP 53131/2A Universal Counter. The module is divided into the following
- functions:
-
- Functions/Classes:
-
- (1) Initialize:
- This function initializes the instrument and sets it to a default
- configuration.
-
- (2) Configuration Functions: (Class)
- This class of functions configures the counter's input ports, the Trigger
- Level/Sensitivity, the limit test, and the math processing. It also
- configures particular or generic measurements.
-
- (3) Action/Status Functions: (Class)
- This class of functions begins or terminates an acquisition. It also
- provides functions which allow the user to determine the current status
- of the instrument.
-
- (4) Data Functions: (Class)
- This class of functions queries for the results of General/Generic
- measurements, limit test, math, and statistics.
-
- (5) Utility Functions: (Class)
- This class of functions provides lower level functions to communicate
- with the instrument, and change instrument parameters.
-
- (6) Close:
- This function takes the instrument offline.
-
- ________________________________________________________________________________
-
- The following functions are in alphabetical order.
-
- ________________________________________________________________________________
-
- hp5313xa_close
-
- ViStatus hp5313xa_close (ViSession instrumentHandle);
-
- Purpose
-
- This function performs the following operations:
- viClose (instrSession) and viClose (rmSession).
-
- Notes:
-
- (1) The instrument must be reinitialized to use it again.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_confFunc
-
- ViStatus hp5313xa_confFunc (ViSession instrumentHandle, ViInt16 selectFunction);
-
- Purpose
-
- This function configures the counter for measurement of the selected
- function. This function is used when "reading" or "fetching" measurement
- methods are used.
-
- Notes:
-
- (1) If a direct measurement is desired, use the function "Query
- Measurement" from the "Query Result" class.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- selectFunction
-
- Variable Type ViInt16
-
- This control selects function to be configured for measurements.
-
- Valid Range:
- The numbers (1, 2, & 3) following each quantity represent channel
- number.
-
- 0 - DutyCycle 1 (Default Value)
- 1 - Fall Time 1
- 2 - Rise Time 1
- 3 - Frequency 1
- 4 - Frequency 2
- 5 - Frequency 3
- 6 - Freq Ratio 1 to 2
- 7 - Freq Ratio 1 to 3
- 8 - Max Volt 1
- 9 - Min Volt 1
- 10 - Max Volt 2
- 11 - Min Volt 2
- 12 - Negative Width 1
- 13 - Positive Width 1
- 14 - Period 1
- 15 - Period 2
- 16 - Period 3
- 17 - Phase 1 to 2
- 18 - Positive peak 1
- 19 - Positive peak 2
- 20 - Time interval 1 to 2
- 21 - Totalize 1 (continuous)
- 22 - Totalize 1
-
- Notes:
-
- (1) Default values were used for the parameters (e.g., reference,
- resolution, etc.) of each function. To determine these default
- values, See the description of each function on the programming guide
- manual.
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Select_Function) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_confblock
-
- ViStatus hp5313xa_confblock (ViSession instrumentHandle, ViBoolean statistics,
- ViInt32 ofMeasurements, ViBoolean filterData,
- ViInt16 show, ViReal64 lowerLimit,
- ViReal64 upperLimit);
-
- Purpose
-
- This function configures the counter for a block measurement. It
- specifies the number of measurements to combine for statistics
- processing. It specifies which measurements will be used in computing
- statistics; out-of-limit measurements can be filtered out of the
- statistics processing.
-
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- statistics
-
- Variable Type ViBoolean
-
- This control enables or disable the statistics post-processing.
-
- Valid Range:
- VI_OFF (0) - Disable (Default Value)
- VI_ON (1) - Enable
-
-
-
- ofMeasurements
-
- Variable Type ViInt32
-
- This control specifies the number of measurements to combine for
- statistical processing.
-
- Valid Range: 2 - 1,000,000
-
- Default Value: 50
-
- filterData
-
- Variable Type ViBoolean
-
- This control enables or disables the statistics filter. When set to
- enable, only measurements (scaled and offset if math is enabled)
- which are within the filter limits are combined into the statistics
- processing. When set to disable, all measurements, whether they are
- in or out of the filter limits are combined into the statistics
- processing.
-
- Valid Range:
- VI_OFF (0) - Disable (Default Value)
- VI_ON (1) - Enable
-
-
-
- show
-
- Variable Type ViInt16
-
- This control selects which statistical result will appear on the
- front-panel display and returned by the data result query.
-
- Valid Range:
- 0 - Measurement (Default Value)
- 1 - Standard Deviation
- 2 - Mean
- 3 - Maximum
- 4 - Minimum
-
-
-
- lowerLimit
-
- Variable Type ViReal64
-
- This control sets the statistics filter lower limit.
-
- Valid Range: -9.999999E-12 to +9.999999E+12
-
- Default Value: 0.0
-
- upperLimit
-
- Variable Type ViReal64
-
- This control sets the statistics filter upper limit.
-
- Valid Range: -9.999999E-12 to +9.999999E+12
-
- Default Value: 0.0
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Statistics) out of range.
- BFFC0003 Parameter 3 (#_Of_Measurements) out of range.
- BFFC0004 Parameter 4 (Filter_Data)out of range.
- BFFC0005 Parameter 5 (Show) out of range.
- BFFC0006 Parameter 6 (Lower_Limit) out of range.
- BFFC0007 Parameter 7 (Upper_Limit) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_dataRes
-
- ViStatus hp5313xa_dataRes (ViSession instrumentHandle, ViReal64 *measuredData);
-
- Purpose
-
- This function returns the data displayed on the instrument's front panel.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- measuredData
-
- Variable Type ViReal64 (passed by reference)
-
- This control returns the data displayed on the instrument's front
- panel.
-
- Notes:
-
- (1) The unit of the measured value is as follows: Seconds(Time),
- Hertz(Frequency), Volts(Voltage), or None.
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
- 3FFF0803 Interpreting the instrument's response.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_enaDisSet
-
- ViStatus hp5313xa_enaDisSet (ViSession instrumentHandle, ViBoolean limitTest,
- ViBoolean math, ViBoolean filterData,
- ViBoolean statistics);
-
- Purpose
-
- This function enables or disables some major counter settings such as
- limit testing, math, filtering data, and statistics.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- limitTest
-
- Variable Type ViBoolean
-
- This control enables or disables the limit test.
-
- Valid Range:
- VI_OFF (0) - Disable
- VI_ON (1) - Enable (Default Value)
-
- math
-
- Variable Type ViBoolean
-
- This control enables or disables math. It specifies whether or not
- measurement data will be scaled and offset.
-
- Valid Range:
- VI_OFF (0) - Disable
- VI_ON (1) - Enable (Default Value)
-
-
-
- filterData
-
- Variable Type ViBoolean
-
- This control enables or disables the statistics filter. When set to
- enable, only measurements (scaled and offset if math is enabled)
- which are within the filter limits are combined into the statistics
- processing. When set to disable, all measurements, whether they are
- in or out of the filter limits are combined into the statistics
- processing.
-
- Valid Range:
- VI_OFF (0) - Disable (Default Value)
- VI_ON (1) - Enable
-
-
-
- statistics
-
- Variable Type ViBoolean
-
- This control enables or disable the statistics post-processing.
-
- Valid Range:
- VI_OFF (0) - Disable (Default Value)
- VI_ON (1) - Enable
-
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 out of range.
- BFFC0003 Parameter 3 out of range.
- BFFC0004 Parameter 4 out of range.
- BFFC0005 Parameter 5 out of range.
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_errorMessage
-
- ViStatus hp5313xa_errorMessage (ViSession instrumentHandle, ViStatus errorCode,
- ViChar errorMessage[]);
-
- Purpose
-
- This function takes the Status Code returned by the instrument driver
- functions, interprets it and returns it as a user readable string.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: VI_NULL
-
- errorCode
-
- Variable Type ViStatus
-
- This control accepts the Status Code returned from the instrument
- driver functions.
-
- Default Value:
- 0 - VI_SUCCESS
-
- errorMessage
-
- Variable Type ViChar[]
-
- This control returns the interpreted Status Code as a user readable
- message string.
-
- Notes:
-
- (1) The array must contain at least 256 elements ViChar[256].
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_errorQuery
-
- ViStatus hp5313xa_errorQuery (ViSession instrumentHandle, ViInt32 *errorCode,
- ViChar errorMessage[]);
-
- Purpose
-
- This function reads an error code from the instrument's error queue.
-
- Notes:
-
- (1) If this instrument does not support an Error Query, this function
- should return the Warning Code 0x3FFC0104 - VI_WARN_NSUP_ERROR_QUERY
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- errorCode
-
- Variable Type ViInt32 (passed by reference)
-
- This control returns the error code read from the instrument's error
- queue.
-
-
- errorMessage
-
- Variable Type ViChar[]
-
- This control returns the error message string read from the
- instrument's error message queue.
-
- Notes:
-
- (1) The array must contain at least 256 elements ViChar[256].
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFC0104 Error Query not supported - VI_WARN_NSUP_ERROR_QUERY
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_freqPeriodRatio
-
- ViStatus hp5313xa_freqPeriodRatio (ViSession instrumentHandle,
- ViInt16 selectFunction, ViInt16 selectArming,
- ViReal64 timeDigits, ViBoolean startSlope,
- ViInt16 stop);
-
- Purpose
-
- This function configures the selected function for measurement. It sets
- the start/stop arming sources.
-
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- selectFunction
-
- Variable Type ViInt16
-
- This control selects the function to configure for measurement.
-
- Valid Range:
- 1 - Chan 1 Frequency (Default)
- 2 - Chan 2 Frequency
- 3 - Chan 3 Frequency
- 4 - Freq Ratio 1 to 2
- 5 - Freq Ratio 1 to 3
- 6 - Chan 1 Period
-
- selectArming
-
- Variable Type ViInt16
-
- This control selects the arming mode for the measurement process.
-
- Valid Range:
- 0 - Auto (Default)
- 1 - Digits
- 2 - Time
- 3 - Extern
-
- Notes:
- Below each arming mode is followed by a brief description:
-
- 0 - Auto. Makes individual measurements fast as possible.
-
- 1 - Digits. Sets the number of digits of resolution to be
- provided by the result.
-
- 2 - Time. Sets the length of time for which the signal is
- measured.
-
- 3 - Extern. An external signal at Ext Arm(rear-panel) is used to
- start a measurement.
-
-
- timeDigits
-
- Variable Type ViReal64
-
- This control specifies the gate time used with time arming or
- specifies the number of digits of resolution when digits arming is
- selected.
-
- Valid Range:
-
- Dependent upon whether Time or Digits is selected by the "Select
- Arming" control:
- - Time: 100E-5 to 999E-5 Seconds. (Short gate time) or 10E-3 to
- 1000.000 Seconds.(Long gate time)
-
- - Digits: 3 to 15 (Integers Only).
-
- Default Value: 3.0 Sec
-
- startSlope
-
- Variable Type ViBoolean
-
- This control sets the slope of the external start arm signal used in
- external arming for measurements.
-
- Valid Range:
- VI_OFF (0) - Negative (Default Value)
- VI_ON (1) - Positive
-
-
-
- stop
-
- Variable Type ViInt16
-
- This control sets the external stop arm signal used in external
- arming for measurements.
-
- Valid Range:
- 0 - Immediate.(Default Value)
- 1 - Negative Slope.
- 2 - Positive Slope.
- 3 - Timer. Set the time value.
-
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Select_Function) out of range.
- BFFC0003 Parameter 3 (Select_Arming) out of range.
- BFFC0004 Parameter 4 (Time/Digits) out of range.
- BFFC0005 Parameter 5 (Start_Slope) out of range.
- BFFC0006 Parameter 6 (Stop) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_init
-
- ViStatus hp5313xa_init (ViRsrc resourceName, ViBoolean IDQuery,
- ViBoolean resetDevice, ViInt16 instrumentModel,
- ViSession *instrumentHandle);
-
- Purpose
-
- This function performs the following initialization actions:
-
- - Opens a session to the Default Resource Manager resource and a session
- to the specified device using the interface and address specified in the
- Resource_Name control.
-
- - Performs an identification query on the Instrument.
-
- - Resets the instrument to a known state.
-
- - Sends initialization commands to the instrument that set any necessary
- programmatic variables such as Headers Off, Short Command form, and Data
- Transfer Binary to the state necessary for the operation of the
- instrument driver.
-
- - Returns an Instrument Handle which is used to differentiate between
- different sessions of this instrument driver.
-
- - Each time this function is invoked a Unique Session is opened. It is
- possible to have more than one session open for the same resource.
-
- Notes:
-
- (1) If this instrument does not support an ID Query, and the ID Query
- control is set to "Do Query" then this function should return the Warning
- Code 0x3FFC0101 - VI_WARN_NSUP_ID_QUERY.
-
- (2) If this instrument does not support a Reset, and the Reset control is
- set to "Reset Device" then this function should return the Warning Code
- 0x3FFC0102 - VI_WARN_NSUP_RESET.
-
-
- Parameter List
-
- resourceName
-
- Variable Type ViRsrc
-
- This control specifies the interface and address of the device that
- is to be initialized (Instrument Descriptor). The exact grammar to be
- used in this control is shown in the note below.
-
- Default Value: "GPIB::1"
-
- Notes:
-
- (1) Based on the Instrument Descriptor, this operation establishes a
- communication session with a device. The grammar for the Instrument
- Descriptor is shown below. Optional parameters are shown in square
- brackets ([]).
-
- Interface Grammar
- ------------------------------------------------------
- GPIB GPIB[board]::primary address[::secondary address]
- [::INSTR]
-
- The GPIB keyword is used with GPIB instruments.
-
- The default value for optional parameters are shown below.
-
- Optional Parameter Default Value
- -----------------------------------------
- board 0
- secondary address none - 31
-
-
- IDQuery
-
- Variable Type ViBoolean
-
- This control specifies if an ID Query is sent to the instrument
- during the initialization procedure.
-
- Valid Range:
- VI_OFF (0) - Skip Query
- VI_ON (1) - Do Query (Default Value)
-
- Notes:
-
- (1) If this instrument does not support an ID Query, and this control
- is set to "Do Query" then this function should return the Warning
- Code 0x3FFC0101 - VI_WARN_NSUP_ID_QUERY.
-
- (2) Under normal circumstances the ID Query ensures that the
- instrument initialized is the type supported by this driver. However
- circumstances may arise where it is undesirable to send an ID Query
- to the instrument. In those cases; set this control to "Skip Query"
- and this function will initialize the selected interface, without
- doing an ID Query.
-
- resetDevice
-
- Variable Type ViBoolean
-
- This control specifies if the instrument is to be reset to its
- power-on settings during the initialization procedure.
-
- Valid Range:
- VI_OFF (0) - Don't Reset
- VI_ON (1) - Reset Device (Default Value)
-
- Notes:
-
- (1) If this instrument does not support a Reset, and this control is
- set to "Reset Device" then this function should return the Warning
- Code 0x3FFC0102 - VI_WARN_NSUP_RESET.
-
- (2) If you do not want the instrument reset. Set this control to
- "Don't Reset" while initializing the instrument.
-
- instrumentModel
-
- Variable Type ViInt16
-
- This control selects the instrument model to be operated.
-
- Valid Range:
- 1 - HP 53131A
- 2 - HP 53132A
-
- Default Value:
- 1 - HP 53131A
-
- instrumentHandle
-
- Variable Type ViSession (passed by reference)
-
- This control returns an Instrument Handle that is used in all
- subsequent function calls to differentiate between different sessions
- of this instrument driver.
-
- Notes:
-
- (1) Each time this function is invoked a Unique Session is opened.
- It is possible to have more than one session open for the same
- resource.
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (ID Query) out of range.
- BFFC0011 Instrument returned invalid response to ID Query
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- BFFF0803 Error Scanning Response VI_ERROR_INTERPRETING_RESPONSE
-
- ________________________________________________________________________________
-
- hp5313xa_initMeas
-
- ViStatus hp5313xa_initMeas (ViSession instrumentHandle);
-
- Purpose
-
- This function initiates generic measurements. It starts the measurement
- when the "fetching" measurement is used. After calling this function,
- one can fetch for the configured function or any related function (See
- Note: for the related functions). Use the "Query Measurement" function
- from the "Query Result" class to return the result of the measurement.
-
- Notes:
-
- (1) The only functions which can be derived (using Fetch) from the stored
- data are period to/from frequency, maximum to/from minimum, maximum
- to/from peak-to-peak, and minimum to/from peak-to-peak. All other
- functions require an acquisition of a new type.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_initReg
-
- ViStatus hp5313xa_initReg (ViSession instrumentHandle);
-
- Purpose
-
- This function clears the Standard Event Status Enable, Service Request
- Enable, and presets the enable registers and transition filters
- associated with the operation and questionable status reporting
- structures.
-
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_inputCond
-
- ViStatus hp5313xa_inputCond (ViSession instrumentHandle, ViInt16 channel,
- ViBoolean coupling, ViBoolean impedanceOhms,
- ViBoolean attenuation, ViBoolean filter);
-
- Purpose
-
- This function controls the characteristics of the Counter's input ports
- (channels 1 and 2).
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- channel
-
- Variable Type ViInt16
-
- This control selects the channel for which to set the input
- conditions.
-
- Valid Range:
- 1 - Channel 1 (Default Value)
- 2 - Channel 2
-
-
- coupling
-
- Variable Type ViBoolean
-
- This control selects the input coupling for the selected channel.
-
- Valid Range:
- VI_OFF (0) - AC
- VI_ON (1) - DC (Default Value)
-
- impedanceOhms
-
- Variable Type ViBoolean
-
- This control selects the input impedance for the selected channel.
-
- Valid Range:
- VI_ON (0) - 50 Ohms
- VI_ON (1) - 1M Ohms (Default Value)
-
- attenuation
-
- Variable Type ViBoolean
-
- This control selects the input attenuation for the selected channel.
-
- Valid Range:
- VI_OFF (0) - 1X
- VI_ON (1) - 10X (Default Value)
-
- filter
-
- Variable Type ViBoolean
-
- This control enables or disables the low pass filter for the selected
- input channel.
-
- Valid Range:
- VI_ON (1) - Disable
- VI_OFF (0) - Enable (Default Value)
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Channel) out of range.
- BFFC0003 Parameter 3 (Coupling) out of range.
- BFFC0004 Parameter 4 (Impedance) out of range.
- BFFC0005 Parameter 5 (Attenuation) out of range.
- BFFC0006 Parameter 6 (Filter) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_limit
-
- ViStatus hp5313xa_limit (ViSession instrumentHandle, ViBoolean limitTest,
- ViBoolean onFail, ViBoolean show, ViReal64 lowerLimit,
- ViReal64 upperLimit);
-
- Purpose
-
- This function controls the limit test. It defines the lower and upper
- limit test.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- limitTest
-
- Variable Type ViBoolean
-
- This control enables or disables the limit test.
-
- Valid Range:
- VI_OFF (0) - Disable
- VI_ON (1) - Enable (Default Value)
-
- onFail
-
- Variable Type ViBoolean
-
- This control sets if the counter should stop measurements or continue
- measuring (go on) when a measurement exceeds the user-entered limits.
-
- Valid Range:
- VI_ON (0) - Go On
- VI_OFF (1) - Stop (Default Value)
-
- show
-
- Variable Type ViBoolean
-
- This control sets whether the measurement display is numeric or
- symbolic(on a graph).
-
- Valid Range:
- VI_OFF (0) - Numeric
- VI_ON (1) - Graph (Default Value)
-
- lowerLimit
-
- Variable Type ViReal64
-
- This control sets the lower limit used for limit testing.
-
- Valid Range: -9.999999E-12 to 9.999999E+12
-
- Default Value: 0.00
-
-
- upperLimit
-
- Variable Type ViReal64
-
- This control sets the upper limit used for limit testing.
-
- Valid Range: -9.999999E-12 to +9.999999E+12
-
- Default: 0.0
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
- 3FFF0805 Upper limit <= Lower limit
-
- BFFC0002 Parameter 2 (Limit_Test) out of range.
- BFFC0003 Parameter 3 (On_Fail) out of range.
- BFFC0004 Parameter 4 (Show) out of range.
- BFFC0005 Parameter 5 (Lower_Limit) out of range.
- BFFC0006 Parameter 6 (Upper_Limit) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
-
- ________________________________________________________________________________
-
- hp5313xa_limitRes
-
- ViStatus hp5313xa_limitRes (ViSession instrumentHandle,
- ViInt16 *dataWithinLimit, ViInt16 *failCount,
- ViInt16 *passCount, ViInt16 *lowerFailures,
- ViInt16 *upperFailures);
-
- Purpose
-
- This function reports the results of the limit test on multiple
- measurements.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- dataWithinLimit
-
- Variable Type ViInt16 (passed by reference)
-
- This control returns the status of the last measurement that was
- limit tested.
-
- Valid Range:
- VI_FALSE (0) - Passed the limit test.
- VI_TRUE (1) - Failed the limit test.
-
- failCount
-
- Variable Type ViInt16 (passed by reference)
-
- This control holds the number of out of limit values.
-
-
- passCount
-
- Variable Type ViInt16 (passed by reference)
-
- This control holds the number of in limit values.
-
-
- lowerFailures
-
- Variable Type ViInt16 (passed by reference)
-
- This control holds the number of limit test failures at the lower
- limit.
-
-
- upperFailures
-
- Variable Type ViInt16 (passed by reference)
-
- This control holds the number of limit test failures at the upper
- limit.
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
- 3FFF0803 Interpreting the instrument's response.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_math
-
- ViStatus hp5313xa_math (ViSession instrumentHandle, ViBoolean math,
- ViReal64 scaleValue, ViReal64 offsetValue);
-
- Purpose
-
- This function controls the math (scale/offset) processing. It sets the
- scale and offset values. The counter has only one fixed math operation
- and is as follows Math = "Meas" * Scale + Offset
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- math
-
- Variable Type ViBoolean
-
- This control enables or disables math. It specifies whether or not
- measurement data will be scaled and offset.
-
- Valid Range:
- VI_OFF (0) - Disable
- VI_ON (1) - Enable (Default Value)
-
- scaleValue
-
- Variable Type ViReal64
-
- This control specifies the scale value to be use with the math
- function.
-
- Valid Range: -9.999999E-12 to +9.999999E+12
-
- Default Value: 0.0
-
-
- offsetValue
-
- Variable Type ViReal64
-
- This control specifies the offset value to be use with the math
- function.
-
- Valid Range: -9.999999E-12 to +9.999999E+12
-
- Default Value: 0.0
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Math) out of range.
- BFFC0003 Parameter 3 (Scale_Value) out of range.
- BFFC0004 Parameter 4 (Offset Value) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_mathRes
-
- ViStatus hp5313xa_mathRes (ViSession instrumentHandle,
- ViReal64 *scaledOffsetData);
-
- Purpose
-
- This function returns the current scaled and offset measurement result.
- The counter has only one fixed math operation and it is as follows: Math
- = "Meas" * Scale + Offset
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- scaledOffsetData
-
- Variable Type ViReal64 (passed by reference)
-
- This control returns the current scaled and offset measurement
- result.
-
- Notes:
-
- (1) The unit of the measured value is as follows: Seconds(Time),
- Hertz(Frequency), Volts(Voltage), or None.
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
- 3FFF0803 Interpreting the instrument's response.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_phase
-
- ViStatus hp5313xa_phase (ViSession instrumentHandle, ViBoolean selectArming,
- ViBoolean startSlope);
-
- Purpose
-
- This function configures the Phase function for measurement. It sets the
- start arming source.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- selectArming
-
- Variable Type ViBoolean
-
- This control selects the arming mode for the measurement process.
-
- Valid Range:
- VI_OFF (0) - Auto (Default)
- VI_ON (1) - Extern
-
- Notes:
- Below each arming mode is followed by a brief description:
-
- VI_OFF (0) - Auto.
- Makes individual measurements as fast as possible.
-
- VI_ON (1) - Extern.
- An external signal at Ext Arm(rear-panel) is used to start a
- measurement.
-
- startSlope
-
- Variable Type ViBoolean
-
- This control sets the slope of the external start arm signal used in
- external arming for measurements.
-
- Valid Range:
- VI_OFF (0) - Negative (Default Value)
- Vi_ON (1) - Positive
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Select_Arming) out of range.
- BFFC0003 Parameter 3 (Start_Slope) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_postProcess
-
- ViStatus hp5313xa_postProcess (ViSession instrumentHandle, ViInt16 postProcess);
-
- Purpose
-
- This function controls the post processing of data. When enabled, the
- counter recalculates existing data without re-acquiring data.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- postProcess
-
- Variable Type ViInt16
-
- This control controls the post processing of data. When enabled, the
- counter recalculates existing data without re-acquiring data.
-
- Valid Range:
-
- 0 - Immediate. Causes the counter to recalculate existing data
- without re-acquiring data. (Default Value)
-
- 1 - Auto On. Recalculation will automatically occur whenever any
- changes are made by the "math" and "limit" functions.
-
- 2 - Auto Off. "math" and "Limit" functions only produce new results
- when new data is acquired or when the immediate command is received.
-
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Post_Process) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_queryChan3
-
- ViStatus hp5313xa_queryChan3 (ViSession instrumentHandle,
- ViBoolean *inputCoupling,
- ViBoolean *inputImpedance);
-
- Purpose
-
- This function queries the input channel for its input conditions
- (coupling & Impedance).
-
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- inputCoupling
-
- Variable Type ViBoolean (passed by reference)
-
- This control returns the channel 3's input coupling.
-
- Valid Range:
- VI_FALSE (0) - Not Available
- VI_TRUE (1) - AC
-
- inputImpedance
-
- Variable Type ViBoolean (passed by reference)
-
- This control returns the channel 3's input impedance.
-
- Valid Range:
- VI_FALSE (0) - Not Available
- VI_TRUE (1) - 50 Ohms
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 out of range.
- BFFC0003 Parameter 3 out of range.
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_queryMeas
-
- ViStatus hp5313xa_queryMeas (ViSession instrumentHandle, ViInt16 selectFunction,
- ViInt16 selectMeasMethod, ViReal64 *measuredValue);
-
- Purpose
-
- This function performs direct, read, or fetch measurement of the selected
- function at the selected channel.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- selectFunction
-
- Variable Type ViInt16
-
- This control selects the function to be measured.
-
- Valid Range:
-
- The numbers (1,2, & 3) following each quantity represent channel
- number.
-
- 0 - DutyCycle 1 (Default Value)
- 1 - Fall Time 1
- 2 - Rise Time 1
- 3 - Frequency 1
- 4 - Frequency 2
- 5 - Frequency 3
- 6 - Freq Ratio 1 to 2
- 7 - Freq Ratio 1 to 3
- 8 - Max Volt 1
- 9 - Min Volt 1
- 10 - Max Volt 2
- 11 - Min Volt 2
- 12 - Negative Width 1
- 13 - Positive Width 1
- 14 - Period 1
- 15 - Period 2
- 16 - Period 3
- 17 - Phase 1 to 2
- 18 - Positive peak 1
- 19 - Positive peak 2
- 20 - Time interval 1 to 2
- 21 - Totalize 1
-
- Notes:
-
- (1) Default values were used for the parameters (e.g., reference,
- resolution, etc.) of each function. To determine these default
- values, See the description of each function on the programming guide
- manual.
-
-
- selectMeasMethod
-
- Variable Type ViInt16
-
- This control selects the measurement method. If "Direct Meas" is
- selected the selected function is measured directly with no
- additional settings. To perform a "Read" measurement the voltage
- function should be configured first. To perform a "Fetch"
- measurement the selected function should be configured first and the
- "initiate Measurement" function should have been previously sent.
- Refer to the examples and note below for more details.
-
- Valid Range:
-
- 0 - Direct Meas (Default)
- 1 - Read
- 2 - Fetch
-
- Examples:
-
- 0 - Direct Measurement:
- Select "Period 1" from the "Select Function" control to directly
- measure the period of channel 1.
-
- 1 - Read:
- Call the "Configure Function" function to configure for "period 1"
- measurement. In this mode, instrument settings can be modified before
- the actual "period 1" measurement is performed.
-
- 2 - Fetch:
- Call the "Configure Function" function to configure for "period 1"
- measurement. In this mode, instrument settings can be modified before
- the "Initiate Measurement" function is called. Once "Initiate
- Measurement" function is called, one can fetch for the configured
- function and other functions related to it (See Note: for the related
- functions).
-
- Notes:
-
- (1) The only functions which can be derived (using Fetch) from the
- stored data are period to/from frequency, maximum to/from minimum,
- maximum to/from peak-to-peak, and minimum to/from peak-to-peak. All
- other functions require an acquisition of a new type.
-
-
- measuredValue
-
- Variable Type ViReal64 (passed by reference)
-
- This control returns the measured function.
-
- Notes:
-
- (1) The unit of the measured value is as follows: Seconds(Time),
- Hertz(Frequency), Volts(Voltage), or None.
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
- 3FFF0803 Interpreting the instrument's response.
-
- BFFC0002 Parameter 2 (Select_Function) out of range.
- BFFC0003 Parameter 3 (Select_Meas_Method) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_readInstrData
-
- ViStatus hp5313xa_readInstrData (ViSession instrumentHandle,
- ViInt16 numberBytesToRead, ViChar readBuffer[],
- ViInt32 *numBytesRead);
-
- Purpose
-
- This function reads data from the instrument's output buffer and returns
- it to the specified variable in memory.
-
- Notes:
-
- (1) Because the instrument may return both numeric and text data in
- response to queries this function returns the data in string format.
-
- (2) If valid data is not available at the instrument's output buffer when
- this function is called the instrument will hang up and the function will
- not return until it times out. If the time-out is disabled this function
- will hang indefinitely and it may be necessary to reboot the computer to
- break out.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- numberBytesToRead
-
- Variable Type ViInt16
-
- The number of bytes specified by this control should be greater than
- or equal to the number of bytes which are to be read from the
- instrument. If the actual number of bytes to be read is greater than
- the number this control specifies then multiple reads will be
- required to empty the instrument's output buffer.
-
- If the instrument's output buffer is not emptied the instrument may
- return invalid data when future reads are performed.
-
- Default Value: 50 (See NOTE 2)
-
- Notes:
-
- (1) If NO DATA is available at the instrument's output buffer when
- this function is called the instrument will hang up and the function
- will not return until it times out. If the time-out is disabled,
- this function will hang indefinitely and it may be necessary to
- reboot the computer.
-
- (2) If the number of bytes expected is greater than 50 the value of
- this control may be increased. If the actual number of bytes read is
- larger than the declared size of the read buffer a run-time error
- will be generated.
-
-
- readBuffer
-
- Variable Type ViChar[]
-
- The incoming data from the instrument is placed into this variable.
-
- Notes:
-
- (1) Because the instrument may return both numeric and text data in
- response to queries this function returns the data in string format.
-
- (2) This function does not overwrite any old data left in the string
- variable from the last time the function was called. String data in
- LabWindows/CVI is terminated with an ASCII null(0x0) and string
- manipulation functions will only recognize data before the ASCII
- null.
-
- (3) The declared size of the string variable must be greater than the
- actual number of bytes read from the instrument if it is not a
- run-time error will be generated.
-
-
- numBytesRead
-
- Variable Type ViInt32 (passed by reference)
-
- This variable contains the actual number of bytes read from the
- instrument. This is the value which is returned by the read function.
-
- Notes:
-
- (1) If the actual number of bytes read is less than the number of
- bytes specified in the Number Bytes To Read control then the output
- buffer has probably been emptied. If the read function fails and the
- number of bytes read is 0, the most probable cause for the failure is
- there was no data available at the instrument's output buffer.
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_reset
-
- ViStatus hp5313xa_reset (ViSession instrumentHandle);
-
- Purpose
-
- This function resets the instrument to a known state and sends
- initialization commands to the instrument that set any necessary
- programmatic variables such as Headers Off, Short Command form, and Data
- Transfer Binary to the state necessary for the operation of the
- instrument driver.
-
- Notes:
-
- (1) If this instrument does not support a Reset, this function should
- return the Warning Code 0x3FFC0102 - VI_WARN_NSUP_RESET
-
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFC0102 Reset not supported - VI_WARN_NSUP_RESET
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_revisionQuery
-
- ViStatus hp5313xa_revisionQuery (ViSession instrumentHandle,
- ViChar instrumentDriverRevision[],
- ViChar firmwareRevision[]);
-
- Purpose
-
- This function returns the revision numbers of the instrument driver and
- instrument firmware, and tells the user what firmware the driver is
- compatible with, for example:
-
- This instrument driver's Revision Number is "Rev 1.0, 9/95, CVI 3.1" and
- is compatible with Instrument Firmware Revision "3.00".
-
- Notes:
-
- (1) If this instrument does not support a Firmware Revision Query, this
- function should return the Warning Code 0x3FFC0105 -
- VI_WARN_NSUP_REV_QUERY.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- instrumentDriverRevision
-
- Variable Type ViChar[]
-
- This control returns the Instrument Driver Software Revision.
-
- Notes:
-
- (1) The array must contain at least 256 elements ViChar[256].
-
- firmwareRevision
-
- Variable Type ViChar[]
-
- This control returns the Instrument Firmware Revision.
-
- Notes:
-
- (1) The array must contain at least 256 elements ViChar[256].
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFC0105 Revision Query not supported - VI_WARN_NSUP_REV_QUERY
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_savRecSet
-
- ViStatus hp5313xa_savRecSet (ViSession instrumentHandle, ViBoolean saveRecall,
- ViInt16 memoryLocation);
-
- Purpose
-
- This function saves/recalls instrument settings to/from the specified
- instrument memory location.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- saveRecall
-
- Variable Type ViBoolean
-
- This control saves/recalls setting to/from the instrument's local
- memory.
-
- Valid Range:
- VI_OFF (0) - Recall
- VI_ON (1) - Save (Default Value)
-
- memoryLocation
-
- Variable Type ViInt16
-
- This control specifies the instrument's memory location to/from which
- to save/recall the instrument's settings.
-
- Valid Range:
- Dependent upon the "Save/Recall" control setting:
- Recall: 0 - 20
- Save: 1 - 20
-
- Default Value: 1
-
- Notes:
-
- (1) The current instrument state is saved in register 0 when a
- setting is recalled from memory.
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Save/Recall) out of range.
- BFFC0003 Parameter 3 (Memory_Location) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_selfTest
-
- ViStatus hp5313xa_selfTest (ViSession instrumentHandle, ViInt16 *selfTestResult,
- ViChar selfTestMessage[]);
-
- Purpose
-
- This function runs the instrument's self test routine and returns the
- test result(s).
-
- Notes:
-
- (1) If this instrument does not support a Self-Test, this function should
- return the Warning Code 0x3FFC0103 - VI_WARN_NSUP_SELF_TEST
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- selfTestResult
-
- Variable Type ViInt16 (passed by reference)
-
- This control contains the value returned from the instrument self
- test. Zero means success. For any other code, see the device's
- operator's manual.
-
-
- selfTestMessage
-
- Variable Type ViChar[]
-
- This control contains the string returned from the self test. See the
- device's operation manual for an explanation of the string's
- contents.
-
- Notes:
-
- (1) The array must contain at least 256 elements ViChar[256].
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFC0103 Self Test not supported - VI_WARN_NSUP_SELF_TEST
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_setSrqCond
-
- ViStatus hp5313xa_setSrqCond (ViSession instrumentHandle, ViInt16 SRQCondition);
-
- Purpose
-
- This function sets the condition at which the service request (SRQ) bit
- will be set.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- SRQCondition
-
- Variable Type ViInt16
-
- This control sets the condition at which the service request (SRQ)
- bit will be set.
-
- Valid Range:
- 0 - OPC. Operation complete. (Default Value)
- 1 - Out Of Limit. Data out of Limit.
- 2 - Statistics Done.
-
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (SRQ_Condition) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_statisticsRes
-
- ViStatus hp5313xa_statisticsRes (ViSession instrumentHandle, ViReal64 *mean,
- ViReal64 *stdDeviation, ViReal64 *maximum,
- ViReal64 *minimum);
-
- Purpose
-
- This function reports the statistical results of a block of measurements.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- mean
-
- Variable Type ViReal64 (passed by reference)
-
- This control returns the Mean value of the statistical results.
-
- Notes:
-
- (1) The unit of the measured value is as follows: Seconds(Time),
- Hertz(Frequency), Volts(Voltage), or None.
-
- stdDeviation
-
- Variable Type ViReal64 (passed by reference)
-
- This control returns the Std deviation value of the statistical
- results.
-
- Notes:
- The unit of the measured value is as follows: Seconds(Time),
- Hertz(Frequency), Volts(Voltage), or None.
-
- maximum
-
- Variable Type ViReal64 (passed by reference)
-
- This control returns the Maximum value of the statistical results.
-
- Notes:
-
- (1) The unit of the measured value is as follows: Seconds(Time),
- Hertz(Frequency), Volts(Voltage), or None.
-
- minimum
-
- Variable Type ViReal64 (passed by reference)
-
- This control returns the Minimum value of the statistical results.
-
- Notes:
-
- (1) The unit of the measured value is as follows: Seconds(Time),
- Hertz(Frequency), Volts(Voltage), or None.
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
- 3FFF0803 Interpreting the instrument's response.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_strStpMeas
-
- ViStatus hp5313xa_strStpMeas (ViSession instrumentHandle, ViInt16 executionMode);
-
- Purpose
-
- This function controls the initiation and termination of a measurement.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- executionMode
-
- Variable Type ViInt16
-
- This control controls the initiation and termination of a
- measurement.
-
- Valid Range:
- 0 - Initiate Immediate (Default Value)
- 1 - Initiate Continuous On
- 2 - Initiate Continuous Off
- 3 - Abort
-
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Execution_Mode) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_timWidDuty
-
- ViStatus hp5313xa_timWidDuty (ViSession instrumentHandle,
- ViInt16 selectfunction, ViBoolean selectArming,
- ViBoolean startSlope);
-
- Purpose
-
- This function configures the selected function for measurement. It sets
- the start arming source.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- selectfunction
-
- Variable Type ViInt16
-
- This control selects the function to configure for measurement.
-
- Valid Range:
- 0 - Chan 1 Rise Time. (Default Value)
- 1 - Chan 1 Fall Time.
- 2 - Chan 1 Positive Width.
- 3 - Chan 1 Negative Width.
- 4 - Chan 1 Dutycycle
-
-
-
- selectArming
-
- Variable Type ViBoolean
-
- This control selects the arming mode for the measurement process.
-
- Valid Range:
- VI_OFF (0) - Auto (Default)
- VI_ON (1) - Extern
-
- Notes:
- Below each arming mode is followed by a brief description:
- VI_OFF (0) - Auto.
- Makes individual measurements as fast as possible.
-
- VI_ON (1) - Extern.
- An external signal at Ext Arm (rear-panel) is used to start a
- measurement.
-
- startSlope
-
- Variable Type ViBoolean
-
- This control sets the slope of the external start arm signal used in
- external arming for measurements.
-
- Valid Range:
- VI_OFF (0) - Negative
- VI_ON (1) - Positive (Default Value)
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Select_function) out of range.
- BFFC0003 Parameter 3 (Select_Arming) out of range.
- BFFC0004 Parameter 4 (Start_Slope) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_timeInterval
-
- ViStatus hp5313xa_timeInterval (ViSession instrumentHandle,
- ViBoolean startArming, ViBoolean startSlope,
- ViBoolean stop, ViReal64 timeValue,
- ViBoolean commonMode);
-
- Purpose
-
- This function configures the Time Interval function for measurement. It
- sets the start/stop arming sources.
-
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- startArming
-
- Variable Type ViBoolean
-
- This control selects the arming mode for the measurement process.
-
- Valid Range:
- VI_OFF (0) - Immediate (Default)
- VI_ON (1) - Extern
-
- Notes:
- Below each arming mode is followed by a brief description:
-
- VI_OFF (0) - Immediate.
- Makes individual measurements as fast as possible.
-
- VI_ON (1) - Extern.
- An external signal at Ext Arm (rear-panel) is used to start a
- measurement.
-
- startSlope
-
- Variable Type ViBoolean
-
- This control sets the slope of the external start arm signal used in
- external arming for measurements.
-
- Valid Range:
- VI_OFF (0) - Negative
- VI_ON (1) - Positive (Default Value)
-
-
-
- stop
-
- Variable Type ViBoolean
-
- This control sets the stop arm for Time Interval measurements.
-
- Valid Range:
- VI_OFF (0) - Immediate. (Default Value)
- VI_ON (1) - Timer. Set the time value.
-
-
-
- timeValue
-
- Variable Type ViReal64
-
- This control specifies the gate time used with
- the stop time arming.
-
- Valid Range:
- Short gate time: 100E-5 to 999E-5 Seconds.
- Long gate time: 10E-3 to 10.000 Seconds.
-
- Default Value: 10.0
-
- commonMode
-
- Variable Type ViBoolean
-
- This control enables or disables (separates) the common mode used in
- time interval measurements.
-
- Valid Range:
- VI_OFF (0) - Disable
- VI_ON (1) - Enable (Default Value)
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Start_Arming) out of range.
- BFFC0003 Parameter 3 (Start_Slope) out of range.
- BFFC0004 Parameter 4 (Stop) out of range.
- BFFC0005 Parameter 5 (Time_Value) out of range.
- BFFC0006 Parameter 6 (Common_Mode) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_totalize
-
- ViStatus hp5313xa_totalize (ViSession instrumentHandle, ViInt16 selectArming,
- ViReal64 timeValue, ViBoolean startSlope,
- ViInt16 stop);
-
- Purpose
-
- This function configures the Totalize function for measurement. It sets
- the start/stop arming sources.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- selectArming
-
- Variable Type ViInt16
-
- This control selects the arming mode for the measurement process.
-
- Valid Range:
- 0 - Auto (Default)
- 1 - Time
- 2 - Extern
-
- Notes:
- Below each arming mode is followed by a brief description:
-
- 0 - Auto. Makes individual measurements as fast as possible.
-
- 1 - Time. Sets the length of time for which the signal is
- measured.
-
- 2 - Extern. An external signal at Ext Arm (rear-panel) is used
- to start a measurement.
-
- timeValue
-
- Variable Type ViReal64
-
- This control specifies the gate time used with time arming.
-
- Valid Range:
- 100E-5 to 999E-5 Seconds.(Short gate time) or 10E-3 to 1000.000
- Seconds. (Long gate time)
-
- Default Value: 10.0 Sec
-
- startSlope
-
- Variable Type ViBoolean
-
- This control sets the slope of the external start arm signal used in
- external arming for measurements.
-
- Valid Range:
- VI_OFF (0) - Negative
- VI_ON (1) - Positive (Default Value)
-
-
-
- stop
-
- Variable Type ViInt16
-
- This control sets the external stop arm signal used in external
- arming for measurements.
-
- Valid Range:
- 0 - Negative Slope.(Default Value)
- 1 - Positive Slope.
- 2 - Timer. Set the time value.
-
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Select_Arming) out of range.
- BFFC0003 Parameter 3 (Time_Value) out of range.
- BFFC0004 Parameter 4 (Start_Slope) out of range.
- BFFC0005 Parameter 5 (Stop) out of range.
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_trigSens
-
- ViStatus hp5313xa_trigSens (ViSession instrumentHandle, ViInt16 channel,
- ViBoolean triggerLevel, ViReal64 voltageLevel,
- ViBoolean attenuation, ViBoolean triggerSlope,
- ViInt16 sensitivity);
-
- Purpose
-
- This function sets the Trigger Level/Sensitivity for the selected
- channel.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- channel
-
- Variable Type ViInt16
-
- This control selects the channel for which to set the trigger and
- sensitivity.
-
- Valid Range:
- 1 - Channel 1 (Default Value)
- 2 - Channel 2
-
- triggerLevel
-
- Variable Type ViBoolean
-
- This control selects the type of triggering level for the selected
- channel.
-
- Valid Range:
- VI_OFF (0) - Relative
- VI_ON (1) - Absolute (Default Value)
-
-
- voltageLevel
-
- Variable Type ViReal64
-
- This control specifies the center of the hystersis window when the
- absolute triggering level is used. If relative triggering is
- selected, this control specifies the percentage of the peak-to-peak
- range of the signal at which the instrument auto triggers.
-
- Valid Range:
- Dependent upon the trigger level's type:
- (1) Absolute
- Dependent upon the attenuation:
- 1X: -5.125 to +5.125 Volts
- 10X: -51.25 t0 +51.25 Volts
-
- (2) Relative
- 0% to 100% (Integers Only)
-
- Default Value: 0.0
-
- attenuation
-
- Variable Type ViBoolean
-
- This control selects the input attenuation for the selected channel.
-
- Valid Range:
- VI_OFF (0) - 1X
- VI_ON (1) - 10X (Default Value)
-
- triggerSlope
-
- Variable Type ViBoolean
-
- This control sets which edge of the input signal will be considered
- an event for Frequency, Frequency Ratio, Time Interval, Totalize, and
- Phase measurements.
-
- Valid Range:
- VI_OFF (0) - Negative
- VI_ON (1) - Positive (Default Value)
-
- sensitivity
-
- Variable Type ViInt16
-
- This control sets the size of the hysteresis window as a percentage
- of allowable hysteresis.
-
- Valid Range:
- 0 - Low (0%) (Default Value)
- 1 - Medium (50%)
- 2 - High (100%)
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFC0002 Parameter 2 (Channel) out of range.
- BFFC0003 Parameter 3 (Trigger_Level) out of range.
- BFFC0004 Parameter 4 (Voltage_Level) out of range.
- BFFC0005 Parameter 5 (Attenuation) out of range.
- BFFC0006 Parameter 6 (Trigger_Slope) out of range.
- BFFC0007 Parameter 7 (Sensitivity) out of range.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_waitSrq
-
- ViStatus hp5313xa_waitSrq (ViSession instrumentHandle);
-
- Purpose
-
- This function waits until the SRQ bit is set.
-
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
- ________________________________________________________________________________
-
- hp5313xa_writeInstrData
-
- ViStatus hp5313xa_writeInstrData (ViSession instrumentHandle,
- ViString writeBuffer);
-
- Purpose
-
- This function writes commands and queries to the instrument to modify
- parameters and query device settings.
-
- Parameter List
-
- instrumentHandle
-
- Variable Type ViSession
-
- This control accepts the Instrument Handle returned by the Initialize
- function to select the desired instrument driver session.
-
- Default Value: None
-
- writeBuffer
-
- Variable Type ViString
-
- The user can use this control to send common commands and queries to
- the instrument. This control can also be used to write any valid
- command to the instrument.
-
- Default Value: "*RST"
-
- Notes:
-
- (1) The command or query to be sent to the instrument may be a
- literal enclosed in double quotes i.e. "*RST" or may be contained in
- a variable of type string.
-
-
- Return Value
-
- This control contains the status code returned by the function call.
-
- Status Codes:
-
- Status Description
- -------------------------------------------------
- 0 No error (the call was successful).
-
- 3FFF0005 The specified termination character was read.
- 3FFF0006 The specified number of bytes was read.
-
- BFFF0000 Miscellaneous or system error occurred.
- BFFF000E Invalid session handle.
- BFFF0015 Timeout occurred before operation could complete.
- BFFF0034 Violation of raw write protocol occurred.
- BFFF0035 Violation of raw read protocol occurred.
- BFFF0036 Device reported an output protocol error.
- BFFF0037 Device reported an input protocol error.
- BFFF0038 Bus error occurred during transfer.
- BFFF003A Invalid setup (attributes are not consistent).
- BFFF005F No listeners condition was detected.
- BFFF0060 This interface is not the controller in charge.
- BFFF0067 Operation is not supported on this session.
-
-