home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 September / CHIP_CD_1997_09_PL.iso / software / testsoft / labwind / demo.6 / main / instr / hp34401a.doc < prev    next >
Encoding:
Text File  |  1996-08-02  |  103.6 KB  |  2,898 lines

  1.  
  2.                         HP 34401A Multimeter (VISA I/O)
  3. ________________________________________________________________________________
  4.  
  5.   Introduction:
  6.  
  7.   This instrument driver provides programming support for the HP 34401A Multimeter
  8.   (VISA I/O).  It contains functions for opening, configuring, taking measurements from,
  9.   and closing the instrument.
  10.  
  11. ________________________________________________________________________________
  12.  
  13.   Assumptions:
  14.  
  15.   To successfully use this module, the following conditions must be met:
  16.  
  17.          -  the instrument is connected to the GPIB.
  18.          -  the GPIB address supplied to the initialize function must match the
  19.             GPIB address of the instrument.
  20.  
  21. ________________________________________________________________________________
  22.  
  23.   Error Codes:
  24.  
  25.   Error codes are returned as the return value of each instrument driver
  26.   function. A program should examine this value after each call to an instrument
  27.   driver function to determine if any error occurred. Possible error codes and
  28.   their meanings are listed with the corresponding instrument driver function.
  29.  
  30. ________________________________________________________________________________
  31.  
  32.   How To Use This Document:
  33.  
  34.   This document is intended to be used as a programming reference manual.
  35.   It describes each function in the HP 34401A Multimeter (VISA I/O)
  36.   instrument driver. The functions are listed in alphabetical order with a
  37.   description of the function, C syntax of the function, a description of each
  38.   parameter, and possible error codes.
  39.  
  40. ________________________________________________________________________________
  41.  
  42. Function Tree Layout:
  43.  
  44.    HP 34401A Multimeter (VISA I/O)        Function Name:
  45.  
  46.       Initialize                                  hp34401a_init
  47.       Configuration Functions
  48.          Configure                                hp34401a_conf
  49.          Trigger                                  hp34401a_confTrig
  50.          Low Level Configure
  51.             Aperture Time                         hp34401a_confAperTime
  52.             Integration Time                      hp34401a_confIntegratTime
  53.             Miscellaneous                         hp34401a_confMisc
  54.       Action/Status Functions:
  55.          Wait for Trigger                         hp34401a_waitForTrigger
  56.          Software Trigger                         hp34401a_softTrig
  57.          Abort Measurement                        hp34401a_abortMeas
  58.          Beeper                                   hp34401a_beeper
  59.       Data Functions
  60.          Single Measurement                       hp34401a_singleMeas
  61.          Multiple Measurements                    hp34401a_multiMeas
  62.          Active Math Operation                    hp34401a_actMathOp
  63.          Fetch Measurements                       hp34401a_fetchMeas
  64.          Null Operation                           hp34401a_confNull
  65.          dB Measurements                          hp34401a_confDbMeas
  66.          dBm Measurements                         hp34401a_confDbmMeas
  67.          Limit Testing                            hp34401a_confLimitTest
  68.       Utility Functions
  69.          Display                                  hp34401a_display
  70.          Query Terminals                          hp34401a_checkTerminals
  71.          Query SCPI Version                       hp34401a_checkScpiVersion
  72.          Write To Instrument                      hp34401a_writeInstrData
  73.          Read Instrument Data                     hp34401a_readInstrData
  74.          Reset                                    hp34401a_reset
  75.          Self-Test                                hp34401a_selfTest
  76.          Error-Query                              hp34401a_errorQuery
  77.          Error Message                            hp34401a_errorMessage
  78.          Revision Query                           hp34401a_revisionQuery
  79.          Calibration
  80.             Secure/Unsecure                       hp34401a_calSecure
  81.             Security Code                         hp34401a_calCode
  82.             Stamp                                 hp34401a_calStamp
  83.             Calibrate                             hp34401a_calibrate
  84.       Close                                       hp34401a_close
  85. ________________________________________________________________________________
  86.  
  87.   HP 34401A Multimeter (VISA I/O)
  88.  
  89.       This instrument module provides programming support for the HP 34401A.
  90.       The module is divided into the following functions:
  91.       
  92.       Functions/Classes:
  93.       
  94.       (1) Initialize:
  95.       This function initializes the instrument and sets it to a default
  96.       configuration.
  97.       
  98.       (2) Configuration Functions: (Class)
  99.       This class of functions configures the instrument by setting acquisition
  100.       and system configuration parameters.
  101.       
  102.       (3) Action/Status Functions: (Class)
  103.       This class of functions begins or terminates an acquisition. It also
  104.       provides functions which allow the user to determine the current status
  105.       of the instrument.
  106.       
  107.       (4) Data Functions: (Class)
  108.       This class of functions transfers data to or from the instrument.
  109.       
  110.       (6) Utility Functions: (Class)
  111.       This class of functions provides lower level functions to communicate
  112.       with the instrument, and change instrument parameters.
  113.       
  114.       (7) Close:
  115.       This function takes the instrument offline.
  116.       
  117. ________________________________________________________________________________
  118.  
  119.               The following functions are in alphabetical order.
  120.  
  121. ________________________________________________________________________________
  122.  
  123.   hp34401a_abortMeas
  124.  
  125.       ViStatus hp34401a_abortMeas (ViSession instrumentHandle);
  126.  
  127.   Purpose
  128.  
  129.       Takes the instrument from the wait-for-trigger state to the idle
  130.       state. This function can be used to abort a measurement.
  131.       
  132.  
  133.   Parameter List
  134.  
  135.       instrumentHandle
  136.  
  137.           Variable Type       ViSession
  138.  
  139.           This control accepts the Instrument Handle returned by the Initialize
  140.           function to select the desired instrument driver session.
  141.           
  142.           Default Value:  None
  143.  
  144.   Return Value
  145.  
  146.           This control contains the status code returned by the function call.
  147.           
  148.           Status Codes:
  149.           
  150.           Status    Description
  151.           -------------------------------------------------
  152.                  0  No error (the call was successful).
  153.           
  154.           3FFF0005  The specified termination character was read.
  155.           3FFF0006  The specified number of bytes was read.
  156.           
  157.           BFFF0000  Miscellaneous or system error occurred.
  158.           BFFF000E  Invalid session handle.
  159.           BFFF0015  Timeout occurred before operation could complete.
  160.           BFFF0034  Violation of raw write protocol occurred.
  161.           BFFF0035  Violation of raw read protocol occurred.
  162.           BFFF0036  Device reported an output protocol error.
  163.           BFFF0037  Device reported an input protocol error.
  164.           BFFF0038  Bus error occurred during transfer.
  165.           BFFF003A  Invalid setup (attributes are not consistent).
  166.           BFFF005F  No listeners condition was detected.
  167.           BFFF0060  This interface is not the controller in charge.
  168.           BFFF0067  Operation is not supported on this session.
  169.           
  170. ________________________________________________________________________________
  171.  
  172.   hp34401a_actMathOp
  173.  
  174.       ViStatus hp34401a_actMathOp (ViSession instrumentHandle, ViInt16 mathOperation,
  175.                                    ViBoolean state);
  176.  
  177.   Purpose
  178.  
  179.       Activates the selected math operation.
  180.       
  181.  
  182.   Parameter List
  183.  
  184.       instrumentHandle
  185.  
  186.           Variable Type       ViSession
  187.  
  188.           This control accepts the Instrument Handle returned by the Initialize
  189.           function to select the desired instrument driver session.
  190.           
  191.           Default Value:  None
  192.  
  193.       mathOperation
  194.  
  195.           Variable Type       ViInt16
  196.  
  197.           Activates the selected Math Operation.
  198.           
  199.           Valid Range:
  200.           0 = Null Operation (Default)
  201.           1 = Min-Max Operation
  202.           2 = dB Measurements
  203.           3 = dBm Measurements
  204.           4 = Limit Testing
  205.           
  206.           
  207.  
  208.       state
  209.  
  210.           Variable Type       ViBoolean
  211.  
  212.           Enables/Disables the specified operation.
  213.           
  214.           Valid Range:
  215.           VI_OFF (0) = Off (Default)
  216.           VI_ON  (1) = On
  217.           
  218.           
  219.  
  220.   Return Value
  221.  
  222.           This control contains the status code returned by the function call.
  223.           
  224.           Status Codes:
  225.           
  226.           Status    Description
  227.           -------------------------------------------------
  228.                  0  No error (the call was successful).
  229.           3FFF0005  The specified termination character was read.
  230.           3FFF0006  The specified number of bytes was read.
  231.           
  232.           BFFC0002  Math Operation out of range
  233.           BFFC0003  State out of range
  234.           
  235.           BFFC0000  Miscellaneous or system error occurred.
  236.           BFFF000E  Invalid session handle.
  237.           BFFF0015  Timeout occurred before operation could complete.
  238.           BFFF0034  Violation of raw write protocol occurred.
  239.           BFFF0035  Violation of raw read protocol occurred.
  240.           BFFF0036  Device reported an output protocol error.
  241.           BFFF0037  Device reported an input protocol error.
  242.           BFFF0038  Bus error occurred during transfer.
  243.           BFFF003A  Invalid setup (attributes are not consistent).
  244.           BFFF005F  No listeners condition was detected.
  245.           BFFF0060  This interface is not the controller in charge.
  246.           BFFF0067  Operation is not supported on this session.
  247.           
  248. ________________________________________________________________________________
  249.  
  250.   hp34401a_beeper
  251.  
  252.       ViStatus hp34401a_beeper (ViSession instrumentHandle, ViBoolean beeperState,
  253.                                 ViBoolean beep);
  254.  
  255.   Purpose
  256.  
  257.       Configures the beeper on the instrument.
  258.       
  259.       Notes:
  260.       (1) When you disable the beeper, the instrument will not emit a tone
  261.       when:
  262.       
  263.         1) A new min or max is found in a min-max test
  264.         2) A stable reading is captured in the reading
  265.            hold mode
  266.         3) A limit is exceeded in a limit test
  267.         4) A forward biased diode is measured in diode
  268.            test
  269.       
  270.       Disabling the beeper has no effect on the tone generated when:
  271.         1) An error is generated
  272.         2) The continuity threshold is exceeded
  273.         3) You turn off the front panel menu
  274.       
  275.       (2) The state of the beeper is stored in non-volatile, and does not
  276.       change when power has been off or after a reset.
  277.       
  278.  
  279.   Parameter List
  280.  
  281.       instrumentHandle
  282.  
  283.           Variable Type       ViSession
  284.  
  285.           This control accepts the Instrument Handle returned by the Initialize
  286.           function to select the desired instrument driver session.
  287.           
  288.           Default Value:  None
  289.  
  290.       beeperState
  291.  
  292.           Variable Type       ViBoolean
  293.  
  294.           Enables/Disables the beeper on the instrument.
  295.           
  296.           Valid Range:
  297.           VI_OFF (0) - Off
  298.           VI_ON  (1) - On (Default)
  299.           
  300.           
  301.  
  302.       beep
  303.  
  304.           Variable Type       ViBoolean
  305.  
  306.           Instructs the instrument to emit a
  307.           
  308.           Valid Range:
  309.           VI_OFF (0) - No (Default)
  310.           VI_ON  (1) - Yes
  311.           
  312.           
  313.  
  314.   Return Value
  315.  
  316.           This control contains the status code returned by the function call.
  317.           
  318.           Status Codes:
  319.           
  320.           Status    Description
  321.           -------------------------------------------------
  322.                  0  No error (the call was successful).
  323.           
  324.           3FFF0005  The specified termination character was read.
  325.           3FFF0006  The specified number of bytes was read.
  326.           
  327.           BFFC0002  Parameter 2 (Beeper State) out of range.
  328.           BFFC0003  Parameter 3 (Beep) out of range.
  329.           
  330.           BFFF0000  Miscellaneous or system error occurred.
  331.           BFFF0002  Beeper State out of range
  332.           BFFF0003  Beep out of range
  333.           BFFF000E  Invalid session handle.
  334.           BFFF0015  Timeout occurred before operation could complete.
  335.           BFFF0034  Violation of raw write protocol occurred.
  336.           BFFF0035  Violation of raw read protocol occurred.
  337.           BFFF0036  Device reported an output protocol error.
  338.           BFFF0037  Device reported an input protocol error.
  339.           BFFF0038  Bus error occurred during transfer.
  340.           BFFF003A  Invalid setup (attributes are not consistent).
  341.           BFFF005F  No listeners condition was detected.
  342.           BFFF0060  This interface is not the controller in charge.
  343.           BFFF0067  Operation is not supported on this session.
  344.           
  345. ________________________________________________________________________________
  346.  
  347.   hp34401a_calCode
  348.  
  349.       ViStatus hp34401a_calCode (ViSession instrumentHandle, char newSecurityCode[]);
  350.  
  351.   Purpose
  352.  
  353.       Allows the user to change the security code to prevent accidental or
  354.       unauthorized calibrations of the instrument.
  355.       The security code is stored in non-volatile memory, and does not change
  356.       when power has been off or after a reset.
  357.       
  358.       Notes:
  359.       (1) The instrument must first be unsecured before entering the new
  360.       security code.
  361.       
  362.       (2) If the user forgets the security code, the security feature can be
  363.       disabled by adding a jumper inside the multimeter, and then entering a
  364.       new code. See the Instrument Service Guide for more information.
  365.       
  366.  
  367.   Parameter List
  368.  
  369.       instrumentHandle
  370.  
  371.           Variable Type       ViSession
  372.  
  373.           This control accepts the Instrument Handle returned by the Initialize
  374.           function to select the desired instrument driver session.
  375.           
  376.           Default Value:  None
  377.  
  378.       newSecurityCode
  379.  
  380.           Variable Type       char []
  381.  
  382.           Configures the new security code.The security code can be up to 12
  383.           alphanumeric characters. If calibration is going to be secured and
  384.           unsecured from the remote interface only, then the first character
  385.           must be a letter, but the remaining characters can be letters or
  386.           numbers. You do not have to use all 12 characters. If calibration is
  387.           going to be secured and unsecured from the remote interface and the
  388.           front panel of the instrument, then an eight character security code
  389.           should be used. The first two characters must be "HP" and the
  390.           remaining characters must be numbers. Only the last six characters
  391.           are recognized from the front panel, but all eight characters are
  392.           required. (To unsecure the multimeter from the front panel, omit the
  393.           "HP" and enter the remaining numbers.)
  394.           
  395.           Note: The security code is set to "HP034401" when the instrument is
  396.           shipped from the factory. Only the last six characters ("034401") are
  397.           recognized from the front panel.
  398.  
  399.   Return Value
  400.  
  401.           This control contains the status code returned by the function call.
  402.           
  403.           Status Codes:
  404.           
  405.           Status    Description
  406.           -------------------------------------------------
  407.                  0  No error (the call was successful).
  408.           
  409.           3FFF0005  The specified termination character was read.
  410.           3FFF0006  The specified number of bytes was read.
  411.           
  412.           BFFC0002  Parameter 2 (New Security Code) too long
  413.           
  414.           BFFF0000  Miscellaneous or system error occurred.
  415.           BFFF000E  Invalid session handle.
  416.           BFFF0015  Timeout occurred before operation could complete.
  417.           BFFF0034  Violation of raw write protocol occurred.
  418.           BFFF0035  Violation of raw read protocol occurred.
  419.           BFFF0036  Device reported an output protocol error.
  420.           BFFF0037  Device reported an input protocol error.
  421.           BFFF0038  Bus error occurred during transfer.
  422.           BFFF003A  Invalid setup (attributes are not consistent).
  423.           BFFF005F  No listeners condition was detected.
  424.           BFFF0060  This interface is not the controller in charge.
  425.           BFFF0067  Operation is not supported on this session.
  426.           
  427. ________________________________________________________________________________
  428.  
  429.   hp34401a_calSecure
  430.  
  431.       ViStatus hp34401a_calSecure (ViSession instrumentHandle, ViChar securityCode[],
  432.                                    ViBoolean calibration);
  433.  
  434.   Purpose
  435.  
  436.       Secures\Unsecures the instrument for calibration.
  437.       
  438.       Notes:
  439.       (1) When the instrument is shipped from the factory it is secured against
  440.       calibrations. Before it can be calibrated, it must first be unsecured by
  441.       entering the correct security code.
  442.       
  443.  
  444.   Parameter List
  445.  
  446.       instrumentHandle
  447.  
  448.           Variable Type       ViSession
  449.  
  450.           This control accepts the Instrument Handle returned by the Initialize
  451.           function to select the desired instrument driver session.
  452.           
  453.           Default Value:  None
  454.  
  455.       securityCode
  456.  
  457.           Variable Type       ViChar[]
  458.  
  459.           Accepts the security code to secure or unsecure the instrument.
  460.           
  461.           Note:
  462.           The security code is set to "HP034401" when the instrument is shipped
  463.           from the factory. Only the last six characters ("034401") are
  464.           recognized from the front panel.
  465.           
  466.           
  467.  
  468.       calibration
  469.  
  470.           Variable Type       ViBoolean
  471.  
  472.           Secures or Unsecures the instrument against calibrations.
  473.           
  474.           Valid Range:
  475.           VI_OFF (0) - Unsecure
  476.           VI_ON  (1) - Secure (Default)
  477.           
  478.           
  479.  
  480.   Return Value
  481.  
  482.           This control contains the status code returned by the function call.
  483.           
  484.           Status Codes:
  485.           
  486.           Status    Description
  487.           -------------------------------------------------
  488.                  0  No error (the call was successful).
  489.           
  490.           3FFF0005  The specified termination character was read.
  491.           3FFF0006  The specified number of bytes was read.
  492.           
  493.           BFFC0002  Parameter 2 (Security Code) too long
  494.           BFFC0003  Parameter 3 (Cal Secure/Unsecure) out of range
  495.           
  496.           BFFF0000  Miscellaneous or system error occurred.
  497.           BFFF000E  Invalid session handle.
  498.           BFFF0015  Timeout occurred before operation could complete.
  499.           BFFF0034  Violation of raw write protocol occurred.
  500.           BFFF0035  Violation of raw read protocol occurred.
  501.           BFFF0036  Device reported an output protocol error.
  502.           BFFF0037  Device reported an input protocol error.
  503.           BFFF0038  Bus error occurred during transfer.
  504.           BFFF003A  Invalid setup (attributes are not consistent).
  505.           BFFF005F  No listeners condition was detected.
  506.           BFFF0060  This interface is not the controller in charge.
  507.           BFFF0067  Operation is not supported on this session.
  508.           
  509. ________________________________________________________________________________
  510.  
  511.   hp34401a_calStamp
  512.  
  513.       ViStatus hp34401a_calStamp (ViSession instrumentHandle, ViChar stamp[]);
  514.  
  515.   Purpose
  516.  
  517.       Allows the user to store a string in nonvolatile calibration memory of
  518.       the instrument. This string can be used for any application the user
  519.       desires. One useful application is to store a calibration stamp
  520.       specifying the date of the last calibration.
  521.       
  522.  
  523.   Parameter List
  524.  
  525.       instrumentHandle
  526.  
  527.           Variable Type       ViSession
  528.  
  529.           This control accepts the Instrument Handle returned by the Initialize
  530.           function to select the desired instrument driver session.
  531.           
  532.           Default Value:  None
  533.  
  534.       stamp
  535.  
  536.           Variable Type       ViChar[]
  537.  
  538.           String to be saved in nonvolatile calibration memory of the
  539.           instrument.  The calibration stamp can be up to 40 characters, but
  540.           the front panel will only display the first 12. All forty characters
  541.           can be read by the remote interface.
  542.           
  543.           
  544.  
  545.   Return Value
  546.  
  547.           This control contains the status code returned by the function call.
  548.           
  549.           Status Codes:
  550.           
  551.           Status    Description
  552.           -------------------------------------------------
  553.                  0  No error (the call was successful).
  554.           
  555.           3FFF0005  The specified termination character was read.
  556.           3FFF0006  The specified number of bytes was read.
  557.           
  558.           BFFC0002  Parameter 2 (Stamp) too long.
  559.           
  560.           BFFF0000  Miscellaneous or system error occurred.
  561.           BFFF000E  Invalid session handle.
  562.           BFFF0015  Timeout occurred before operation could complete.
  563.           BFFF0034  Violation of raw write protocol occurred.
  564.           BFFF0035  Violation of raw read protocol occurred.
  565.           BFFF0036  Device reported an output protocol error.
  566.           BFFF0037  Device reported an input protocol error.
  567.           BFFF0038  Bus error occurred during transfer.
  568.           BFFF003A  Invalid setup (attributes are not consistent).
  569.           BFFF005F  No listeners condition was detected.
  570.           BFFF0060  This interface is not the controller in charge.
  571.           BFFF0067  Operation is not supported on this session.
  572.           
  573. ________________________________________________________________________________
  574.  
  575.   hp34401a_calibrate
  576.  
  577.       ViStatus hp34401a_calibrate (ViSession instrumentHandle,
  578.                                    ViReal64 calibrationValue,
  579.                                    ViInt16 *calibrationCode);
  580.  
  581.   Purpose
  582.  
  583.       Performs a full calibration of the instrument. For the user the actual
  584.       value of the calibration result is of minor interest. The main
  585.       distinction here is 'zero or non-zero'. However, the actual value should
  586.       be reported to the service people.
  587.       
  588.  
  589.   Parameter List
  590.  
  591.       instrumentHandle
  592.  
  593.           Variable Type       ViSession
  594.  
  595.           This control accepts the Instrument Handle returned by the Initialize
  596.           function to select the desired instrument driver session.
  597.           
  598.           Default Value:  None
  599.  
  600.       calibrationValue
  601.  
  602.           Variable Type       ViReal64
  603.  
  604.           The voltage connected to the  instrument is used as a reference for
  605.           calibration. The value of this voltage must be entered in this
  606.           control.
  607.           
  608.           Default:       0.0
  609.           
  610.  
  611.       calibrationCode
  612.  
  613.           Variable Type       ViInt16 (passed by reference)
  614.  
  615.           Returns the result of the calibration.
  616.           
  617.           Valid Range:
  618.           
  619.           0 - No error detected during calibration
  620.           
  621.           (See Instrument Manual for non-zero codes)
  622.           
  623.  
  624.   Return Value
  625.  
  626.           This control contains the status code returned by the function call.
  627.           
  628.           Status Codes:
  629.           
  630.           Status    Description
  631.           -------------------------------------------------
  632.                  0  No error (the call was successful).
  633.           
  634.           3FFF0005  The specified termination character was read.
  635.           3FFF0006  The specified number of bytes was read.
  636.           
  637.           BFFC0803  Error Scanning Response
  638.           
  639.           BFFF0000  Miscellaneous or system error occurred.
  640.           BFFF000E  Invalid session handle.
  641.           BFFF0015  Timeout occurred before operation could complete.
  642.           BFFF0034  Violation of raw write protocol occurred.
  643.           BFFF0035  Violation of raw read protocol occurred.
  644.           BFFF0036  Device reported an output protocol error.
  645.           BFFF0037  Device reported an input protocol error.
  646.           BFFF0038  Bus error occurred during transfer.
  647.           BFFF003A  Invalid setup (attributes are not consistent).
  648.           BFFF005F  No listeners condition was detected.
  649.           BFFF0060  This interface is not the controller in charge.
  650.           BFFF0067  Operation is not supported on this session.
  651.           
  652. ________________________________________________________________________________
  653.  
  654.   hp34401a_checkScpiVersion
  655.  
  656.       ViStatus hp34401a_checkScpiVersion (ViSession instrumentHandle, ViInt16 *year,
  657.                                           ViInt16 *versionNumber);
  658.  
  659.   Purpose
  660.  
  661.       Checks the Standard Commands for Programmable Instruments (SCPI) language
  662.       version.
  663.       
  664.  
  665.   Parameter List
  666.  
  667.       instrumentHandle
  668.  
  669.           Variable Type       ViSession
  670.  
  671.           This control accepts the Instrument Handle returned by the Initialize
  672.           function to select the desired instrument driver session.
  673.           
  674.           Default Value:  None
  675.  
  676.       year
  677.  
  678.           Variable Type       ViInt16 (passed by reference)
  679.  
  680.           Returns the year of the SCPI Version.
  681.           
  682.  
  683.       versionNumber
  684.  
  685.           Variable Type       ViInt16 (passed by reference)
  686.  
  687.           Returns the SCPI version number. This version number and the year
  688.           uniquely identify the SCPI Release.
  689.           
  690.  
  691.   Return Value
  692.  
  693.           This control contains the status code returned by the function call.
  694.           
  695.           Status Codes:
  696.           
  697.           Status    Description
  698.           -------------------------------------------------
  699.                  0  No error (the call was successful).
  700.           
  701.           3FFF0005  The specified termination character was read.
  702.           3FFF0006  The specified number of bytes was read.
  703.           
  704.           BFFC0803  Error Scanning Response.
  705.           
  706.           BFFF0000  Miscellaneous or system error occurred.
  707.           BFFF000E  Invalid session handle.
  708.           BFFF0015  Timeout occurred before operation could complete.
  709.           BFFF0034  Violation of raw write protocol occurred.
  710.           BFFF0035  Violation of raw read protocol occurred.
  711.           BFFF0036  Device reported an output protocol error.
  712.           BFFF0037  Device reported an input protocol error.
  713.           BFFF0038  Bus error occurred during transfer.
  714.           BFFF003A  Invalid setup (attributes are not consistent).
  715.           BFFF005F  No listeners condition was detected.
  716.           BFFF0060  This interface is not the controller in charge.
  717.           BFFF0067  Operation is not supported on this session.
  718.           
  719. ________________________________________________________________________________
  720.  
  721.   hp34401a_checkTerminals
  722.  
  723.       ViStatus hp34401a_checkTerminals (ViSession instrumentHandle,
  724.                                         ViInt16 *terminals);
  725.  
  726.   Purpose
  727.  
  728.       Checks whether the front or rear terminals on the instrument are being
  729.       used. Any measurement made using the front terminals can also be made
  730.       using the input terminals on the rear panel.
  731.       
  732.       Notes:
  733.       (1) The input terminals can only be configured from the front panel; the
  734.       user cannot select the front or rear terminals from the remote interface,
  735.       but can query the present setting.
  736.       
  737.  
  738.   Parameter List
  739.  
  740.       instrumentHandle
  741.  
  742.           Variable Type       ViSession
  743.  
  744.           This control accepts the Instrument Handle returned by the Initialize
  745.           function to select the desired instrument driver session.
  746.           
  747.           Default Value:  None
  748.  
  749.       terminals
  750.  
  751.           Variable Type       ViInt16 (passed by reference)
  752.  
  753.           Returns whether the front or rear input terminals are presently being
  754.           used.
  755.           
  756.           Valid Range:
  757.           0 = Rear
  758.           1 = Front
  759.  
  760.   Return Value
  761.  
  762.           This control contains the status code returned by the function call.
  763.           
  764.           Status Codes:
  765.           
  766.           Status    Description
  767.           -------------------------------------------------
  768.                  0  No error (the call was successful).
  769.           
  770.           3FFF0005  The specified termination character was read.
  771.           3FFF0006  The specified number of bytes was read.
  772.           
  773.           BFFC0803  Error Scanning Response.
  774.           
  775.           BFFF0000  Miscellaneous or system error occurred.
  776.           BFFF000E  Invalid session handle.
  777.           BFFF0015  Timeout occurred before operation could complete.
  778.           BFFF0034  Violation of raw write protocol occurred.
  779.           BFFF0035  Violation of raw read protocol occurred.
  780.           BFFF0036  Device reported an output protocol error.
  781.           BFFF0037  Device reported an input protocol error.
  782.           BFFF0038  Bus error occurred during transfer.
  783.           BFFF003A  Invalid setup (attributes are not consistent).
  784.           BFFF005F  No listeners condition was detected.
  785.           BFFF0060  This interface is not the controller in charge.
  786.           BFFF0067  Operation is not supported on this session.
  787.           
  788. ________________________________________________________________________________
  789.  
  790.   hp34401a_close
  791.  
  792.       ViStatus hp34401a_close (ViSession instrumentHandle);
  793.  
  794.   Purpose
  795.  
  796.       This function performs the following operations:
  797.       viClose (instrSession) and viClose (rmSession).
  798.       
  799.       Notes:
  800.       
  801.       (1) The instrument must be reinitialized to use it again.
  802.       
  803.  
  804.   Parameter List
  805.  
  806.       instrumentHandle
  807.  
  808.           Variable Type       ViSession
  809.  
  810.           This control accepts the Instrument Handle returned by the Initialize
  811.           function to select the desired instrument driver session.
  812.           
  813.           Default Value:  None
  814.  
  815.   Return Value
  816.  
  817.           This control contains the status code returned by the function call.
  818.           
  819.           Status Codes:
  820.           
  821.           Status    Description
  822.           -------------------------------------------------
  823.                  0  No error (the call was successful).
  824.           
  825.           3FFF0005  The specified termination character was read.
  826.           3FFF0006  The specified number of bytes was read.
  827.           
  828.           BFFF0000  Miscellaneous or system error occurred.
  829.           BFFF000E  Invalid session handle.
  830.           BFFF0015  Timeout occurred before operation could complete.
  831.           BFFF0034  Violation of raw write protocol occurred.
  832.           BFFF0035  Violation of raw read protocol occurred.
  833.           BFFF0036  Device reported an output protocol error.
  834.           BFFF0037  Device reported an input protocol error.
  835.           BFFF0038  Bus error occurred during transfer.
  836.           BFFF003A  Invalid setup (attributes are not consistent).
  837.           BFFF005F  No listeners condition was detected.
  838.           BFFF0060  This interface is not the controller in charge.
  839.           BFFF0067  Operation is not supported on this session.
  840.           
  841. ________________________________________________________________________________
  842.  
  843.   hp34401a_conf
  844.  
  845.       ViStatus hp34401a_conf (ViSession instrumentHandle, ViInt16 function,
  846.                               ViBoolean autorange, ViReal64 range, ViInt16 resolution);
  847.  
  848.   Purpose
  849.  
  850.       This function configures the instrument, but does not put the instrument
  851.       in the wait-for-trigger state or take a reading. All instrument settings
  852.       not explicitly set by these functions are configured to the default
  853.       settings pertaining to the specific measurement. These settings can be
  854.       adjusted by the Low-Level Configure functions. Measurements can then be
  855.       taken using the Measure Class functions.
  856.       
  857.  
  858.   Parameter List
  859.  
  860.       instrumentHandle
  861.  
  862.           Variable Type       ViSession
  863.  
  864.           This control accepts the Instrument Handle returned by the Initialize
  865.           function to select the desired instrument driver session.
  866.           
  867.           Default Value:  None
  868.  
  869.       function
  870.  
  871.           Variable Type       ViInt16
  872.  
  873.           Sets the type of measurement to be configured.
  874.           
  875.           Valid Range:
  876.           0 = Voltage AC
  877.           1 = Voltage DC        (Default)
  878.           2 = Voltage DC Ratio
  879.           3 = Current AC
  880.           4 = Current DC
  881.           5 = 2-wire Resistance
  882.           6 = 4-wire Resistance
  883.           7 = Frequency
  884.           8 = Period
  885.           9 = Continuity test
  886.           10 = Diode test
  887.           
  888.           
  889.  
  890.       autorange
  891.  
  892.           Variable Type       ViBoolean
  893.  
  894.           The range can be selected by either using autorange or manually
  895.           selecting a fixed range.
  896.           
  897.           Valid Range:
  898.           VI_OFF (0) - Off
  899.           VI_ON  (1) - On (Default)
  900.           
  901.           Notes:
  902.           Autoranging thresholds are: Down range at < 10% of range Up range at
  903.           < 120% of range
  904.           
  905.           
  906.           
  907.           
  908.  
  909.       range
  910.  
  911.           Variable Type       ViReal64
  912.  
  913.           Configures a fixed measurement range. This control is ignored if
  914.           autorange is enabled. The value entered in this control is used to
  915.           select between the ranges listed below.
  916.           
  917.           Valid Range:
  918.           The multimeter will accept ranges:
  919.           
  920.           Voltage AC          0 - 1000 V
  921.           Voltage DC          0 - 1000 V
  922.           Voltage DC Ratio    0 - Infinite
  923.           Current AC          0 - 3 A
  924.           Current DC          0 - 3 A
  925.           2-wire Resistance   0 - 100M OHMs
  926.           4-wire Resistance   0 - 100M OHMs
  927.           Frequency           3 - 300k   Hz
  928.           Period              0.33 - 3.3µ sec
  929.           
  930.           Default Value: 0.0
  931.           
  932.           Notes:
  933.           (1) If the input signal is greater than the present range can
  934.           measure, the instrument will return a measurement of 9.9e+37 and
  935.           generate an instrument error.
  936.           
  937.  
  938.       resolution
  939.  
  940.           Variable Type       ViInt16
  941.  
  942.           Resolution is expressed in terms of number of digits the instrument
  943.           can measure or display. You can set the resolution to 4, 5, or 6 full
  944.           digits, plus a 1/2 digit (leftmost digit on the display) which can
  945.           only be a "0" or "1". To increase measurement accuracy and improve
  946.           noise rejection, select 6 1/2 digits. To increase measurement speed,
  947.           select 4 1/2 digits.
  948.           
  949.           Valid Range:
  950.           0 = 4 1/2 digits
  951.           1 = 5 1/2 digits (Default)
  952.           2 = 6 1/2 digits
  953.           
  954.           
  955.  
  956.   Return Value
  957.  
  958.           This control contains the status code returned by the function call.
  959.           
  960.           Status Codes:
  961.           
  962.           Status    Description
  963.           -------------------------------------------------
  964.                  0  No error (the call was successful).
  965.           
  966.           3FFF0005  The specified termination character was read.
  967.           3FFF0006  The specified number of bytes was read.
  968.           
  969.           BFFC0002  Parameter 2 (Function) out of range.
  970.           BFFC0003  Parameter 3 (Auto Range) out of range.
  971.           BFFC0004  Parameter 4 (Range) out of range.
  972.           BFFC0005  Parameter 5 (Resolution) out of range.
  973.           
  974.           BFFF0000  Miscellaneous or system error occurred.
  975.           BFFF000E  Invalid session handle.
  976.           BFFF0015  Timeout occurred before operation could complete.
  977.           BFFF0034  Violation of raw write protocol occurred.
  978.           BFFF0035  Violation of raw read protocol occurred.
  979.           BFFF0036  Device reported an output protocol error.
  980.           BFFF0037  Device reported an input protocol error.
  981.           BFFF0038  Bus error occurred during transfer.
  982.           BFFF003A  Invalid setup (attributes are not consistent).
  983.           BFFF005F  No listeners condition was detected.
  984.           BFFF0060  This interface is not the controller in charge.
  985.           BFFF0067  Operation is not supported on this session.
  986.           
  987. ________________________________________________________________________________
  988.  
  989.   hp34401a_confAperTime
  990.  
  991.       ViStatus hp34401a_confAperTime (ViSession instrumentHandle, ViInt16 function,
  992.                                       ViReal64 apertureTime);
  993.  
  994.   Purpose
  995.  
  996.       Configures the aperture time for frequency and period measurements.
  997.       Aperture time for frequency and period is analogous to integration time
  998.       for DC and resistance measurements.
  999.  
  1000.   Parameter List
  1001.  
  1002.       instrumentHandle
  1003.  
  1004.           Variable Type       ViSession
  1005.  
  1006.           This control accepts the Instrument Handle returned by the Initialize
  1007.           function to select the desired instrument driver session.
  1008.           
  1009.           Default Value:  None
  1010.  
  1011.       function
  1012.  
  1013.           Variable Type       ViInt16
  1014.  
  1015.           Specifies the measurement function for which the aperture time will
  1016.           be configured.
  1017.           
  1018.           Valid Range:
  1019.           7 - Frequency (Default)
  1020.           8 - Period
  1021.           
  1022.           
  1023.           
  1024.  
  1025.       apertureTime
  1026.  
  1027.           Variable Type       ViReal64
  1028.  
  1029.           Configures the aperture time.
  1030.           
  1031.           Valid Range:
  1032.            10.0e-3 -  10 msec
  1033.           100.0e-3 - 100 msec (Default)
  1034.             1.0e+0 -   1 sec
  1035.  
  1036.   Return Value
  1037.  
  1038.           This control contains the status code returned by the function call.
  1039.           
  1040.           Status Codes:
  1041.           
  1042.           Status    Description
  1043.           -------------------------------------------------
  1044.           3FFF0005  The specified termination character was read.
  1045.           3FFF0006  The specified number of bytes was read.
  1046.           
  1047.           BFFC0002  Parameter 2 (Measurement Function) out of range.
  1048.           BFFC0003  Parameter 3 (Aperture Time) out of range.
  1049.           
  1050.           BFFF0000  Miscellaneous or system error occurred.
  1051.           BFFF000E  Invalid session handle.
  1052.           BFFF0015  Timeout occurred before operation could complete.
  1053.           BFFF0034  Violation of raw write protocol occurred.
  1054.           BFFF0035  Violation of raw read protocol occurred.
  1055.           BFFF0036  Device reported an output protocol error.
  1056.           BFFF0037  Device reported an input protocol error.
  1057.           BFFF0038  Bus error occurred during transfer.
  1058.           BFFF003A  Invalid setup (attributes are not consistent).
  1059.           BFFF005F  No listeners condition was detected.
  1060.           BFFF0060  This interface is not the controller in charge.
  1061.           BFFF0067  Operation is not supported on this session.
  1062.           
  1063. ________________________________________________________________________________
  1064.  
  1065.   hp34401a_confDbMeas
  1066.  
  1067.       ViStatus hp34401a_confDbMeas (ViSession instrumentHandle, ViReal64 dBReference);
  1068.  
  1069.   Purpose
  1070.  
  1071.       Each dB measurement is the difference between a stored relative value and
  1072.       the input signal converted to dBm.
  1073.       dB = reading in dBm - dB relative value
  1074.       
  1075.       Notes
  1076.       (1) This operation applies to DC voltage and AC voltage measurements
  1077.       only.
  1078.       
  1079.       (2) The db reference value is cleared when you change measurement
  1080.       functions, turn dB off, turn off the power, or perform a reset.
  1081.       
  1082.  
  1083.   Parameter List
  1084.  
  1085.       instrumentHandle
  1086.  
  1087.           Variable Type       ViSession
  1088.  
  1089.           This control accepts the Instrument Handle returned by the Initialize
  1090.           function to select the desired instrument driver session.
  1091.           
  1092.           Default Value:  None
  1093.  
  1094.       dBReference
  1095.  
  1096.           Variable Type       ViReal64
  1097.  
  1098.           Sets the dB Reference value.
  1099.           
  1100.           Valid Range: 0.0 to +- 200.0 dBm
  1101.           
  1102.           Default Value: 0.0
  1103.  
  1104.   Return Value
  1105.  
  1106.           This control contains the status code returned by the function call.
  1107.           
  1108.           Status Codes:
  1109.           
  1110.           Status    Description
  1111.           -------------------------------------------------
  1112.                  0  No error (the call was successful).
  1113.           
  1114.           3FFF0005  The specified termination character was read.
  1115.           3FFF0006  The specified number of bytes was read.
  1116.           
  1117.           BFFC0002  Parameter 2 (dB Reference) out of range.
  1118.           
  1119.           BFFF0000  Miscellaneous or system error occurred.
  1120.           BFFF000E  Invalid session handle.
  1121.           BFFF0015  Timeout occurred before operation could complete.
  1122.           BFFF0034  Violation of raw write protocol occurred.
  1123.           BFFF0035  Violation of raw read protocol occurred.
  1124.           BFFF0036  Device reported an output protocol error.
  1125.           BFFF0037  Device reported an input protocol error.
  1126.           BFFF0038  Bus error occurred during transfer.
  1127.           BFFF003A  Invalid setup (attributes are not consistent).
  1128.           BFFF005F  No listeners condition was detected.
  1129.           BFFF0060  This interface is not the controller in charge.
  1130.           BFFF0067  Operation is not supported on this session.
  1131.           
  1132. ________________________________________________________________________________
  1133.  
  1134.   hp34401a_confDbmMeas
  1135.  
  1136.       ViStatus hp34401a_confDbmMeas (ViSession instrumentHandle, ViInt16 dBmReference);
  1137.  
  1138.   Purpose
  1139.  
  1140.       The dBm operation calculates the power delivered to a resistance
  1141.       referenced to 1 milliwatt.
  1142.       dBm = 10 * Log(reading^2/reference resistance/1mW)
  1143.       
  1144.       Notes
  1145.       (1) This operation applies to DC voltage and AC voltage measurements
  1146.       only.
  1147.       
  1148.       (2) The reference resistance is stored in non-volatile memory, and does
  1149.       not change when power has been off or after a reset.
  1150.       
  1151.  
  1152.   Parameter List
  1153.  
  1154.       instrumentHandle
  1155.  
  1156.           Variable Type       ViSession
  1157.  
  1158.           This control accepts the Instrument Handle returned by the Initialize
  1159.           function to select the desired instrument driver session.
  1160.           
  1161.           Default Value:  None
  1162.  
  1163.       dBmReference
  1164.  
  1165.           Variable Type       ViInt16
  1166.  
  1167.           Control Name:  dBm Reference Resistance
  1168.           
  1169.           Description:   Sets the dBm Reference value.
  1170.           
  1171.           Valid Range:
  1172.           50.0   -   50
  1173.           75.0   -   75
  1174.           93.0   -   93
  1175.           110.0  -  110
  1176.           124.0  -  124
  1177.           125.0  -  125
  1178.           135.0  -  135
  1179.           150.0  -  150
  1180.           250.0  -  250
  1181.           300.0  -  300
  1182.           500.0  -  500
  1183.           600.0  -  600 (Default)
  1184.           800.0  -  800
  1185.           900.0  -  900
  1186.           1000.0 - 1000
  1187.           1200.0 - 1200
  1188.           8000.0 - 8000 ohms
  1189.           
  1190.  
  1191.   Return Value
  1192.  
  1193.           This control contains the status code returned by the function call.
  1194.           
  1195.           Status Codes:
  1196.           
  1197.           Status    Description
  1198.           -------------------------------------------------
  1199.                  0  No error (the call was successful).
  1200.           
  1201.           3FFF0005  The specified termination character was read.
  1202.           3FFF0006  The specified number of bytes was read.
  1203.           
  1204.           BFFC0002  Parameter 2 (dBm Reference) out of range.
  1205.           
  1206.           BFFF0000  Miscellaneous or system error occurred.
  1207.           BFFF000E  Invalid session handle.
  1208.           BFFF0015  Timeout occurred before operation could complete.
  1209.           BFFF0034  Violation of raw write protocol occurred.
  1210.           BFFF0035  Violation of raw read protocol occurred.
  1211.           BFFF0036  Device reported an output protocol error.
  1212.           BFFF0037  Device reported an input protocol error.
  1213.           BFFF0038  Bus error occurred during transfer.
  1214.           BFFF003A  Invalid setup (attributes are not consistent).
  1215.           BFFF005F  No listeners condition was detected.
  1216.           BFFF0060  This interface is not the controller in charge.
  1217.           BFFF0067  Operation is not supported on this session.
  1218.           
  1219. ________________________________________________________________________________
  1220.  
  1221.   hp34401a_confIntegratTime
  1222.  
  1223.       ViStatus hp34401a_confIntegratTime (ViSession instrumentHandle,
  1224.                                           ViInt16 function, ViReal64 integrationTime);
  1225.  
  1226.   Purpose
  1227.  
  1228.       Integration time is the period of time the instrument's A/D converter
  1229.       samples the input signal for a measurement. Integration time affects the
  1230.       measurement resolution and
  1231.       measurement speed. For better resolution, use a longer integration time.
  1232.       For faster measurements use
  1233.       a shorter integration time.
  1234.       
  1235.       Note: Applies to all measurement functions except AC voltage, AC current,
  1236.       frequency, and period. The integration time for the math operations
  1237.       (null, min-max, dB,dBm, limit test) is the same as the integration time
  1238.       for the measurement function in use.
  1239.       
  1240.  
  1241.   Parameter List
  1242.  
  1243.       instrumentHandle
  1244.  
  1245.           Variable Type       ViSession
  1246.  
  1247.           This control accepts the Instrument Handle returned by the Initialize
  1248.           function to select the desired instrument driver session.
  1249.           
  1250.           Default Value:  None
  1251.  
  1252.       function
  1253.  
  1254.           Variable Type       ViInt16
  1255.  
  1256.           Specifies the measurement function for which the integration time
  1257.           will be configured.
  1258.           
  1259.           Valid Range:
  1260.           1 = Voltage DC (Default)
  1261.           4 = Current DC
  1262.           5 = 2-wire Resistance
  1263.           6 = 4-wire Resistance
  1264.           
  1265.           
  1266.           
  1267.  
  1268.       integrationTime
  1269.  
  1270.           Variable Type       ViReal64
  1271.  
  1272.           Sets the integration time in Number of Power Line Cycles (NPLCs).
  1273.           
  1274.           Valid Range:
  1275.           0.02  - 0.02 PLCs
  1276.           0.2   - 0.2 PLCs
  1277.           1.0   - 1 PLC
  1278.           10.0  - 10 PLC  (Default)
  1279.           100.0 - 100 PLC
  1280.           
  1281.  
  1282.   Return Value
  1283.  
  1284.           This control contains the status code returned by the function call.
  1285.           
  1286.           Status Codes:
  1287.           
  1288.           Status    Description
  1289.           -------------------------------------------------
  1290.           3FFF0005  The specified termination character was read.
  1291.           3FFF0006  The specified number of bytes was read.
  1292.           
  1293.           BFFC0002  Parameter 2 (Function) out of range.
  1294.           BFFC0003  Parameter 3 (Integration Time) out of range.
  1295.           
  1296.           BFFF0000  Miscellaneous or system error occurred.
  1297.           BFFF000E  Invalid session handle.
  1298.           BFFF0015  Timeout occurred before operation could complete.
  1299.           BFFF0034  Violation of raw write protocol occurred.
  1300.           BFFF0035  Violation of raw read protocol occurred.
  1301.           BFFF0036  Device reported an output protocol error.
  1302.           BFFF0037  Device reported an input protocol error.
  1303.           BFFF0038  Bus error occurred during transfer.
  1304.           BFFF003A  Invalid setup (attributes are not consistent).
  1305.           BFFF005F  No listeners condition was detected.
  1306.           BFFF0060  This interface is not the controller in charge.
  1307.           BFFF0067  Operation is not supported on this session.
  1308.           
  1309. ________________________________________________________________________________
  1310.  
  1311.   hp34401a_confLimitTest
  1312.  
  1313.       ViStatus hp34401a_confLimitTest (ViSession instrumentHandle, ViReal64 highLimit,
  1314.                                        ViReal64 lowLimit);
  1315.  
  1316.   Purpose
  1317.  
  1318.       The limit test operation enables you to perform pass/fail testing to
  1319.       upper and lower limits that you specify.
  1320.       
  1321.       Note
  1322.       (1) This operation applies to all measurement functions, except
  1323.       continuity and diode tests.
  1324.       
  1325.  
  1326.   Parameter List
  1327.  
  1328.       instrumentHandle
  1329.  
  1330.           Variable Type       ViSession
  1331.  
  1332.           This control accepts the Instrument Handle returned by the Initialize
  1333.           function to select the desired instrument driver session.
  1334.           
  1335.           Default Value:  None
  1336.  
  1337.       highLimit
  1338.  
  1339.           Variable Type       ViReal64
  1340.  
  1341.           Sets the upper test limit.
  1342.           
  1343.           Valid Range:
  1344.           0.0 to +- 120% of the highest range for the present function.
  1345.           
  1346.           Default Value: 0.0
  1347.           
  1348.  
  1349.       lowLimit
  1350.  
  1351.           Variable Type       ViReal64
  1352.  
  1353.           Sets the lower test limit.
  1354.           
  1355.           Valid Range:
  1356.           0.0 to +- 120% of the highest range for the present function.
  1357.           
  1358.           Default Value: 0.0
  1359.           
  1360.  
  1361.   Return Value
  1362.  
  1363.           This control contains the status code returned by the function call.
  1364.           
  1365.           Status Codes:
  1366.           
  1367.           Status    Description
  1368.           -------------------------------------------------
  1369.                  0  No error (the call was successful).
  1370.           
  1371.           3FFF0005  The specified termination character was read.
  1372.           3FFF0006  The specified number of bytes was read.
  1373.           
  1374.           BFFF0000  Miscellaneous or system error occurred.
  1375.           BFFF000E  Invalid session handle.
  1376.           BFFF0015  Timeout occurred before operation could complete.
  1377.           BFFF0034  Violation of raw write protocol occurred.
  1378.           BFFF0035  Violation of raw read protocol occurred.
  1379.           BFFF0036  Device reported an output protocol error.
  1380.           BFFF0037  Device reported an input protocol error.
  1381.           BFFF0038  Bus error occurred during transfer.
  1382.           BFFF003A  Invalid setup (attributes are not consistent).
  1383.           BFFF005F  No listeners condition was detected.
  1384.           BFFF0060  This interface is not the controller in charge.
  1385.           BFFF0067  Operation is not supported on this session.
  1386.           
  1387. ________________________________________________________________________________
  1388.  
  1389.   hp34401a_confMisc
  1390.  
  1391.       ViStatus hp34401a_confMisc (ViSession instrumentHandle, ViInt16 autozero,
  1392.                                   ViReal64 detectorBandwidth, ViBoolean autoImpedance);
  1393.  
  1394.   Purpose
  1395.  
  1396.       Configure input resistance, detector bandwidth and autozero.
  1397.       
  1398.       - Configures the input resistance of the instrument for noise reduction
  1399.       and loading. Normally, the input resistance is fixed at 10 Mohm for all
  1400.       DC voltage ranges to minimize noise pickup. To reduce the effects of
  1401.       measurement loading errors, the user can set input resistance to greater
  1402.       than 10 Gohm for the 100 mV DC, 1 V DC, and 10 V DC ranges.
  1403.       
  1404.       Notes:
  1405.       Applies to DC voltage measurements and is disabled for all other
  1406.       functions.
  1407.       
  1408.       (1) Configure detector bandwidth which enable the user to either optimize
  1409.       low frequency accuracy or achieve faster AC settling times.
  1410.       
  1411.       Applies to AC voltage and AC current measurements only.
  1412.       
  1413.       (2) Configure autozero. When autozero is enabled, the instrument
  1414.       internally disconnects the input signal following every measurement, and
  1415.       takes a zero reading. It then subtracts the zero reading from the
  1416.       preceding reading.
  1417.       This prevents offset voltages present on the instrument input circuitry
  1418.       from affecting measurement accuracy.
  1419.       
  1420.       When autozero is disabled, the instrument takes one zero reading and
  1421.       subtracts it from all subsequent measurements. It takes a new zero
  1422.       reading each time you change the function, range, or integration time.
  1423.       
  1424.       (3)Applies to DC voltage, DC current, and resistance measurements only.
  1425.       
  1426.       
  1427.  
  1428.   Parameter List
  1429.  
  1430.       instrumentHandle
  1431.  
  1432.           Variable Type       ViSession
  1433.  
  1434.           This control accepts the Instrument Handle returned by the Initialize
  1435.           function to select the desired instrument driver session.
  1436.           
  1437.           Default Value:  None
  1438.  
  1439.       autozero
  1440.  
  1441.           Variable Type       ViInt16
  1442.  
  1443.           Enables/Disables Autozero If Once is selected, a zero reading is
  1444.           immediately taken, then autozero is disabled.
  1445.           
  1446.           Valid Range:
  1447.           0 - Off
  1448.           1 - On (Default)
  1449.           2 - Once
  1450.           
  1451.           
  1452.  
  1453.       detectorBandwidth
  1454.  
  1455.           Variable Type       ViReal64
  1456.  
  1457.           Selects the AC filter. Selection should be based on the lowest
  1458.           frequency expected.
  1459.           
  1460.           Valid Range:
  1461.           3.0   - 3 Hz = Slow
  1462.           20.0  - 20 Hz = Medium (Default)
  1463.           200.0 - 200 Hz = Fast
  1464.           
  1465.           
  1466.  
  1467.       autoImpedance
  1468.  
  1469.           Variable Type       ViBoolean
  1470.  
  1471.           Enables or disables automatic  input impedance for DC voltage
  1472.           measurements. With Auto Impedance disabled, the instrument maintains
  1473.           its input impedance of 10 MΩ for all DC voltage ranges. With Auto
  1474.           Impedance enabled, the input impedance is set to > 10 GΩ for the
  1475.           three lowest DC voltage ranges (100 mV, 1 V, and 10 V) and 10 MΩ for
  1476.           the other ranges (100 V and 1000 V).
  1477.           
  1478.           Valid Range:
  1479.           VI_OFF (0) - Disabled
  1480.           VI_ON  (1) - Enabled (Default)
  1481.           
  1482.           
  1483.  
  1484.   Return Value
  1485.  
  1486.           This control contains the status code returned by the function call.
  1487.           
  1488.           Status Codes:
  1489.           
  1490.           Status    Description
  1491.           -------------------------------------------------
  1492.                  0  No error (the call was successful).
  1493.           
  1494.           3FFF0005  The specified termination character was read.
  1495.           3FFF0006  The specified number of bytes was read.
  1496.           
  1497.           BFFC0002  Parameter 2 (Auto Zero) out of range.
  1498.           BFFC0003  Parameter 3 (Detector Bandwidth) out of range.
  1499.           BFFC0004  Parameter 4 (Auto Impedance) out of range.
  1500.           
  1501.           BFFF0000  Miscellaneous or system error occurred.
  1502.           BFFF000E  Invalid session handle.
  1503.           BFFF0015  Timeout occurred before operation could complete.
  1504.           BFFF0034  Violation of raw write protocol occurred.
  1505.           BFFF0035  Violation of raw read protocol occurred.
  1506.           BFFF0036  Device reported an output protocol error.
  1507.           BFFF0037  Device reported an input protocol error.
  1508.           BFFF0038  Bus error occurred during transfer.
  1509.           BFFF003A  Invalid setup (attributes are not consistent).
  1510.           BFFF005F  No listeners condition was detected.
  1511.           BFFF0060  This interface is not the controller in charge.
  1512.           BFFF0067  Operation is not supported on this session.
  1513.           
  1514. ________________________________________________________________________________
  1515.  
  1516.   hp34401a_confNull
  1517.  
  1518.       ViStatus hp34401a_confNull (ViSession instrumentHandle, ViReal64 nullValue);
  1519.  
  1520.   Purpose
  1521.  
  1522.       When making null measurements, also called relative, each reading is the
  1523.       difference between a stored null value and the input signal. One possible
  1524.       application is in making more accurate two-wire resistance measurements
  1525.       by nulling the test lead resistance.
  1526.       RESULT = reading - null value
  1527.       
  1528.       Notes:
  1529.       (1) This operation applies to all measurement functions, except
  1530.       continuity and diode test.
  1531.       
  1532.       (2) The null register is cleared when you change measurement functions,
  1533.       turn null off, turn off the power, or perform a reset.
  1534.       
  1535.  
  1536.   Parameter List
  1537.  
  1538.       instrumentHandle
  1539.  
  1540.           Variable Type       ViSession
  1541.  
  1542.           This control accepts the Instrument Handle returned by the Initialize
  1543.           function to select the desired instrument driver session.
  1544.           
  1545.           Default Value:  None
  1546.  
  1547.       nullValue
  1548.  
  1549.           Variable Type       ViReal64
  1550.  
  1551.           xSets the null value.
  1552.           
  1553.           Valid Range:
  1554.           0.0 to +- 120% of the highest range of the present function.
  1555.           
  1556.           Default Value: 0.0
  1557.  
  1558.   Return Value
  1559.  
  1560.           This control contains the status code returned by the function call.
  1561.           
  1562.           Status Codes:
  1563.           
  1564.           Status    Description
  1565.           -------------------------------------------------
  1566.                  0  No error (the call was successful).
  1567.           
  1568.           3FFF0005  The specified termination character was read.
  1569.           3FFF0006  The specified number of bytes was read.
  1570.           
  1571.           BFFF0000  Miscellaneous or system error occurred.
  1572.           BFFF000E  Invalid session handle.
  1573.           BFFF0015  Timeout occurred before operation could complete.
  1574.           BFFF0034  Violation of raw write protocol occurred.
  1575.           BFFF0035  Violation of raw read protocol occurred.
  1576.           BFFF0036  Device reported an output protocol error.
  1577.           BFFF0037  Device reported an input protocol error.
  1578.           BFFF0038  Bus error occurred during transfer.
  1579.           BFFF003A  Invalid setup (attributes are not consistent).
  1580.           BFFF005F  No listeners condition was detected.
  1581.           BFFF0060  This interface is not the controller in charge.
  1582.           BFFF0067  Operation is not supported on this session.
  1583.           
  1584. ________________________________________________________________________________
  1585.  
  1586.   hp34401a_confTrig
  1587.  
  1588.       ViStatus hp34401a_confTrig (ViSession instrumentHandle, ViInt16 triggerSource,
  1589.                                   ViBoolean autoTriggerDelay, ViReal64 triggerDelay,
  1590.                                   ViInt32 triggerCount, ViInt32 sampleCount);
  1591.  
  1592.   Purpose
  1593.  
  1594.       Configures the parameters of the Trigger Subsystem.
  1595.       If the functions contained in this driver are being used to initiate and
  1596.       return measurements, then the maximum number of readings which can be
  1597.       taken is 512. Therefore; the trigger count
  1598.       times the sample count must be 512.
  1599.       
  1600.  
  1601.   Parameter List
  1602.  
  1603.       instrumentHandle
  1604.  
  1605.           Variable Type       ViSession
  1606.  
  1607.           This control accepts the Instrument Handle returned by the Initialize
  1608.           function to select the desired instrument driver session.
  1609.           
  1610.           Default Value:  None
  1611.  
  1612.       triggerSource
  1613.  
  1614.           Variable Type       ViInt16
  1615.  
  1616.           Configures the selected source as the trigger source.
  1617.           
  1618.           Valid Range:
  1619.           0 - Internal  (Default)
  1620.           1 - External
  1621.           2 - Software
  1622.           
  1623.           Notes:
  1624.           (1): If Internal is selected, trigger conditions are always true.
  1625.           This is the method used for the high-level configure functions.
  1626.           
  1627.           (2): If External is selected, the multimeter's "EXT TRIG" connector
  1628.           is the trig source. If Software is selected, the Execute Software
  1629.           Trigger function will trigger the instrument.
  1630.           
  1631.           
  1632.           
  1633.  
  1634.       autoTriggerDelay
  1635.  
  1636.           Variable Type       ViBoolean
  1637.  
  1638.           Enables/Disables automatic trigger delay. If disabled, the user must
  1639.           input a delay value which will be the delay between receipt of
  1640.           trigger and the start of the measurement. If enabled, an internal
  1641.           delay is used. The internal delay is dependent on the settling time
  1642.           of the instrument for the particular settings.
  1643.           
  1644.           Valid Range:
  1645.           VI_OFF (0) - Off
  1646.           VI_ON  (1) - On (Default)
  1647.           
  1648.           
  1649.  
  1650.       triggerDelay
  1651.  
  1652.           Variable Type       ViReal64
  1653.  
  1654.           If auto delay is disabled, then this value will be the delay between
  1655.           receipt of trigger and the actual measurement.  If auto delay is
  1656.           enabled, then this value will be ignored.
  1657.           
  1658.           Valid Range: 0.0 - 3600.0 secs
  1659.           
  1660.           Default Value: 0.000001
  1661.           
  1662.  
  1663.       triggerCount
  1664.  
  1665.           Variable Type       ViInt32
  1666.  
  1667.           Sets the number of triggers which will occur before the multimeter
  1668.           returns to its idle state.
  1669.           
  1670.           Valid Range: 1 - 50000
  1671.           
  1672.           Default Value: 1
  1673.           
  1674.           
  1675.  
  1676.       sampleCount
  1677.  
  1678.           Variable Type       ViInt32
  1679.  
  1680.           Configures the number of samples taken for each trigger received.
  1681.           
  1682.           Valid Range: 1 - 50,000
  1683.           
  1684.           Default Value: 1
  1685.           
  1686.           
  1687.  
  1688.   Return Value
  1689.  
  1690.           This control contains the status code returned by the function call.
  1691.           
  1692.           Status Codes:
  1693.           
  1694.           Status    Description
  1695.           -------------------------------------------------
  1696.                  0  No error (the call was successful).
  1697.           
  1698.           3FFF0005  The specified termination character was read.
  1699.           3FFF0006  The specified number of bytes was read.
  1700.           
  1701.           BFFC0002  Parameter 2 (Trigger Source) out of range.
  1702.           BFFC0003  Parameter 3 (Auto Trigger Delay) out of range.
  1703.           BFFC0004  Parameter 4 (Trigger Delay) out of range.
  1704.           BFFC0005  Parameter 5 (Trigger Count) out of range.
  1705.           BFFC0006  Parameter 6 (Sample Count) out of range.
  1706.           
  1707.           BFFF0000  Miscellaneous or system error occurred.
  1708.           BFFF000E  Invalid session handle.
  1709.           BFFF0015  Timeout occurred before operation could complete.
  1710.           BFFF0034  Violation of raw write protocol occurred.
  1711.           BFFF0035  Violation of raw read protocol occurred.
  1712.           BFFF0036  Device reported an output protocol error.
  1713.           BFFF0037  Device reported an input protocol error.
  1714.           BFFF0038  Bus error occurred during transfer.
  1715.           BFFF003A  Invalid setup (attributes are not consistent).
  1716.           BFFF005F  No listeners condition was detected.
  1717.           BFFF0060  This interface is not the controller in charge.
  1718.           BFFF0067  Operation is not supported on this session.
  1719.           
  1720. ________________________________________________________________________________
  1721.  
  1722.   hp34401a_display
  1723.  
  1724.       ViStatus hp34401a_display (ViSession instrumentHandle, ViBoolean displayState,
  1725.                                  ViChar displayMessage[], ViBoolean clearMessage);
  1726.  
  1727.   Purpose
  1728.  
  1729.       Configures the front panel display of the instrument.
  1730.       
  1731.  
  1732.   Parameter List
  1733.  
  1734.       instrumentHandle
  1735.  
  1736.           Variable Type       ViSession
  1737.  
  1738.           This control accepts the Instrument Handle returned by the Initialize
  1739.           function to select the desired instrument driver session.
  1740.           
  1741.           Default Value:  None
  1742.  
  1743.       displayState
  1744.  
  1745.           Variable Type       ViBoolean
  1746.  
  1747.           Turns on/off the front panel display of the instrument. This may be
  1748.           useful to speed up measurement rates.
  1749.           If off is selected, readings are not sent to the display and all
  1750.           display annunciators except ERROR and Shift are inactive. Front panel
  1751.           operation is otherwise unaffected by turning off the display.
  1752.           
  1753.           Valid Range:
  1754.           VI_OFF (0) - Off
  1755.           VI_ON  (1) - On (Default)
  1756.           
  1757.           
  1758.  
  1759.       displayMessage
  1760.  
  1761.           Variable Type       ViChar[]
  1762.  
  1763.           If Clear Message is set to No, then this string is sent to the front
  1764.           panel of the instrument.
  1765.           
  1766.           Valid Range: Up to 12 Alpha-Numeric Characters
  1767.           
  1768.           Default Value: "Hello"
  1769.           
  1770.           Notes:
  1771.           (1) When a message is displayed, readings are not sent to the
  1772.           display.
  1773.           
  1774.           (2) A Message can be displayed even when the display state is off.
  1775.           
  1776.           
  1777.  
  1778.       clearMessage
  1779.  
  1780.           Variable Type       ViBoolean
  1781.  
  1782.           If Yes is selected, this control clears the message from the front
  1783.           panel of the display and disables the present message from being
  1784.           sent.
  1785.           
  1786.           Valid Range:
  1787.           VI_OFF (0) - No
  1788.           VI_ON  (1) - Yes (Default)
  1789.           
  1790.           
  1791.           
  1792.  
  1793.   Return Value
  1794.  
  1795.           This control contains the status code returned by the function call.
  1796.           
  1797.           Status Codes:
  1798.           
  1799.           Status    Description
  1800.           -------------------------------------------------
  1801.                  0  No error (the call was successful).
  1802.           
  1803.           3FFF0005  The specified termination character was read.
  1804.           3FFF0006  The specified number of bytes was read.
  1805.           
  1806.           BFFF0002  Parameter 2 (Display State) out of range
  1807.           BFFF0003  Parameter 3 (Display Message) too long
  1808.           BFFF0004  Parameter 4 (Clear Message) out of range
  1809.           
  1810.           BFFF0000  Miscellaneous or system error occurred.
  1811.           BFFF000E  Invalid session handle.
  1812.           BFFF0015  Timeout occurred before operation could complete.
  1813.           BFFF0034  Violation of raw write protocol occurred.
  1814.           BFFF0035  Violation of raw read protocol occurred.
  1815.           BFFF0036  Device reported an output protocol error.
  1816.           BFFF0037  Device reported an input protocol error.
  1817.           BFFF0038  Bus error occurred during transfer.
  1818.           BFFF003A  Invalid setup (attributes are not consistent).
  1819.           BFFF005F  No listeners condition was detected.
  1820.           BFFF0060  This interface is not the controller in charge.
  1821.           BFFF0067  Operation is not supported on this session.
  1822.           
  1823. ________________________________________________________________________________
  1824.  
  1825.   hp34401a_errorMessage
  1826.  
  1827.       ViStatus hp34401a_errorMessage (ViSession instrumentHandle, ViStatus errorCode,
  1828.                                       ViChar errorMessage[]);
  1829.  
  1830.   Purpose
  1831.  
  1832.       This function takes the Status Code returned by the instrument driver
  1833.       functions, interprets it and returns it as a user readable string.
  1834.       
  1835.  
  1836.   Parameter List
  1837.  
  1838.       instrumentHandle
  1839.  
  1840.           Variable Type       ViSession
  1841.  
  1842.           This control accepts the Instrument Handle returned by the Initialize
  1843.           function to select the desired instrument driver session.
  1844.           
  1845.           Default Value:  VI_NULL
  1846.  
  1847.       errorCode
  1848.  
  1849.           Variable Type       ViStatus
  1850.  
  1851.           This control accepts the Status Code returned from the instrument
  1852.           driver functions.
  1853.           
  1854.           Default Value:
  1855.           0 - VI_SUCCESS
  1856.  
  1857.       errorMessage
  1858.  
  1859.           Variable Type       ViChar[]
  1860.  
  1861.           This control returns the interpreted Status Code as a user readable
  1862.           message string.
  1863.           
  1864.           Notes:
  1865.           
  1866.           (1) The array must contain at least 256 elements ViChar[256].
  1867.  
  1868.   Return Value
  1869.  
  1870.           This control contains the status code returned by the function call.
  1871.           
  1872.           Status Codes:
  1873.           
  1874.           Status    Description
  1875.           -------------------------------------------------
  1876.                  0  No error (the call was successful).
  1877.           
  1878.           3FFF0005  The specified termination character was read.
  1879.           3FFF0006  The specified number of bytes was read.
  1880.           
  1881.           BFFF0000  Miscellaneous or system error occurred.
  1882.           BFFF000E  Invalid session handle.
  1883.           BFFF0015  Timeout occurred before operation could complete.
  1884.           BFFF0034  Violation of raw write protocol occurred.
  1885.           BFFF0035  Violation of raw read protocol occurred.
  1886.           BFFF0036  Device reported an output protocol error.
  1887.           BFFF0037  Device reported an input protocol error.
  1888.           BFFF0038  Bus error occurred during transfer.
  1889.           BFFF003A  Invalid setup (attributes are not consistent).
  1890.           BFFF005F  No listeners condition was detected.
  1891.           BFFF0060  This interface is not the controller in charge.
  1892.           BFFF0067  Operation is not supported on this session.
  1893.           
  1894. ________________________________________________________________________________
  1895.  
  1896.   hp34401a_errorQuery
  1897.  
  1898.       ViStatus hp34401a_errorQuery (ViSession instrumentHandle, ViInt32 *errorCode,
  1899.                                     ViChar errorMessage[]);
  1900.  
  1901.   Purpose
  1902.  
  1903.       This function reads an error code from the instrument's error queue.
  1904.       
  1905.  
  1906.   Parameter List
  1907.  
  1908.       instrumentHandle
  1909.  
  1910.           Variable Type       ViSession
  1911.  
  1912.           This control accepts the Instrument Handle returned by the Initialize
  1913.           function to select the desired instrument driver session.
  1914.           
  1915.           Default Value:  None
  1916.  
  1917.       errorCode
  1918.  
  1919.           Variable Type       ViInt32 (passed by reference)
  1920.  
  1921.           This control returns the error code read from the instrument's error
  1922.           queue.
  1923.           
  1924.  
  1925.       errorMessage
  1926.  
  1927.           Variable Type       ViChar[]
  1928.  
  1929.           This control returns the error message string read from the
  1930.           instrument's error message queue.
  1931.           
  1932.           Notes:
  1933.           
  1934.           (1) The array must contain at least 256 elements ViChar[256].
  1935.  
  1936.   Return Value
  1937.  
  1938.           This control contains the status code returned by the function call.
  1939.           
  1940.           Status Codes:
  1941.           
  1942.           Status    Description
  1943.           -------------------------------------------------
  1944.                  0  No error (the call was successful).
  1945.           
  1946.           3FFF0005  The specified termination character was read.
  1947.           3FFF0006  The specified number of bytes was read.
  1948.           
  1949.           BFFF0000  Miscellaneous or system error occurred.
  1950.           BFFF000E  Invalid session handle.
  1951.           BFFF0015  Timeout occurred before operation could complete.
  1952.           BFFF0034  Violation of raw write protocol occurred.
  1953.           BFFF0035  Violation of raw read protocol occurred.
  1954.           BFFF0036  Device reported an output protocol error.
  1955.           BFFF0037  Device reported an input protocol error.
  1956.           BFFF0038  Bus error occurred during transfer.
  1957.           BFFF003A  Invalid setup (attributes are not consistent).
  1958.           BFFF005F  No listeners condition was detected.
  1959.           BFFF0060  This interface is not the controller in charge.
  1960.           BFFF0067  Operation is not supported on this session.
  1961.           
  1962. ________________________________________________________________________________
  1963.  
  1964.   hp34401a_fetchMeas
  1965.  
  1966.       ViStatus hp34401a_fetchMeas (ViSession instrumentHandle,
  1967.                                    ViInt16 *ofMeasurements, ViReal64 measurements[],
  1968.                                    ViInt16 timeOutmsec);
  1969.  
  1970.   Purpose
  1971.  
  1972.       If the Wait For Trigger function is used to initiate measurements then
  1973.       this function must be used to retrieve the measurements.
  1974.       
  1975.       Note :
  1976.       Upon completion of this function, time out is reset to 10 seconds.
  1977.       
  1978.  
  1979.   Parameter List
  1980.  
  1981.       instrumentHandle
  1982.  
  1983.           Variable Type       ViSession
  1984.  
  1985.           This control accepts the Instrument Handle returned by the Initialize
  1986.           function to select the desired instrument driver session.
  1987.           
  1988.           Default Value:  None
  1989.  
  1990.       ofMeasurements
  1991.  
  1992.           Variable Type       ViInt16 (passed by reference)
  1993.  
  1994.           Returns the number of measurements taken.
  1995.           # of Measurements = Sample Cnt * Trigger Cnt
  1996.           
  1997.           Default: None
  1998.  
  1999.       measurements
  2000.  
  2001.           Variable Type       ViReal64[]
  2002.  
  2003.           Returns an array of measurements.The trigger and sample count can be
  2004.           determined using the Check Trigger function.
  2005.           
  2006.           Units:
  2007.           Voltage - Volts
  2008.           Resistance - Ohms
  2009.           Current - Amps
  2010.           Frequency - Hertz
  2011.           Period - Seconds
  2012.           
  2013.           
  2014.  
  2015.       timeOutmsec
  2016.  
  2017.           Variable Type       ViInt16
  2018.  
  2019.           Sets the maximum amount of time (in milli seconds) that the
  2020.           controller will wait for the instrument to respond before it times
  2021.           out.
  2022.           
  2023.           Valid Range
  2024.           0 - Disable
  2025.           1 - 1000000 (1000 sec)
  2026.           
  2027.           Default Value 10000 (10 sec)
  2028.           
  2029.           Notes:
  2030.           (1) A value of zero (0) disables the time-out.  Therefore if zero is
  2031.           selected the function will never time-out, and never return if the
  2032.           measurements are not completed.
  2033.           
  2034.  
  2035.   Return Value
  2036.  
  2037.           This control contains the status code returned by the function call.
  2038.           
  2039.           Status Codes:
  2040.           
  2041.           Status    Description
  2042.           -------------------------------------------------
  2043.                  0  No error (the call was successful).
  2044.           
  2045.           3FFF0005  The specified termination character was read.
  2046.           3FFF0006  The specified number of bytes was read.
  2047.           
  2048.           BFFC0002  Parameter 2 (Time Out value) out of range.
  2049.           BFFC0803  Error Scanning Response.
  2050.           
  2051.           BFFF0000  Miscellaneous or system error occurred.
  2052.           BFFF0002  Time outoff range.
  2053.           BFFF000E  Invalid session handle.
  2054.           BFFF0015  Timeout occurred before operation could complete.
  2055.           BFFF0034  Violation of raw write protocol occurred.
  2056.           BFFF0035  Violation of raw read protocol occurred.
  2057.           BFFF0036  Device reported an output protocol error.
  2058.           BFFF0037  Device reported an input protocol error.
  2059.           BFFF0038  Bus error occurred during transfer.
  2060.           BFFF003A  Invalid setup (attributes are not consistent).
  2061.           BFFF005F  No listeners condition was detected.
  2062.           BFFF0060  This interface is not the controller in charge.
  2063.           BFFF0067  Operation is not supported on this session.
  2064.           
  2065. ________________________________________________________________________________
  2066.  
  2067.   hp34401a_init
  2068.  
  2069.       ViStatus hp34401a_init (ViRsrc resourceName, ViBoolean IDQuery,
  2070.                               ViBoolean resetDevice, ViSession *instrumentHandle);
  2071.  
  2072.   Purpose
  2073.  
  2074.       This function performs the following initialization actions:
  2075.       
  2076.       - Opens a session to the Default Resource Manager resource and a session
  2077.       to the specified device using the interface and address specified in the
  2078.       Resource_Name control.
  2079.       
  2080.       - Performs an identification query on the Instrument.
  2081.       
  2082.       - Resets the instrument to a known state.
  2083.       
  2084.       - Sends initialization commands to the instrument that set any necessary
  2085.       programmatic variables such as Headers Off, Short Command form, and Data
  2086.       Transfer Binary to the state necessary for the operation of the
  2087.       instrument driver.
  2088.       
  2089.       - Returns an Instrument Handle which is used to differentiate between
  2090.       different sessions of this instrument driver.
  2091.       
  2092.       - Each time this function is invoked a Unique Session is opened.  It is
  2093.       possible to have more than one session open for the same resource.
  2094.       
  2095.  
  2096.   Parameter List
  2097.  
  2098.       resourceName
  2099.  
  2100.           Variable Type       ViRsrc
  2101.  
  2102.           This control specifies the interface and address of the device that
  2103.           is to be initialized (Instrument Descriptor). The exact grammar to be
  2104.           used in this control is shown in the note below.
  2105.           
  2106.           Default Value:  "GPIB::22"
  2107.           
  2108.           Notes:
  2109.           
  2110.           (1) Based on the Instrument Descriptor, this operation establishes a
  2111.           communication session with a device.  The grammar for the Instrument
  2112.           Descriptor is shown below.  Optional parameters are shown in square
  2113.           brackets ([]).
  2114.           
  2115.           Interface   Grammar
  2116.           ------------------------------------------------------
  2117.           GPIB        GPIB[board]::primary address[::secondary address]
  2118.                       [::INSTR]
  2119.           
  2120.           The GPIB keyword is used with GPIB instruments.
  2121.           
  2122.           The default value for optional parameters are shown below.
  2123.           
  2124.           Optional Parameter          Default Value
  2125.           -----------------------------------------
  2126.           board                       0
  2127.           secondary address           none - 31
  2128.           
  2129.  
  2130.       IDQuery
  2131.  
  2132.           Variable Type       ViBoolean
  2133.  
  2134.           This control specifies if an ID Query is sent to the instrument
  2135.           during the initialization procedure.
  2136.           
  2137.           Valid Range:
  2138.           VI_OFF (0) - Skip Query
  2139.           VI_ON  (1) - Do Query (Default Value)
  2140.           
  2141.           Notes:
  2142.           
  2143.           (1) Under normal circumstances the ID Query ensures that the
  2144.           instrument initialized is the type supported by this driver. However
  2145.           circumstances may arise where it is undesirable to send an ID Query
  2146.           to the instrument.  In those cases; set this control to "Skip Query"
  2147.           and this function will initialize the selected interface, without
  2148.           doing an ID Query.
  2149.  
  2150.       resetDevice
  2151.  
  2152.           Variable Type       ViBoolean
  2153.  
  2154.           This control specifies if the instrument is to be reset to its
  2155.           power-on settings during the initialization procedure.
  2156.           
  2157.           Valid Range:
  2158.           VI_OFF (0) - Don't Reset
  2159.           VI_ON  (1) - Reset Device (Default Value)
  2160.           
  2161.           Notes:
  2162.           
  2163.           (1) If you do not want the instrument reset. Set this control to
  2164.           "Don't Reset" while initializing the instrument.
  2165.  
  2166.       instrumentHandle
  2167.  
  2168.           Variable Type       ViSession (passed by reference)
  2169.  
  2170.           This control returns an Instrument Handle that is used in all
  2171.           subsequent function calls to differentiate between different sessions
  2172.           of this instrument driver.
  2173.           
  2174.           Notes:
  2175.           
  2176.           (1) Each time this function is invoked a Unique Session is opened.
  2177.           It is possible to have more than one session open for the same
  2178.           resource.
  2179.           
  2180.  
  2181.   Return Value
  2182.  
  2183.           This control contains the status code returned by the function call.
  2184.           
  2185.           Status Codes:
  2186.           
  2187.           Status    Description
  2188.           -------------------------------------------------
  2189.                  0  No error (the call was successful).
  2190.           
  2191.           3FFF0005  The specified termination character was read.
  2192.           3FFF0006  The specified number of bytes was read.
  2193.           
  2194.           BFFC0002  Parameter 2 (ID Query) out of range.
  2195.           BFFC0003  Parameter 3 (Reset Device) out of range.
  2196.           BFFC0011  Instrument returned invalid response to ID Query
  2197.           
  2198.           BFFF0000  Miscellaneous or system error occurred.
  2199.           BFFF000E  Invalid session handle.
  2200.           BFFF0015  Timeout occurred before operation could complete.
  2201.           BFFF0034  Violation of raw write protocol occurred.
  2202.           BFFF0035  Violation of raw read protocol occurred.
  2203.           BFFF0036  Device reported an output protocol error.
  2204.           BFFF0037  Device reported an input protocol error.
  2205.           BFFF0038  Bus error occurred during transfer.
  2206.           BFFF003A  Invalid setup (attributes are not consistent).
  2207.           BFFF005F  No listeners condition was detected.
  2208.           BFFF0060  This interface is not the controller in charge.
  2209.           BFFF0067  Operation is not supported on this session.
  2210.           
  2211. ________________________________________________________________________________
  2212.  
  2213.   hp34401a_multiMeas
  2214.  
  2215.       ViStatus hp34401a_multiMeas (ViSession instrumentHandle, ViInt16 timeOutmsec,
  2216.                                    ViInt16 *ofMeasurements, ViReal64 measurements[]);
  2217.  
  2218.   Purpose
  2219.  
  2220.       Puts the instrument into the wait-for-trigger state and waits
  2221.       until all triggers have been received and all samples taken, then returns
  2222.       the readings.This function uses synchronous
  2223.       techniques to determine when the measurements are complete. Using this
  2224.       method the function will wait while the measurements are in progress. The
  2225.       advantage of this method is that the user can use one function to enter
  2226.       the wait-for-trigger state and also return the readings. The disadvantage
  2227.       is that no other operation can be performed while measurements are in
  2228.       progress.
  2229.       
  2230.       Note: Upon completion of this function, timeout is reset to 10 seconds.
  2231.       
  2232.  
  2233.   Parameter List
  2234.  
  2235.       instrumentHandle
  2236.  
  2237.           Variable Type       ViSession
  2238.  
  2239.           This control accepts the Instrument Handle returned by the Initialize
  2240.           function to select the desired instrument driver session.
  2241.           
  2242.           Default Value:  None
  2243.  
  2244.       timeOutmsec
  2245.  
  2246.           Variable Type       ViInt16
  2247.  
  2248.           Sets the maximum amount of time (in milli seconds) that the
  2249.           controller will wait for the instrument to respond before it times
  2250.           out.
  2251.           
  2252.           Valid Range
  2253.           0 - Disable
  2254.           1 - 1000000 (1000 sec)
  2255.           
  2256.           Default Value 10000 (10 sec)
  2257.           
  2258.           Notes:
  2259.           (1) A value of zero (0) disables the time-out.  Therefore if zero is
  2260.           selected the function will not time-out and return if the
  2261.           measurements are not completed.
  2262.  
  2263.       ofMeasurements
  2264.  
  2265.           Variable Type       ViInt16 (passed by reference)
  2266.  
  2267.           Returns the number of measurements taken.
  2268.           # of Measurements = Sample Cnt * Trigger Cnt
  2269.           
  2270.           Default Value:
  2271.           0
  2272.  
  2273.       measurements
  2274.  
  2275.           Variable Type       ViReal64[]
  2276.  
  2277.           Returns an array of measurements.(Dimension >= sample count * trigger
  2278.           count) The trigger and sample count can be determined using the Check
  2279.           Trigger function.
  2280.           
  2281.           Units:
  2282.           Voltage - Volts
  2283.           Resistance - Ohms
  2284.           Current - Amps
  2285.           Frequency - Hertz
  2286.           Period - Seconds
  2287.           
  2288.           
  2289.  
  2290.   Return Value
  2291.  
  2292.           This control contains the status code returned by the function call.
  2293.           
  2294.           Status Codes:
  2295.           
  2296.           Status    Description
  2297.           -------------------------------------------------
  2298.                  0  No error (the call was successful).
  2299.           3FFF0005  The specified termination character was read.
  2300.           3FFF0006  The specified number of bytes was read.
  2301.           
  2302.           BFFC0002  Parameter 2 (Time Out value) out of range.
  2303.           BFFC0803  Error Scanning Response.
  2304.           
  2305.           BFFF0000  Miscellaneous or system error occurred.
  2306.           
  2307.           BFFF000E  Invalid session handle.
  2308.           BFFF0015  Timeout occurred before operation could complete.
  2309.           BFFF0034  Violation of raw write protocol occurred.
  2310.           BFFF0035  Violation of raw read protocol occurred.
  2311.           BFFF0036  Device reported an output protocol error.
  2312.           BFFF0037  Device reported an input protocol error.
  2313.           BFFF0038  Bus error occurred during transfer.
  2314.           BFFF003A  Invalid setup (attributes are not consistent).
  2315.           BFFF005F  No listeners condition was detected.
  2316.           BFFF0060  This interface is not the controller in charge.
  2317.           BFFF0067  Operation is not supported on this session.
  2318.           
  2319. ________________________________________________________________________________
  2320.  
  2321.   hp34401a_readInstrData
  2322.  
  2323.       ViStatus hp34401a_readInstrData (ViSession instrumentHandle,
  2324.                                        ViInt16 numberBytesToRead, ViChar readBuffer[],
  2325.                                        ViInt32 *numBytesRead);
  2326.  
  2327.   Purpose
  2328.  
  2329.       This function reads data from the instrument's output buffer and returns
  2330.       it to the specified variable in memory.
  2331.       
  2332.       Notes:
  2333.       
  2334.       (1) Because the instrument may return both numeric and text data in
  2335.       response to queries this function returns the data in string format.
  2336.       
  2337.       (2) If valid data is not available at the instrument's output buffer when
  2338.       this function is called the instrument will hang up and the function will
  2339.       not return until it times out.  If the time-out is disabled this function
  2340.       will hang indefinitely and it may be necessary to reboot the computer to
  2341.       break out.
  2342.       
  2343.  
  2344.   Parameter List
  2345.  
  2346.       instrumentHandle
  2347.  
  2348.           Variable Type       ViSession
  2349.  
  2350.           This control accepts the Instrument Handle returned by the Initialize
  2351.           function to select the desired instrument driver session.
  2352.           
  2353.           Default Value:  None
  2354.  
  2355.       numberBytesToRead
  2356.  
  2357.           Variable Type       ViInt16
  2358.  
  2359.           The number of bytes specified by this control should be greater than
  2360.           or equal to the number of bytes which are to be read from the
  2361.           instrument. If the actual number of bytes to be read is greater than
  2362.           the number this control specifies then multiple reads will be
  2363.           required to empty the instrument's output buffer.
  2364.           
  2365.           If the instrument's output buffer is not emptied the instrument may
  2366.           return invalid data when future reads are performed.
  2367.           
  2368.           Default Value:  50 (See NOTE 2)
  2369.           
  2370.           Notes:
  2371.           
  2372.           (1) If NO DATA is available at the instrument's output buffer when
  2373.           this function is called the instrument will hang up and the function
  2374.           will not return until it times out.  If the time-out is disabled,
  2375.           this function will hang indefinitely and it may be necessary to
  2376.           reboot the computer.
  2377.           
  2378.           (2) If the number of bytes expected is greater than 50 the value of
  2379.           this control may be increased. If the actual number of bytes read is
  2380.           larger than the declared size of the read buffer a run-time error
  2381.           will be generated.
  2382.           
  2383.  
  2384.       readBuffer
  2385.  
  2386.           Variable Type       ViChar[]
  2387.  
  2388.           The incoming data from the instrument is placed into this variable.
  2389.           
  2390.           Notes:
  2391.           
  2392.           (1) Because the instrument may return both numeric and text data in
  2393.           response to queries this function returns the data in string format.
  2394.           
  2395.           (2) This function does not overwrite any old data left in the string
  2396.           variable from the last time the function was called. String data in
  2397.           LabWindows/CVI is terminated with an ASCII null(0x0) and string
  2398.           manipulation functions will only recognize data before the ASCII
  2399.           null.
  2400.           
  2401.           (3) The declared size of the string variable must be greater than the
  2402.           actual number of bytes read from the instrument if it is not a
  2403.           run-time error will be generated.
  2404.           
  2405.  
  2406.       numBytesRead
  2407.  
  2408.           Variable Type       ViInt32 (passed by reference)
  2409.  
  2410.           This variable contains the actual number of bytes read from the
  2411.           instrument. This is the value which is returned by the read function.
  2412.           
  2413.           Notes:
  2414.           
  2415.           (1) If the actual number of bytes read is less than the number of
  2416.           bytes specified in the Number Bytes To Read control then the output
  2417.           buffer has probably been emptied. If the read function fails and the
  2418.           number of bytes read is 0, the most probable cause for the failure is
  2419.           there was no data available at the instrument's output buffer.
  2420.  
  2421.   Return Value
  2422.  
  2423.           This control contains the status code returned by the function call.
  2424.           
  2425.           Status Codes:
  2426.           
  2427.           Status    Description
  2428.           -------------------------------------------------
  2429.                  0  No error (the call was successful).
  2430.           
  2431.           3FFF0005  The specified termination character was read.
  2432.           3FFF0006  The specified number of bytes was read.
  2433.           
  2434.           BFFF0000  Miscellaneous or system error occurred.
  2435.           BFFF000E  Invalid session handle.
  2436.           BFFF0015  Timeout occurred before operation could complete.
  2437.           BFFF0034  Violation of raw write protocol occurred.
  2438.           BFFF0035  Violation of raw read protocol occurred.
  2439.           BFFF0036  Device reported an output protocol error.
  2440.           BFFF0037  Device reported an input protocol error.
  2441.           BFFF0038  Bus error occurred during transfer.
  2442.           BFFF003A  Invalid setup (attributes are not consistent).
  2443.           BFFF005F  No listeners condition was detected.
  2444.           BFFF0060  This interface is not the controller in charge.
  2445.           BFFF0067  Operation is not supported on this session.
  2446.           
  2447. ________________________________________________________________________________
  2448.  
  2449.   hp34401a_reset
  2450.  
  2451.       ViStatus hp34401a_reset (ViSession instrumentHandle);
  2452.  
  2453.   Purpose
  2454.  
  2455.       This function resets the instrument to a known state and sends
  2456.       initialization commands to the instrument that set any necessary
  2457.       programmatic variables such as Headers Off, Short Command form, and Data
  2458.       Transfer Binary to the state necessary for the operation of the
  2459.       instrument driver.
  2460.       
  2461.  
  2462.   Parameter List
  2463.  
  2464.       instrumentHandle
  2465.  
  2466.           Variable Type       ViSession
  2467.  
  2468.           This control accepts the Instrument Handle returned by the Initialize
  2469.           function to select the desired instrument driver session.
  2470.           
  2471.           Default Value:  None
  2472.  
  2473.   Return Value
  2474.  
  2475.           This control contains the status code returned by the function call.
  2476.           
  2477.           Status Codes:
  2478.           
  2479.           Status    Description
  2480.           -------------------------------------------------
  2481.                  0  No error (the call was successful).
  2482.           
  2483.           3FFF0005  The specified termination character was read.
  2484.           3FFF0006  The specified number of bytes was read.
  2485.           
  2486.           BFFF0000  Miscellaneous or system error occurred.
  2487.           BFFF000E  Invalid session handle.
  2488.           BFFF0015  Timeout occurred before operation could complete.
  2489.           BFFF0034  Violation of raw write protocol occurred.
  2490.           BFFF0035  Violation of raw read protocol occurred.
  2491.           BFFF0036  Device reported an output protocol error.
  2492.           BFFF0037  Device reported an input protocol error.
  2493.           BFFF0038  Bus error occurred during transfer.
  2494.           BFFF003A  Invalid setup (attributes are not consistent).
  2495.           BFFF005F  No listeners condition was detected.
  2496.           BFFF0060  This interface is not the controller in charge.
  2497.           BFFF0067  Operation is not supported on this session.
  2498.           
  2499. ________________________________________________________________________________
  2500.  
  2501.   hp34401a_revisionQuery
  2502.  
  2503.       ViStatus hp34401a_revisionQuery (ViSession instrumentHandle,
  2504.                                        ViChar instrumentDriverRevision[],
  2505.                                        ViChar firmwareRevision[]);
  2506.  
  2507.   Purpose
  2508.  
  2509.       This function returns the revision numbers of the instrument driver and
  2510.       instrument firmware, and tells the user what firmware the driver is
  2511.       compatible with; this instrument driver's Revision Number is "Rev 1.0b,
  2512.       9/95, CVI 3.1" and is compatible with Instrument Firmware Revision
  2513.       "6-4-1".
  2514.       
  2515.  
  2516.   Parameter List
  2517.  
  2518.       instrumentHandle
  2519.  
  2520.           Variable Type       ViSession
  2521.  
  2522.           This control accepts the Instrument Handle returned by the Initialize
  2523.           function to select the desired instrument driver session.
  2524.           
  2525.           Default Value:  None
  2526.  
  2527.       instrumentDriverRevision
  2528.  
  2529.           Variable Type       ViChar[]
  2530.  
  2531.           This control returns the Instrument Driver Software Revision.
  2532.           
  2533.           Notes:
  2534.           
  2535.           (1) The array must contain at least 256 elements ViChar[256].
  2536.  
  2537.       firmwareRevision
  2538.  
  2539.           Variable Type       ViChar[]
  2540.  
  2541.           This control returns the Instrument Firmware Revision.
  2542.           
  2543.           Notes:
  2544.           
  2545.           (1) The array must contain at least 256 elements ViChar[256].
  2546.  
  2547.   Return Value
  2548.  
  2549.           This control contains the status code returned by the function call.
  2550.           
  2551.           Status Codes:
  2552.           
  2553.           Status    Description
  2554.           -------------------------------------------------
  2555.                  0  No error (the call was successful).
  2556.           
  2557.           3FFF0005  The specified termination character was read.
  2558.           3FFF0006  The specified number of bytes was read.
  2559.           
  2560.           BFFF0000  Miscellaneous or system error occurred.
  2561.           BFFF000E  Invalid session handle.
  2562.           BFFF0015  Timeout occurred before operation could complete.
  2563.           BFFF0034  Violation of raw write protocol occurred.
  2564.           BFFF0035  Violation of raw read protocol occurred.
  2565.           BFFF0036  Device reported an output protocol error.
  2566.           BFFF0037  Device reported an input protocol error.
  2567.           BFFF0038  Bus error occurred during transfer.
  2568.           BFFF003A  Invalid setup (attributes are not consistent).
  2569.           BFFF005F  No listeners condition was detected.
  2570.           BFFF0060  This interface is not the controller in charge.
  2571.           BFFF0067  Operation is not supported on this session.
  2572.           
  2573. ________________________________________________________________________________
  2574.  
  2575.   hp34401a_selfTest
  2576.  
  2577.       ViStatus hp34401a_selfTest (ViSession instrumentHandle, ViInt16 *selfTestResult,
  2578.                                   ViChar selfTestMessage[]);
  2579.  
  2580.   Purpose
  2581.  
  2582.       This function runs the instrument's self test routine and returns the
  2583.       test result.
  2584.       
  2585.       Notes:
  2586.       (1) The Self-Test routine will take approximately 7 seconds.
  2587.       
  2588.       (2) This instrument does not return a self-test result string so the
  2589.       numerical result is copied into the string parameter and returned.
  2590.  
  2591.   Parameter List
  2592.  
  2593.       instrumentHandle
  2594.  
  2595.           Variable Type       ViSession
  2596.  
  2597.           This control accepts the Instrument Handle returned by the Initialize
  2598.           function to select the desired instrument driver session.
  2599.           
  2600.           Default Value:  None
  2601.  
  2602.       selfTestResult
  2603.  
  2604.           Variable Type       ViInt16 (passed by reference)
  2605.  
  2606.           This control contains the value returned from the instrument self
  2607.           test.  Zero means success.  One means the self-test failed.  For any
  2608.           other code, see the device's operator's manual.
  2609.           
  2610.  
  2611.       selfTestMessage
  2612.  
  2613.           Variable Type       ViChar[]
  2614.  
  2615.           This control contains the string returned from the self test. See the
  2616.           device's operation manual for an explanation of the string's
  2617.           contents.
  2618.           
  2619.           Notes:
  2620.           
  2621.           (1) The array must contain at least 256 elements ViChar[256].
  2622.           
  2623.           (2) This instrument does not return a self-test result string so the
  2624.           numerical result is copied into the string parameter and returned.
  2625.  
  2626.   Return Value
  2627.  
  2628.           This control contains the status code returned by the function call.
  2629.           
  2630.           Status Codes:
  2631.           
  2632.           Status    Description
  2633.           -------------------------------------------------
  2634.                  0  No error (the call was successful).
  2635.           
  2636.           3FFF0005  The specified termination character was read.
  2637.           3FFF0006  The specified number of bytes was read.
  2638.           
  2639.           BFFF0000  Miscellaneous or system error occurred.
  2640.           BFFF000E  Invalid session handle.
  2641.           BFFF0015  Timeout occurred before operation could complete.
  2642.           BFFF0034  Violation of raw write protocol occurred.
  2643.           BFFF0035  Violation of raw read protocol occurred.
  2644.           BFFF0036  Device reported an output protocol error.
  2645.           BFFF0037  Device reported an input protocol error.
  2646.           BFFF0038  Bus error occurred during transfer.
  2647.           BFFF003A  Invalid setup (attributes are not consistent).
  2648.           BFFF005F  No listeners condition was detected.
  2649.           BFFF0060  This interface is not the controller in charge.
  2650.           BFFF0067  Operation is not supported on this session.
  2651.           
  2652. ________________________________________________________________________________
  2653.  
  2654.   hp34401a_singleMeas
  2655.  
  2656.       ViStatus hp34401a_singleMeas (ViSession instrumentHandle, ViReal64 *measurement);
  2657.  
  2658.   Purpose
  2659.  
  2660.       Puts the instrument into the wait-for-trigger state and waits until the
  2661.       trigger has been received, then returns a single reading. This function
  2662.       uses synchronous techniques to determine when the measurement is
  2663.       complete. Using this method the function will wait while the measurement
  2664.       is in progress. The advantage of this method is that the user can use one
  2665.       function to enter the wait-for-trigger state and also return the reading.
  2666.       The disadvantage is that no other operation can be performed while
  2667.       measurement is in progress.
  2668.       
  2669.  
  2670.   Parameter List
  2671.  
  2672.       instrumentHandle
  2673.  
  2674.           Variable Type       ViSession
  2675.  
  2676.           This control accepts the Instrument Handle returned by the Initialize
  2677.           function to select the desired instrument driver session.
  2678.           
  2679.           Default Value:  None
  2680.  
  2681.       measurement
  2682.  
  2683.           Variable Type       ViReal64 (passed by reference)
  2684.  
  2685.           Triggers and returns a measurement.
  2686.           
  2687.           Units:
  2688.           Voltage - Volts
  2689.           Resistance - Ohms
  2690.           Current - Amps
  2691.           Frequency - Hertz
  2692.           Period - Seconds
  2693.           
  2694.           
  2695.  
  2696.   Return Value
  2697.  
  2698.           This control contains the status code returned by the function call.
  2699.           
  2700.           Status Codes:
  2701.           
  2702.           Status    Description
  2703.           -------------------------------------------------
  2704.                  0  No error (the call was successful).
  2705.           
  2706.           3FFF0005  The specified termination character was read.
  2707.           3FFF0006  The specified number of bytes was read.
  2708.           
  2709.           BFFC0803  Error Scanning Response.
  2710.           
  2711.           BFFF0000  Miscellaneous or system error occurred.
  2712.           BFFF000E  Invalid session handle.
  2713.           BFFF0015  Timeout occurred before operation could complete.
  2714.           BFFF0034  Violation of raw write protocol occurred.
  2715.           BFFF0035  Violation of raw read protocol occurred.
  2716.           BFFF0036  Device reported an output protocol error.
  2717.           BFFF0037  Device reported an input protocol error.
  2718.           BFFF0038  Bus error occurred during transfer.
  2719.           BFFF003A  Invalid setup (attributes are not consistent).
  2720.           BFFF005F  No listeners condition was detected.
  2721.           BFFF0060  This interface is not the controller in charge.
  2722.           BFFF0067  Operation is not supported on this session.
  2723.           
  2724. ________________________________________________________________________________
  2725.  
  2726.   hp34401a_softTrig
  2727.  
  2728.       ViStatus hp34401a_softTrig (ViSession instrumentHandle);
  2729.  
  2730.   Purpose
  2731.  
  2732.       When the instrument trigger source is configured for software trigger,
  2733.       this panel triggers the instrument once.
  2734.       
  2735.  
  2736.   Parameter List
  2737.  
  2738.       instrumentHandle
  2739.  
  2740.           Variable Type       ViSession
  2741.  
  2742.           This control accepts the Instrument Handle returned by the Initialize
  2743.           function to select the desired instrument driver session.
  2744.           
  2745.           Default Value:  None
  2746.  
  2747.   Return Value
  2748.  
  2749.           This control contains the status code returned by the function call.
  2750.           
  2751.           Status Codes:
  2752.           
  2753.           Status    Description
  2754.           -------------------------------------------------
  2755.                  0  No error (the call was successful).
  2756.           
  2757.           3FFF0005  The specified termination character was read.
  2758.           3FFF0006  The specified number of bytes was read.
  2759.           
  2760.           BFFF0000  Miscellaneous or system error occurred.
  2761.           BFFF000E  Invalid session handle.
  2762.           BFFF0015  Timeout occurred before operation could complete.
  2763.           BFFF0034  Violation of raw write protocol occurred.
  2764.           BFFF0035  Violation of raw read protocol occurred.
  2765.           BFFF0036  Device reported an output protocol error.
  2766.           BFFF0037  Device reported an input protocol error.
  2767.           BFFF0038  Bus error occurred during transfer.
  2768.           BFFF003A  Invalid setup (attributes are not consistent).
  2769.           BFFF005F  No listeners condition was detected.
  2770.           BFFF0060  This interface is not the controller in charge.
  2771.           BFFF0067  Operation is not supported on this session.
  2772.           
  2773. ________________________________________________________________________________
  2774.  
  2775.   hp34401a_waitForTrigger
  2776.  
  2777.       ViStatus hp34401a_waitForTrigger (ViSession instrumentHandle);
  2778.  
  2779.   Purpose
  2780.  
  2781.       Puts the instrument into the wait-for-trigger state. The user must use
  2782.       the Fetch Measurements function to return the readings. This method of
  2783.       taking measurements uses asynchronous techniques to determine when the
  2784.       measurements are  complete. Using this method the measurements are
  2785.       initiated by this function, but the readings must be returned upon
  2786.       completion by the Fetch Measurements function.The advantage of this
  2787.       method is that while the measurements are being taken, the user can
  2788.       perform other tasks, such as triggering the instrument via software
  2789.       trigger or the user can be sending commands to other instruments. The
  2790.       disadvantage of this method is that the user is burdened with determining
  2791.       when the measurements are complete.
  2792.       
  2793.  
  2794.   Parameter List
  2795.  
  2796.       instrumentHandle
  2797.  
  2798.           Variable Type       ViSession
  2799.  
  2800.           This control accepts the Instrument Handle returned by the Initialize
  2801.           function to select the desired instrument driver session.
  2802.           
  2803.           Default Value:  None
  2804.  
  2805.   Return Value
  2806.  
  2807.           This control contains the status code returned by the function call.
  2808.           
  2809.           Status Codes:
  2810.           
  2811.           Status    Description
  2812.           -------------------------------------------------
  2813.                  0  No error (the call was successful).
  2814.           
  2815.           3FFF0005  The specified termination character was read.
  2816.           3FFF0006  The specified number of bytes was read.
  2817.           
  2818.           BFFF0000  Miscellaneous or system error occurred.
  2819.           BFFF000E  Invalid session handle.
  2820.           BFFF0015  Timeout occurred before operation could complete.
  2821.           BFFF0034  Violation of raw write protocol occurred.
  2822.           BFFF0035  Violation of raw read protocol occurred.
  2823.           BFFF0036  Device reported an output protocol error.
  2824.           BFFF0037  Device reported an input protocol error.
  2825.           BFFF0038  Bus error occurred during transfer.
  2826.           BFFF003A  Invalid setup (attributes are not consistent).
  2827.           BFFF005F  No listeners condition was detected.
  2828.           BFFF0060  This interface is not the controller in charge.
  2829.           BFFF0067  Operation is not supported on this session.
  2830.           
  2831. ________________________________________________________________________________
  2832.  
  2833.   hp34401a_writeInstrData
  2834.  
  2835.       ViStatus hp34401a_writeInstrData (ViSession instrumentHandle,
  2836.                                         ViString writeBuffer);
  2837.  
  2838.   Purpose
  2839.  
  2840.       This function writes commands and queries to the instrument to modify
  2841.       parameters and query device settings.
  2842.       
  2843.  
  2844.   Parameter List
  2845.  
  2846.       instrumentHandle
  2847.  
  2848.           Variable Type       ViSession
  2849.  
  2850.           This control accepts the Instrument Handle returned by the Initialize
  2851.           function to select the desired instrument driver session.
  2852.           
  2853.           Default Value:  None
  2854.  
  2855.       writeBuffer
  2856.  
  2857.           Variable Type       ViString
  2858.  
  2859.           The user can use this control to send common commands and queries to
  2860.           the instrument. This control can also be used to write any valid
  2861.           command to the instrument.
  2862.           
  2863.           Default Value:  "*RST"
  2864.           
  2865.           Notes:
  2866.           
  2867.           (1) The command or query to be sent to the instrument may be a
  2868.           literal enclosed in double quotes i.e. "*RST" or may be contained in
  2869.           a variable of type string.
  2870.           
  2871.  
  2872.   Return Value
  2873.  
  2874.           This control contains the status code returned by the function call.
  2875.           
  2876.           Status Codes:
  2877.           
  2878.           Status    Description
  2879.           -------------------------------------------------
  2880.                  0  No error (the call was successful).
  2881.           
  2882.           3FFF0005  The specified termination character was read.
  2883.           3FFF0006  The specified number of bytes was read.
  2884.           
  2885.           BFFF0000  Miscellaneous or system error occurred.
  2886.           BFFF000E  Invalid session handle.
  2887.           BFFF0015  Timeout occurred before operation could complete.
  2888.           BFFF0034  Violation of raw write protocol occurred.
  2889.           BFFF0035  Violation of raw read protocol occurred.
  2890.           BFFF0036  Device reported an output protocol error.
  2891.           BFFF0037  Device reported an input protocol error.
  2892.           BFFF0038  Bus error occurred during transfer.
  2893.           BFFF003A  Invalid setup (attributes are not consistent).
  2894.           BFFF005F  No listeners condition was detected.
  2895.           BFFF0060  This interface is not the controller in charge.
  2896.           BFFF0067  Operation is not supported on this session.
  2897.           
  2898.