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

  1.  
  2.                     Fluke 45 Digital Multimeter (VISA I/O)
  3. ________________________________________________________________________________
  4.  
  5.   Introduction:
  6.  
  7.   This instrument driver provides programming support for Fluke 45 Digital Multimeter (VISA I/O).
  8.   It contains functions for opening, configuring, taking measurements from, and
  9.   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.  
  24.   Error Codes:
  25.  
  26.   Error codes are returned as the return value of each instrument driver
  27.   function. A program should examine this value after each call to an instrument
  28.   driver function to determine if any error occurred. Possible error codes and
  29.   their meanings are listed with the corresponding instrument driver function.
  30.  
  31. ________________________________________________________________________________
  32.  
  33.   How To Use This Document:
  34.  
  35.   This document is intended to be used as a programming reference manual.
  36.   It describes each function in the Fluke 45 Digital Multimeter (VISA I/O)
  37.   instrument. The functions are listed in alphabetical order with a
  38.   description of the function, C syntax of the function, a description of each
  39.   parameter, and possible error codes.
  40.  
  41. ________________________________________________________________________________
  42.  
  43. Function Tree Layout:
  44.  
  45.    Fluke 45 Digital Multimeter (VISA I/O) Function Name:
  46.  
  47.       Initialize                                  fl45_init
  48.       Application Functions
  49.          Set Up & Read Measurements               fl45_applicReadMeas
  50.       Configuration Functions
  51.          Configure Measurements                   fl45_configMeas
  52.          Configure Range                          fl45_configRange
  53.          Configure Trigger                        fl45_configTrig
  54.          Configure Modifiers
  55.             Config Compare                        fl45_configCompare
  56.             Config Hold                           fl45_configHold
  57.             Config Decibel                        fl45_configDecibel
  58.             Config Relative                       fl45_configRelative
  59.             Config Min/Max                        fl45_configMinMax
  60.       Action/Status Functions
  61.          Trigger Measurement                      fl45_trigger
  62.       Data Functions
  63.          Read Primary Display                     fl45_measPrimDisp
  64.          Read Secondary Display                   fl45_measSecDisp
  65.          Display Compare Results                  fl45_measCompare
  66.       Utility Functions
  67.          Write To Instrument                      fl45_writeInstrData
  68.          Read Instrument Data                     fl45_readInstrData
  69.          Reset                                    fl45_reset
  70.          Self-Test                                fl45_selfTest
  71.          Error-Query                              fl45_errorQuery
  72.          Error Message                            fl45_errorMessage
  73.          Revision Query                           fl45_revisionQuery
  74.       Close                                       fl45_close
  75. ________________________________________________________________________________
  76.  
  77.   Fluke 45 Digital Multimeter (VISA I/O)
  78.  
  79.       This instrument module provides programming support for the Fluke 45
  80.       Digital Multimeter.  The module is divided into the following functions:
  81.       
  82.       Functions/Classes:
  83.       
  84.       (1) Initialize:
  85.       This function initializes the instrument and sets it to a default
  86.       configuration.
  87.       
  88.       (2) Application Functions: (Class)
  89.       This class contains high-level, test and measurement routines.  These
  90.       examples call other instrument driver functions to configure, and read
  91.       from the instrument.
  92.       
  93.       (3) Configuration Functions: (Class)
  94.       This class of functions configures the instrument by setting the
  95.       measurement function, autorange, rate, trigger and sensitivity of the
  96.       primary display, and the measurement function of the secondary display.
  97.       
  98.       (4) Action/Status Functions: (Class)
  99.       This class of functions begins an acquisition by the generation of an
  100.       external 'software' trigger.
  101.       
  102.       (5) Data Functions: (Class)
  103.       This class of functions transfers data from the instrument by taking a
  104.       reading from the corresponding display.
  105.       
  106.       (6) Utility Functions: (Class)
  107.       This class of functions provides lower level functions to communicate
  108.       with the instrument, and change instrument parameters.
  109.       
  110.       (7) Close:
  111.       This function takes the instrument offline.
  112.       
  113. ________________________________________________________________________________
  114.  
  115.               The following functions are in alphabetical order.
  116.  
  117. ________________________________________________________________________________
  118.  
  119.   fl45_applicReadMeas
  120.  
  121.       ViStatus fl45_applicReadMeas (ViSession instrumentHandle, ViBoolean readOnly,
  122.                                     ViInt16 setPrimaryDisplay,
  123.                                     ViInt16 setSecondaryDisplay,
  124.                                     ViReal64 *primaryDisplayValue,
  125.                                     ViReal64 *secondaryDisplayValue);
  126.  
  127.   Purpose
  128.  
  129.       This function sets the measurement functions of the primary and secondary
  130.       displays, and reads their current values.  This function does not perform
  131.       any configuration of the triggering or range settings, nor does it
  132.       configure any of the measurement modifiers.
  133.       
  134.       Notes:
  135.       
  136.       (1) If the Secondary Display is OFF, then this function does not attempt
  137.       to read from that display or update the value of that variable.
  138.       
  139.       (2) The secondary display must be set to "7 - Clear" if
  140.       "1 or 8 - AC + DC" (Current or Volts) is selected in the primary display.
  141.       
  142.  
  143.   Parameter List
  144.  
  145.       instrumentHandle
  146.  
  147.           Variable Type       ViSession
  148.  
  149.           This control accepts the Instrument Handle returned by the Initialize
  150.           function to select the desired instrument driver session.
  151.           
  152.           Default Value:  None
  153.  
  154.       readOnly
  155.  
  156.           Variable Type       ViBoolean
  157.  
  158.           This control determines whether the function will both set and read
  159.           the primary and secondary displays of the instrument or just read the
  160.           current value of the displays.
  161.           
  162.           Valid Range:
  163.           VI_OFF (0) - Set and Read (Default Value)
  164.           VI_ON  (1) - Read Only
  165.           
  166.  
  167.       setPrimaryDisplay
  168.  
  169.           Variable Type       ViInt16
  170.  
  171.           Specifies the measurement function of the Primary Display.
  172.           See NOTE below.
  173.           
  174.           Valid Range:
  175.           0 - AC Current
  176.           1 - AC + DC rms Current
  177.           2 - DC Current
  178.           3 - Continuity
  179.           4 - Diode
  180.           5 - Frequency
  181.           6 - Ohms
  182.           7 - AC Volts
  183.           8 - AC + DC rms Volts
  184.           9 - DC Volts (Default Value)
  185.           
  186.           Notes:
  187.           
  188.           (1) When the Primary Display is executed, the Secondary Display is
  189.           cleared, and set to the value of the Secondary Display Control.  The
  190.           Default for the Secondary Display is "Clear".
  191.           
  192.  
  193.       setSecondaryDisplay
  194.  
  195.           Variable Type       ViInt16
  196.  
  197.           Specifies the measurement function of the Secondary Display.
  198.           See NOTES below.
  199.           
  200.           Valid Range:
  201.           0 - AC Current
  202.           1 - DC Current
  203.           2 - Diode
  204.           3 - Frequency
  205.           4 - Ohms
  206.           5 - AC Volts
  207.           6 - DC Volts
  208.           7 - Clear Measurement (Default Value)
  209.           
  210.           Notes:
  211.           
  212.           (1) When the Primary Display is executed, the Secondary Display is
  213.           cleared and set to the current value of this Control.
  214.           
  215.           (2) The secondary display must be set to "7 - Clear" if
  216.           "1 or 8 - AC + DC" (Current or Volts) is selected in the primary
  217.           display.
  218.           
  219.  
  220.       primaryDisplayValue
  221.  
  222.           Variable Type       ViReal64 (passed by reference)
  223.  
  224.           This control displays the most recent measurement read from the
  225.           primary display.
  226.           
  227.  
  228.       secondaryDisplayValue
  229.  
  230.           Variable Type       ViReal64 (passed by reference)
  231.  
  232.           This control displays the most recent measurement read from the
  233.           Secondary display.
  234.           
  235.  
  236.   Return Value
  237.  
  238.           This control contains the status code returned by the function call.
  239.           
  240.           Status Codes:
  241.           
  242.           Status    Description
  243.           -------------------------------------------------
  244.                  0  No error (the call was successful).
  245.           
  246.           3FFF0005  The specified termination character was read.
  247.           3FFF0006  The specified number of bytes was read.
  248.           
  249.           BFFC0002  Parameter 2 (Read Only) out of range.
  250.           BFFC0003  Parameter 3 (Set Primary Display) out of range.
  251.           BFFC0004  Parameter 4 (Set Secondary Display) out of range.
  252.           
  253.           BFFF0000  Miscellaneous or system error occurred.
  254.           BFFF000E  Invalid session handle.
  255.           BFFF0015  Timeout occurred before operation could complete.
  256.           BFFF0034  Violation of raw write protocol occurred.
  257.           BFFF0035  Violation of raw read protocol occurred.
  258.           BFFF0036  Device reported an output protocol error.
  259.           BFFF0037  Device reported an input protocol error.
  260.           BFFF0038  Bus error occurred during transfer.
  261.           BFFF003A  Invalid setup (attributes are not consistent).
  262.           BFFF005F  No listeners condition was detected.
  263.           BFFF0060  This interface is not the controller in charge.
  264.           BFFF0067  Operation is not supported on this session.
  265.           
  266.           BFFF0900  Instrument Status Error
  267.           BFFF0901  Instrument Configuration Error
  268.           BFFF0902  Instrument Range Configuration Error
  269.           
  270. ________________________________________________________________________________
  271.  
  272.   fl45_close
  273.  
  274.       ViStatus fl45_close (ViSession instrumentHandle);
  275.  
  276.   Purpose
  277.  
  278.       This function performs the following operations:
  279.       viClose (instrSession) and viClose (rmSession).
  280.       
  281.       Notes:
  282.       
  283.       (1) The instrument must be reinitialized to use it again.
  284.  
  285.   Parameter List
  286.  
  287.       instrumentHandle
  288.  
  289.           Variable Type       ViSession
  290.  
  291.           This control accepts the Instrument Handle returned by the Initialize
  292.           function to select the desired instrument driver session.
  293.           
  294.           Default Value:  None
  295.  
  296.   Return Value
  297.  
  298.           This control contains the status code returned by the function call.
  299.           
  300.           Status Codes:
  301.           
  302.           Status    Description
  303.           -------------------------------------------------
  304.                  0  No error (the call was successful).
  305.           
  306.           3FFF0005  The specified termination character was read.
  307.           3FFF0006  The specified number of bytes was read.
  308.           
  309.           BFFF0000  Miscellaneous or system error occurred.
  310.           BFFF000E  Invalid session handle.
  311.           BFFF0015  Timeout occurred before operation could complete.
  312.           BFFF0034  Violation of raw write protocol occurred.
  313.           BFFF0035  Violation of raw read protocol occurred.
  314.           BFFF0036  Device reported an output protocol error.
  315.           BFFF0037  Device reported an input protocol error.
  316.           BFFF0038  Bus error occurred during transfer.
  317.           BFFF003A  Invalid setup (attributes are not consistent).
  318.           BFFF005F  No listeners condition was detected.
  319.           BFFF0060  This interface is not the controller in charge.
  320.           BFFF0067  Operation is not supported on this session.
  321.           
  322. ________________________________________________________________________________
  323.  
  324.   fl45_configCompare
  325.  
  326.       ViStatus fl45_configCompare (ViSession instrumentHandle, ViBoolean compare,
  327.                                    ViReal64 compareLow, ViReal64 compareHi);
  328.  
  329.   Purpose
  330.  
  331.       This function enables or disables the compare function and allows high
  332.       and low values to be specified.  When executed, the Hold modifier is also
  333.       activated.  The result can be seen in the Compare Display function.
  334.  
  335.   Parameter List
  336.  
  337.       instrumentHandle
  338.  
  339.           Variable Type       ViSession
  340.  
  341.           This control accepts the Instrument Handle returned by the Initialize
  342.           function to select the desired instrument driver session.
  343.           
  344.           Default Value:  None
  345.  
  346.       compare
  347.  
  348.           Variable Type       ViBoolean
  349.  
  350.           This control enters the compare modifier.  'Touch Hold' is
  351.           automatically turned on. (Touch Hold can be turned off afterwards by
  352.           executing the Hold panel with Hold set to off).  The Compare Display
  353.           function displays the outcome.
  354.           
  355.           Valid Range:
  356.           VI_OFF (0) - Off
  357.           VI_ON  (1) - On (Default)
  358.           
  359.  
  360.       compareLow
  361.  
  362.           Variable Type       ViReal64
  363.  
  364.           This control sets the compare low value.
  365.           
  366.           Valid Range: -2.0e7 to 2.0e7
  367.           
  368.           Default Value: 0.0
  369.  
  370.       compareHi
  371.  
  372.           Variable Type       ViReal64
  373.  
  374.           This control sets the compare hi value.
  375.           
  376.           Valid Range: -2.0e7 to 2.0e7
  377.           
  378.           Default Value: 0.0
  379.  
  380.   Return Value
  381.  
  382.           This control contains the status code returned by the function call.
  383.           
  384.           Status Codes:
  385.           
  386.           Status    Description
  387.           -------------------------------------------------
  388.                  0  No error (the call was successful).
  389.           
  390.           3FFF0005  The specified termination character was read.
  391.           3FFF0006  The specified number of bytes was read.
  392.           
  393.           BFFC0002  Parameter 2 (Compare) out of range.
  394.           BFFC0003  Parameter 3 (Compare Low) out of range.
  395.           BFFC0004  Parameter 4 (Compare High) out of range.
  396.           
  397.           BFFF0000  Miscellaneous or system error occurred.
  398.           BFFF000E  Invalid session handle.
  399.           BFFF0015  Timeout occurred before operation could complete.
  400.           BFFF0034  Violation of raw write protocol occurred.
  401.           BFFF0035  Violation of raw read protocol occurred.
  402.           BFFF0036  Device reported an output protocol error.
  403.           BFFF0037  Device reported an input protocol error.
  404.           BFFF0038  Bus error occurred during transfer.
  405.           BFFF003A  Invalid setup (attributes are not consistent).
  406.           BFFF005F  No listeners condition was detected.
  407.           BFFF0060  This interface is not the controller in charge.
  408.           BFFF0067  Operation is not supported on this session.
  409.           
  410. ________________________________________________________________________________
  411.  
  412.   fl45_configDecibel
  413.  
  414.       ViStatus fl45_configDecibel (ViSession instrumentHandle, ViInt16 decibel,
  415.                                    ViInt16 referenceImpedanceohms);
  416.  
  417.   Purpose
  418.  
  419.       This function enables or disables dBm or dB power, and allows a dB
  420.       reference impedance to be specified.  The dB function must be configured
  421.       appropriately.  For dB power, the dB reference impedance must be set less
  422.       than or equal to 16 ohms.  For dB, the measurement function must be set
  423.       to voltage.
  424.  
  425.   Parameter List
  426.  
  427.       instrumentHandle
  428.  
  429.           Variable Type       ViSession
  430.  
  431.           This control accepts the Instrument Handle returned by the Initialize
  432.           function to select the desired instrument driver session.
  433.           
  434.           Default Value:  None
  435.  
  436.       decibel
  437.  
  438.           Variable Type       ViInt16
  439.  
  440.           This control switches the primary channel from normal to dBm or dB
  441.           power modifiers.
  442.           See NOTES
  443.           
  444.           Valid Range:
  445.           0 - Off (Default Value)
  446.           1 - dBm
  447.           2 - dB power
  448.           
  449.           NOTES:
  450.           (1) The dB modifier can only be activated when the measurement
  451.           function is in Volts.
  452.           
  453.           (2) The dB Power modifier requires the reference impedance not exceed
  454.           16 ohms.
  455.  
  456.       referenceImpedanceohms
  457.  
  458.           Variable Type       ViInt16
  459.  
  460.           This control sets the reference impedance to one of twenty-one
  461.           discrete values in the range 2 to 8000 ohms.
  462.           
  463.           Valid Range:
  464.            1 -    2 ohms
  465.            2 -    4
  466.            3 -    8
  467.            4 -   16 (Default Value)
  468.            5 -   50
  469.            6 -   75
  470.            7 -   93
  471.            8 -  110
  472.            9 -  124
  473.           10 -  125
  474.           11 -  135
  475.           12 -  150
  476.           13 -  250
  477.           14 -  300
  478.           15 -  500
  479.           16 -  600
  480.           17 -  800
  481.           18 -  900
  482.           19 - 1000
  483.           20 - 1200
  484.           21 - 8000
  485.           
  486.  
  487.   Return Value
  488.  
  489.           This control contains the status code returned by the function call.
  490.           
  491.           Status Codes:
  492.           
  493.           Status    Description
  494.           -------------------------------------------------
  495.                  0  No error (the call was successful).
  496.           
  497.           3FFF0005  The specified termination character was read.
  498.           3FFF0006  The specified number of bytes was read.
  499.           
  500.           BFFC0002  Parameter 2 (Decibel) out of range.
  501.           BFFC0003  Parameter 3 (Reference Impedance) out of range.
  502.           
  503.           BFFF0000  Miscellaneous or system error occurred.
  504.           BFFF000E  Invalid session handle.
  505.           BFFF0015  Timeout occurred before operation could complete.
  506.           BFFF0034  Violation of raw write protocol occurred.
  507.           BFFF0035  Violation of raw read protocol occurred.
  508.           BFFF0036  Device reported an output protocol error.
  509.           BFFF0037  Device reported an input protocol error.
  510.           BFFF0038  Bus error occurred during transfer.
  511.           BFFF003A  Invalid setup (attributes are not consistent).
  512.           BFFF005F  No listeners condition was detected.
  513.           BFFF0060  This interface is not the controller in charge.
  514.           BFFF0067  Operation is not supported on this session.
  515.           
  516. ________________________________________________________________________________
  517.  
  518.   fl45_configHold
  519.  
  520.       ViStatus fl45_configHold (ViSession instrumentHandle, ViBoolean hold,
  521.                                 ViInt16 holdThreshold);
  522.  
  523.   Purpose
  524.  
  525.       This function enables or disables the hold function, and allows a hold
  526.       threshold to be specified.
  527.       
  528.       WARNING: If the instrument has the hold modifier and an external trigger
  529.       mode activated; two sequential triggers may cause the instrument to lock
  530.       up.  If this occurs, it may be necessary to clear the instrument by
  531.       turning it off and on and then reinitializing it.
  532.       
  533.       Notes:
  534.       
  535.       (1) The Hold function holds the next triggered value.  Therefore, if an
  536.       external trigger is specified, a trigger must be performed to display a
  537.       value.
  538.  
  539.   Parameter List
  540.  
  541.       instrumentHandle
  542.  
  543.           Variable Type       ViSession
  544.  
  545.           This control accepts the Instrument Handle returned by the Initialize
  546.           function to select the desired instrument driver session.
  547.           
  548.           Default Value:  None
  549.  
  550.       hold
  551.  
  552.           Variable Type       ViBoolean
  553.  
  554.           This control enables or disables the Touch Hold modifier.
  555.           
  556.           Valid Range:
  557.           VI_OFF (0) - Off
  558.           VI_ON  (1) - On (Default)
  559.           
  560.  
  561.       holdThreshold
  562.  
  563.           Variable Type       ViInt16
  564.  
  565.           This control sets the hold measurement threshold.
  566.           
  567.           Valid Range:
  568.           1 - Very Stable
  569.           2 - Stable (Default Value)
  570.           3 - Noisy
  571.           
  572.  
  573.   Return Value
  574.  
  575.           This control contains the status code returned by the function call.
  576.           
  577.           Status Codes:
  578.           
  579.           Status    Description
  580.           -------------------------------------------------
  581.                  0  No error (the call was successful).
  582.           
  583.           3FFF0005  The specified termination character was read.
  584.           3FFF0006  The specified number of bytes was read.
  585.           
  586.           BFFC0002  Parameter 2 (Hold) out of range.
  587.           BFFC0003  Parameter 3 (Hold Threshold) out of range.
  588.           
  589.           BFFF0000  Miscellaneous or system error occurred.
  590.           BFFF000E  Invalid session handle.
  591.           BFFF0015  Timeout occurred before operation could complete.
  592.           BFFF0034  Violation of raw write protocol occurred.
  593.           BFFF0035  Violation of raw read protocol occurred.
  594.           BFFF0036  Device reported an output protocol error.
  595.           BFFF0037  Device reported an input protocol error.
  596.           BFFF0038  Bus error occurred during transfer.
  597.           BFFF003A  Invalid setup (attributes are not consistent).
  598.           BFFF005F  No listeners condition was detected.
  599.           BFFF0060  This interface is not the controller in charge.
  600.           BFFF0067  Operation is not supported on this session.
  601.           
  602. ________________________________________________________________________________
  603.  
  604.   fl45_configMeas
  605.  
  606.       ViStatus fl45_configMeas (ViSession instrumentHandle, ViInt16 primaryDisplay,
  607.                                 ViInt16 secondaryDisplay);
  608.  
  609.   Purpose
  610.  
  611.       This function sets the measurement functions of the primary and secondary
  612.       displays.
  613.       
  614.       Notes:
  615.       (1) When changing the measurement function of the primary display, a
  616.       delay may be required before executing a modifier to give the instrument
  617.       time to settle; otherwise the instrument may return a 300 error code.
  618.       
  619.       (2) The secondary display must be set to "7 - Clear" if
  620.       "1 or 8 - AC + DC" (Current or Volts) is selected in the primary display.
  621.       
  622.  
  623.   Parameter List
  624.  
  625.       instrumentHandle
  626.  
  627.           Variable Type       ViSession
  628.  
  629.           This control accepts the Instrument Handle returned by the Initialize
  630.           function to select the desired instrument driver session.
  631.           
  632.           Default Value:  None
  633.  
  634.       primaryDisplay
  635.  
  636.           Variable Type       ViInt16
  637.  
  638.           Specifies the measurement function of the Primary Display.
  639.           See NOTE below.
  640.           
  641.           Valid Range:
  642.           0 - AC Current
  643.           1 - AC + DC rms Current
  644.           2 - DC Current
  645.           3 - Continuity
  646.           4 - Diode
  647.           5 - Frequency
  648.           6 - Ohms
  649.           7 - AC Volts
  650.           8 - AC + DC rms Volts
  651.           9 - DC Volts (Default Value)
  652.           
  653.           Notes:
  654.           
  655.           (1) When the Primary Display is executed, the Secondary Display is
  656.           cleared, and set to the value of the Secondary Display Control.  The
  657.           Default for the secondary display is "Clear".
  658.           
  659.  
  660.       secondaryDisplay
  661.  
  662.           Variable Type       ViInt16
  663.  
  664.           Specifies the measurement function of the Secondary Display.
  665.           See NOTES below.
  666.           
  667.           Valid Range:
  668.           0 - AC Current
  669.           1 - DC Current
  670.           2 - Diode
  671.           3 - Frequency
  672.           4 - Ohms
  673.           5 - AC Volts
  674.           6 - DC Volts
  675.           7 - Clear Measurement (Default Value)
  676.           
  677.           Notes:
  678.           
  679.           (1) When the Primary Display is executed, the Secondary Display is
  680.           cleared and set to the current value of this Control.
  681.           
  682.           (2) The secondary display must be set to "7 - Clear" if
  683.           "1 or 8 - AC + DC" (Current or Volts) is selected in the primary
  684.           display.
  685.           
  686.  
  687.   Return Value
  688.  
  689.           This control contains the status code returned by the function call.
  690.           
  691.           Status Codes:
  692.           
  693.           Status    Description
  694.           -------------------------------------------------
  695.                  0  No error (the call was successful).
  696.           
  697.           3FFF0005  The specified termination character was read.
  698.           3FFF0006  The specified number of bytes was read.
  699.           
  700.           BFFC0002  Parameter 2 (Primary Display) out of range.
  701.           BFFC0003  Parameter 3 (Secondary Display) out of range.
  702.           
  703.           BFFF0000  Miscellaneous or system error occurred.
  704.           BFFF000E  Invalid session handle.
  705.           BFFF0015  Timeout occurred before operation could complete.
  706.           BFFF0034  Violation of raw write protocol occurred.
  707.           BFFF0035  Violation of raw read protocol occurred.
  708.           BFFF0036  Device reported an output protocol error.
  709.           BFFF0037  Device reported an input protocol error.
  710.           BFFF0038  Bus error occurred during transfer.
  711.           BFFF003A  Invalid setup (attributes are not consistent).
  712.           BFFF005F  No listeners condition was detected.
  713.           BFFF0060  This interface is not the controller in charge.
  714.           BFFF0067  Operation is not supported on this session.
  715.           
  716.           BFFF0900  Instrument Status Error
  717.           BFFF0901  Instrument Configuration Error
  718.           BFFF0902  Instrument Range Configuration Error
  719.           
  720. ________________________________________________________________________________
  721.  
  722.   fl45_configMinMax
  723.  
  724.       ViStatus fl45_configMinMax (ViSession instrumentHandle, ViInt16 minMax,
  725.                                   ViReal64 minSet, ViReal64 maxSet);
  726.  
  727.   Purpose
  728.  
  729.       This function allows the Min and Max modifiers to be enabled or disabled
  730.       and also allows the min and max values to be  initialized.
  731.       
  732.  
  733.   Parameter List
  734.  
  735.       instrumentHandle
  736.  
  737.           Variable Type       ViSession
  738.  
  739.           This control accepts the Instrument Handle returned by the Initialize
  740.           function to select the desired instrument driver session.
  741.           
  742.           Default Value:  None
  743.  
  744.       minMax
  745.  
  746.           Variable Type       ViInt16
  747.  
  748.           This control enters the Min/Max modifier.  When Min On is selected,
  749.           the present reading becomes the minimum value.  When Min Set is
  750.           selected, a minimum value can be specified.  When Max On is selected,
  751.           the present reading becomes the maximum value.  Max Set allows a
  752.           maximum value to be specified.  Since autorange is disabled, the
  753.           correct range should be selected prior to using this control.
  754.           
  755.           Valid Range:
  756.           0 - Off (Default Value)
  757.           1 - Min On
  758.           2 - Min Set
  759.           3 - Max On
  760.           4 - Max Set
  761.           
  762.  
  763.       minSet
  764.  
  765.           Variable Type       ViReal64
  766.  
  767.           This control allows a minimum value to be input upon entering the
  768.           Min/Max modifier.  Autorange is disabled, so the input number must be
  769.           appropriate for the range selected.
  770.           
  771.           Valid Range:
  772.           Min Set must be within the measurement range.
  773.           
  774.           Default Value: 0.0
  775.  
  776.       maxSet
  777.  
  778.           Variable Type       ViReal64
  779.  
  780.           This control allows a maximum value to be input upon entering the
  781.           Min/Max modifier. Autorange is disabled, so the input number must be
  782.           appropriate for the range selected.
  783.           
  784.           Valid Range:
  785.           Max Set must be within the measurement range.
  786.           
  787.           Default Value: 0.0
  788.  
  789.   Return Value
  790.  
  791.           This control contains the status code returned by the function call.
  792.           
  793.           Status Codes:
  794.           
  795.           Status    Description
  796.           -------------------------------------------------
  797.                  0  No error (the call was successful).
  798.           
  799.           3FFF0005  The specified termination character was read.
  800.           3FFF0006  The specified number of bytes was read.
  801.           
  802.           BFFC0002  Parameter 2 (Min Max) out of range.
  803.           BFFC0003  Parameter 3 (Min Set) out of range.
  804.           BFFC0004  Parameter 4 (Max Set) out of range.
  805.           
  806.           BFFF0000  Miscellaneous or system error occurred.
  807.           BFFF000E  Invalid session handle.
  808.           BFFF0015  Timeout occurred before operation could complete.
  809.           BFFF0034  Violation of raw write protocol occurred.
  810.           BFFF0035  Violation of raw read protocol occurred.
  811.           BFFF0036  Device reported an output protocol error.
  812.           BFFF0037  Device reported an input protocol error.
  813.           BFFF0038  Bus error occurred during transfer.
  814.           BFFF003A  Invalid setup (attributes are not consistent).
  815.           BFFF005F  No listeners condition was detected.
  816.           BFFF0060  This interface is not the controller in charge.
  817.           BFFF0067  Operation is not supported on this session.
  818.           
  819. ________________________________________________________________________________
  820.  
  821.   fl45_configRange
  822.  
  823.       ViStatus fl45_configRange (ViSession instrumentHandle, ViBoolean range,
  824.                                  ViInt16 sensitivity);
  825.  
  826.   Purpose
  827.  
  828.       This function sets the autorange or sensitivity (if autorange is off) of
  829.       the primary display.  The Primary Display must be configured
  830.       appropriately; for autorange, the measurement function must be set to
  831.       current, frequency, ohms or voltage, also the Relative, Min/Max or
  832.       Decibel modifiers cannot be in use.
  833.  
  834.   Parameter List
  835.  
  836.       instrumentHandle
  837.  
  838.           Variable Type       ViSession
  839.  
  840.           This control accepts the Instrument Handle returned by the Initialize
  841.           function to select the desired instrument driver session.
  842.           
  843.           Default Value:  None
  844.  
  845.       range
  846.  
  847.           Variable Type       ViBoolean
  848.  
  849.           This control switches the primary channel from auto to fixed (manual)
  850.           ranging.
  851.           See NOTE below.
  852.           
  853.           Valid Range:
  854.           VI_OFF (0) - Fixed
  855.           VI_ON  (1) - Auto (Default Value)
  856.           
  857.           Notes:
  858.           
  859.           (1) The Primary Display must be configured appropriately.  For
  860.           autorange, the function must be set to current, frequency, ohms or
  861.           voltage.  Also, the Relative, Min/Max or Decibel modifiers cannot be
  862.           in use.
  863.  
  864.       sensitivity
  865.  
  866.           Variable Type       ViInt16
  867.  
  868.           This control specifies the measurement range of the primary channel
  869.           of the meter, if autorange is off.  Not all ranges are available for
  870.           all of the functions.
  871.           
  872.           Valid Range:
  873.           Range is dependent on the function and triggering rate selected.  See
  874.           tables below.
  875.           
  876.           Default Value: 8 - *
  877.           
  878.           Valid ranges at fast & medium measurement rates:
  879.           
  880.           Valid Range |  Volts  | Ohms     |  Amps  | Frequency
  881.           -----------------------------------------------------
  882.               1       |  300 mV | 300  Ohm |  30 mA | 1000  Hz
  883.               2       |    3  V |   3 kOhm | 100 mA |   10 kHz
  884.               3       |   30  V |  30 kOhm |  10  A |  100 kHz
  885.               4       |  300  V | 300 kOhm |  error | 1000 kHz
  886.               5       | 1000  V |   3 MOhm |  error |    1 MHz
  887.               6       | error   |  30 MOhm |  error |  error
  888.               7       | error   | 300 MOhm |  error |  error
  889.               *       | if exiting from autorange, the present range
  890.                         becomes the selected range.
  891.           
  892.           Valid ranges at slow measurement rates:
  893.           
  894.           Valid Range |  Volts  | Ohms      |  Amps   | Frequency
  895.           -------------------------------------------------------
  896.               1       |  100 mV |  100  Ohm |   10 mA | 1000  Hz
  897.               2       | 1000 mV | 1000  Ohm |  100 mA |   10 kHz
  898.               3       |   10  V |   10 kOhm |   10  A |  100 kHz
  899.               4       |  100  V |  100 kOhm |  error  | 1000 kHz
  900.               5       | 1000  V | 1000 kOhm |  error  |    1 MHz
  901.               6       | error   |   10 MOhm |  error  |  error
  902.               7       | error   |  100 MOhm |  error  |  error
  903.               *       | if exiting from autorange, the present range
  904.                         becomes the selected range.
  905.           
  906.  
  907.   Return Value
  908.  
  909.           This control contains the status code returned by the function call.
  910.           
  911.           Status Codes:
  912.           
  913.           Status    Description
  914.           -------------------------------------------------
  915.                  0  No error (the call was successful).
  916.           
  917.           3FFF0005  The specified termination character was read.
  918.           3FFF0006  The specified number of bytes was read.
  919.           
  920.           BFFC0002  Parameter 2 (Range) out of range.
  921.           BFFC0003  Parameter 3 (Sensitivity) out of range.
  922.           
  923.           BFFF0000  Miscellaneous or system error occurred.
  924.           BFFF000E  Invalid session handle.
  925.           BFFF0015  Timeout occurred before operation could complete.
  926.           BFFF0034  Violation of raw write protocol occurred.
  927.           BFFF0035  Violation of raw read protocol occurred.
  928.           BFFF0036  Device reported an output protocol error.
  929.           BFFF0037  Device reported an input protocol error.
  930.           BFFF0038  Bus error occurred during transfer.
  931.           BFFF003A  Invalid setup (attributes are not consistent).
  932.           BFFF005F  No listeners condition was detected.
  933.           BFFF0060  This interface is not the controller in charge.
  934.           BFFF0067  Operation is not supported on this session.
  935.           
  936.           BFFF0900  Instrument Status Error
  937.           BFFF0901  Instrument Configuration Error
  938.           BFFF0902  Instrument Range Configuration Error
  939.           
  940. ________________________________________________________________________________
  941.  
  942.   fl45_configRelative
  943.  
  944.       ViStatus fl45_configRelative (ViSession instrumentHandle, ViInt16 relative,
  945.                                     ViReal64 baseSet);
  946.  
  947.   Purpose
  948.  
  949.       This function enables or disables the relative modifier.  Allows a
  950.       relative setting to be specified.
  951.  
  952.   Parameter List
  953.  
  954.       instrumentHandle
  955.  
  956.           Variable Type       ViSession
  957.  
  958.           This control accepts the Instrument Handle returned by the Initialize
  959.           function to select the desired instrument driver session.
  960.           
  961.           Default Value:  None
  962.  
  963.       relative
  964.  
  965.           Variable Type       ViInt16
  966.  
  967.           This control enters the relative modifier. If Base is selected, the
  968.           value shown on the primary display becomes the relative base.  If
  969.           Base Set is selected, a relative base can be input.  Since autorange
  970.           is disabled, the number that is input must be within the selected
  971.           sensitivity range.
  972.           
  973.           Valid Range:
  974.           0 - Off (Default Value)
  975.           1 - Base
  976.           2 - Base Set
  977.           
  978.  
  979.       baseSet
  980.  
  981.           Variable Type       ViReal64
  982.  
  983.           This control allows a relative base to be input.  The reading on the
  984.           primary display is the difference between the base and an input
  985.           measurement.  For example, if the relative base is 15.000 Volts, and
  986.           the present reading is 14.100 Volts, the display will show -0.900
  987.           Autorange is disabled, so the input number must be appropriate for
  988.           the range selected.
  989.           
  990.           Valid Range:
  991.           Base Set must be within the measurement range.
  992.           
  993.           Default Value: 0.0
  994.  
  995.   Return Value
  996.  
  997.           This control contains the status code returned by the function call.
  998.           
  999.           Status Codes:
  1000.           
  1001.           Status    Description
  1002.           -------------------------------------------------
  1003.                  0  No error (the call was successful).
  1004.           
  1005.           3FFF0005  The specified termination character was read.
  1006.           3FFF0006  The specified number of bytes was read.
  1007.           
  1008.           BFFC0002  Parameter 2 (Relative) out of range.
  1009.           BFFC0003  Parameter 3 (Base Set) out of range.
  1010.           
  1011.           BFFF0000  Miscellaneous or system error occurred.
  1012.           BFFF000E  Invalid session handle.
  1013.           BFFF0015  Timeout occurred before operation could complete.
  1014.           BFFF0034  Violation of raw write protocol occurred.
  1015.           BFFF0035  Violation of raw read protocol occurred.
  1016.           BFFF0036  Device reported an output protocol error.
  1017.           BFFF0037  Device reported an input protocol error.
  1018.           BFFF0038  Bus error occurred during transfer.
  1019.           BFFF003A  Invalid setup (attributes are not consistent).
  1020.           BFFF005F  No listeners condition was detected.
  1021.           BFFF0060  This interface is not the controller in charge.
  1022.           BFFF0067  Operation is not supported on this session.
  1023.           
  1024. ________________________________________________________________________________
  1025.  
  1026.   fl45_configTrig
  1027.  
  1028.       ViStatus fl45_configTrig (ViSession instrumentHandle, ViInt16 trigger,
  1029.                                 ViInt16 rate);
  1030.  
  1031.   Purpose
  1032.  
  1033.       This function sets the trigger mode and rate.
  1034.       
  1035.       WARNING: If the instrument has the hold modifier and external trigger
  1036.       mode activated, two sequential triggers may cause the instrument to lock
  1037.       up.  If the instrument locks up, it may be necessary to reboot the
  1038.       instrument.
  1039.  
  1040.   Parameter List
  1041.  
  1042.       instrumentHandle
  1043.  
  1044.           Variable Type       ViSession
  1045.  
  1046.           This control accepts the Instrument Handle returned by the Initialize
  1047.           function to select the desired instrument driver session.
  1048.           
  1049.           Default Value:  None
  1050.  
  1051.       trigger
  1052.  
  1053.           Variable Type       ViInt16
  1054.  
  1055.           This control sets the trigger configuration.
  1056.           See NOTE:
  1057.           
  1058.           Valid Range:
  1059.           1 (Internal) - (Default)
  1060.           2 (External)
  1061.           3 (External)
  1062.           4 (External)
  1063.           5 (External)
  1064.           
  1065.           See table below.
  1066.           
  1067.           Type     Trig       Rear Trig    Settling Delay
  1068.           ----------------------------------------------
  1069.            1     Internal     Disabled        -
  1070.            2     External     Disabled        Off
  1071.            3     External     Disabled        On
  1072.            4     External     Enabled         Off
  1073.            5     External     Enabled         On
  1074.           
  1075.           Notes:
  1076.           
  1077.           (1) A Trigger can be supplied to all the external triggers through
  1078.           the Trigger function, or pressing the 'down arrow' on the front panel
  1079.           of the instrument.  Triggers 4 or 5 can also be trigged with a pulse
  1080.           applied to the RS-232 connector (pins 2 and 4).  If an external
  1081.           trigger is selected, a trigger must be applied for a measurement to
  1082.           be available.
  1083.           
  1084.  
  1085.       rate
  1086.  
  1087.           Variable Type       ViInt16
  1088.  
  1089.           This control sets the sampling rate of the meter.
  1090.           
  1091.           Valid Range:
  1092.           0 - Slow
  1093.           1 - Medium (Default)
  1094.           2 - Fast
  1095.           
  1096.  
  1097.   Return Value
  1098.  
  1099.           This control contains the status code returned by the function call.
  1100.           
  1101.           Status Codes:
  1102.           
  1103.           Status    Description
  1104.           -------------------------------------------------
  1105.                  0  No error (the call was successful).
  1106.           
  1107.           3FFF0005  The specified termination character was read.
  1108.           3FFF0006  The specified number of bytes was read.
  1109.           
  1110.           BFFC0002  Parameter 2 (Trigger) out of range.
  1111.           BFFC0003  Parameter 3 (Rate) out of range.
  1112.           
  1113.           BFFF0000  Miscellaneous or system error occurred.
  1114.           BFFF000E  Invalid session handle.
  1115.           BFFF0015  Timeout occurred before operation could complete.
  1116.           BFFF0034  Violation of raw write protocol occurred.
  1117.           BFFF0035  Violation of raw read protocol occurred.
  1118.           BFFF0036  Device reported an output protocol error.
  1119.           BFFF0037  Device reported an input protocol error.
  1120.           BFFF0038  Bus error occurred during transfer.
  1121.           BFFF003A  Invalid setup (attributes are not consistent).
  1122.           BFFF005F  No listeners condition was detected.
  1123.           BFFF0060  This interface is not the controller in charge.
  1124.           BFFF0067  Operation is not supported on this session.
  1125.           
  1126.           BFFF0900  Instrument Status Error
  1127.           BFFF0901  Instrument Configuration Error
  1128.           
  1129. ________________________________________________________________________________
  1130.  
  1131.   fl45_errorMessage
  1132.  
  1133.       ViStatus fl45_errorMessage (ViSession instrumentHandle, ViStatus errorCode,
  1134.                                   ViChar errorMessage[]);
  1135.  
  1136.   Purpose
  1137.  
  1138.       This function takes the Status Code returned by the instrument driver
  1139.       functions, interprets it and returns it as a user readable string.
  1140.  
  1141.   Parameter List
  1142.  
  1143.       instrumentHandle
  1144.  
  1145.           Variable Type       ViSession
  1146.  
  1147.           This control accepts the Instrument Handle returned by the Initialize
  1148.           function to select the desired instrument driver session.
  1149.           
  1150.           Default Value:  VI_NULL
  1151.  
  1152.       errorCode
  1153.  
  1154.           Variable Type       ViStatus
  1155.  
  1156.           This control accepts the Status Code returned from the instrument
  1157.           driver functions.
  1158.           
  1159.           Default Value:  0 - VI_SUCCESS
  1160.  
  1161.       errorMessage
  1162.  
  1163.           Variable Type       ViChar[]
  1164.  
  1165.           This control returns the interpreted Status Code as a user readable
  1166.           message string.
  1167.           
  1168.           Notes:
  1169.           
  1170.           (1) The array must be contain at least 256 elements ViChar[256].
  1171.  
  1172.   Return Value
  1173.  
  1174.           This control contains the status code returned by the function call.
  1175.           
  1176.           Status Codes:
  1177.           
  1178.           Status    Description
  1179.           -------------------------------------------------
  1180.                  0  No error (the call was successful).
  1181.           
  1182.           3FFF0005  The specified termination character was read.
  1183.           3FFF0006  The specified number of bytes was read.
  1184.           
  1185.           BFFF0000  Miscellaneous or system error occurred.
  1186.           BFFF000E  Invalid session handle.
  1187.           BFFF0015  Timeout occurred before operation could complete.
  1188.           BFFF0034  Violation of raw write protocol occurred.
  1189.           BFFF0035  Violation of raw read protocol occurred.
  1190.           BFFF0036  Device reported an output protocol error.
  1191.           BFFF0037  Device reported an input protocol error.
  1192.           BFFF0038  Bus error occurred during transfer.
  1193.           BFFF003A  Invalid setup (attributes are not consistent).
  1194.           BFFF005F  No listeners condition was detected.
  1195.           BFFF0060  This interface is not the controller in charge.
  1196.           BFFF0067  Operation is not supported on this session.
  1197.           
  1198. ________________________________________________________________________________
  1199.  
  1200.   fl45_errorQuery
  1201.  
  1202.       ViStatus fl45_errorQuery (ViSession instrumentHandle, ViInt32 *errorCode,
  1203.                                 ViChar errorMessage[]);
  1204.  
  1205.   Purpose
  1206.  
  1207.       This function reads an error code from the instrument's error queue.
  1208.       
  1209.       Notes:
  1210.       
  1211.       (1) This instrument does not support an Error Query, so this function
  1212.       returns the Warning Code 0x3FFC0104  - VI_WARN_NSUP_ERROR_QUERY
  1213.  
  1214.   Parameter List
  1215.  
  1216.       instrumentHandle
  1217.  
  1218.           Variable Type       ViSession
  1219.  
  1220.           This control accepts the Instrument Handle returned by the Initialize
  1221.           function to select the desired instrument driver session.
  1222.           
  1223.           Default Value:  None
  1224.  
  1225.       errorCode
  1226.  
  1227.           Variable Type       ViInt32 (passed by reference)
  1228.  
  1229.           This control returns the error code read from the instrument's error
  1230.           queue.
  1231.           
  1232.  
  1233.       errorMessage
  1234.  
  1235.           Variable Type       ViChar[]
  1236.  
  1237.           This control returns the error message string read from the
  1238.           instrument's error message queue.
  1239.           
  1240.           Notes:
  1241.           
  1242.           (1) The array must be contain at least 256 elements ViChar[256].
  1243.  
  1244.   Return Value
  1245.  
  1246.           This control contains the status code returned by the function call.
  1247.           
  1248.           Status Codes:
  1249.           
  1250.           Status    Description
  1251.           -------------------------------------------------
  1252.                  0  No error (the call was successful).
  1253.           
  1254.           3FFC0104  Error Query not supported - VI_WARN_NSUP_ERROR_QUERY
  1255.           3FFF0005  The specified termination character was read.
  1256.           3FFF0006  The specified number of bytes was read.
  1257.           
  1258.           BFFF0000  Miscellaneous or system error occurred.
  1259.           BFFF000E  Invalid session handle.
  1260.           BFFF0015  Timeout occurred before operation could complete.
  1261.           BFFF0034  Violation of raw write protocol occurred.
  1262.           BFFF0035  Violation of raw read protocol occurred.
  1263.           BFFF0036  Device reported an output protocol error.
  1264.           BFFF0037  Device reported an input protocol error.
  1265.           BFFF0038  Bus error occurred during transfer.
  1266.           BFFF003A  Invalid setup (attributes are not consistent).
  1267.           BFFF005F  No listeners condition was detected.
  1268.           BFFF0060  This interface is not the controller in charge.
  1269.           BFFF0067  Operation is not supported on this session.
  1270.           
  1271. ________________________________________________________________________________
  1272.  
  1273.   fl45_init
  1274.  
  1275.       ViStatus fl45_init (ViRsrc resourceName, ViBoolean IDQuery,
  1276.                           ViBoolean resetDevice, ViSession *instrumentHandle);
  1277.  
  1278.   Purpose
  1279.  
  1280.       This function performs the following initialization actions:
  1281.       
  1282.       - Opens a session to the Default Resource Manager resource and a session
  1283.       to the specified device using the interface and address specified in the
  1284.       Resource_Name control.
  1285.       
  1286.       - Performs an identification query on the Instrument.
  1287.       
  1288.       - Resets the instrument to a known state.
  1289.       
  1290.       - Sends initialization commands to the instrument that set any necessary
  1291.       programmatic variables such as Headers Off, Short Command form, and Data
  1292.       Transfer Binary to the state necessary for the operation of the
  1293.       instrument driver.
  1294.       
  1295.       - Returns an Instrument Handle which is used to differentiate between
  1296.       different sessions of this instrument driver.
  1297.       
  1298.       - Each time this function is invoked a Unique Session is opened.  It is
  1299.       possible to have more than one session open for the same resource.
  1300.       
  1301.  
  1302.   Parameter List
  1303.  
  1304.       resourceName
  1305.  
  1306.           Variable Type       ViRsrc
  1307.  
  1308.           This control specifies the interface and address of the device that
  1309.           is to be initialized (Instrument Descriptor). The exact grammar to be
  1310.           used in this control is shown in the note below.
  1311.           
  1312.           Default Value:  "GPIB::1"
  1313.           
  1314.           NOTE:
  1315.           Based on the Instrument Descriptor, this operation establishes a
  1316.           communication session with a device.  The grammar for the Instrument
  1317.           Descriptor is shown below.  Optional parameters are shown in square
  1318.           brackets ([]).
  1319.           
  1320.           Interface   Grammar
  1321.           ------------------------------------------------------
  1322.           GPIB        GPIB[board]::primary address[::secondary address]
  1323.                       [::INSTR]
  1324.           
  1325.           The GPIB keyword is used with GPIB instruments.
  1326.           
  1327.           The default value for optional parameters are shown below.
  1328.           
  1329.           Optional Parameter          Default Value
  1330.           -----------------------------------------
  1331.           board                       0
  1332.           secondary address           none - 31
  1333.           
  1334.  
  1335.       IDQuery
  1336.  
  1337.           Variable Type       ViBoolean
  1338.  
  1339.           This control specifies if an ID Query is sent to the instrument
  1340.           during the initialization procedure.
  1341.           
  1342.           Valid Range:
  1343.           VI_OFF (0) - Skip Query
  1344.           VI_ON  (1) - Do Query (Default Value)
  1345.           
  1346.           Notes:
  1347.           
  1348.           (1) Under normal circumstances the ID Query ensures that the
  1349.           instrument initialized is the type supported by this driver. However
  1350.           circumstances may arise where it is undesirable to send an ID Query
  1351.           to the instrument.  In those cases; set this control to "Skip Query"
  1352.           and this function will initialize the selected interface, without
  1353.           doing an ID Query.
  1354.  
  1355.       resetDevice
  1356.  
  1357.           Variable Type       ViBoolean
  1358.  
  1359.           This control specifies if the instrument is to be reset to its
  1360.           power-on settings during the initialization procedure.
  1361.           
  1362.           Valid Range:
  1363.           VI_OFF (0) - Don't Reset
  1364.           VI_ON  (1) - Reset Device (Default Value)
  1365.           
  1366.           Notes:
  1367.           
  1368.           (1) If you do not want the instrument reset. Set this control to
  1369.           "Don't Reset" while initializing the instrument.
  1370.  
  1371.       instrumentHandle
  1372.  
  1373.           Variable Type       ViSession (passed by reference)
  1374.  
  1375.           This control returns an Instrument Handle that is used in all
  1376.           subsequent function calls to differentiate between different sessions
  1377.           of this instrument driver.
  1378.           
  1379.           Notes:
  1380.           
  1381.           (1) Each time this function is invoked a Unique Session is opened.
  1382.           It is possible to have more than one session open for the same
  1383.           resource.
  1384.           
  1385.  
  1386.   Return Value
  1387.  
  1388.           This control contains the status code returned by the function call.
  1389.           
  1390.           Status Codes:
  1391.           
  1392.           Status    Description
  1393.           -------------------------------------------------
  1394.                  0  No error (the call was successful).
  1395.           
  1396.           3FFF0005  The specified termination character was read.
  1397.           3FFF0006  The specified number of bytes was read.
  1398.           
  1399.           BFFC0002  Parameter 2 (ID Query) out of range.
  1400.           BFFC0003  Parameter 3 (Reset Device) out of range.
  1401.           BFFC0011  Instrument returned invalid response to ID Query
  1402.           
  1403.           BFFF0000  Miscellaneous or system error occurred.
  1404.           BFFF000E  Invalid session handle.
  1405.           BFFF0015  Timeout occurred before operation could complete.
  1406.           BFFF0034  Violation of raw write protocol occurred.
  1407.           BFFF0035  Violation of raw read protocol occurred.
  1408.           BFFF0036  Device reported an output protocol error.
  1409.           BFFF0037  Device reported an input protocol error.
  1410.           BFFF0038  Bus error occurred during transfer.
  1411.           BFFF003A  Invalid setup (attributes are not consistent).
  1412.           BFFF005F  No listeners condition was detected.
  1413.           BFFF0060  This interface is not the controller in charge.
  1414.           BFFF0067  Operation is not supported on this session.
  1415.           
  1416. ________________________________________________________________________________
  1417.  
  1418.   fl45_measCompare
  1419.  
  1420.       ViStatus fl45_measCompare (ViSession instrumentHandle, ViChar compareOutput[],
  1421.                                  ViInt16 *integerOutput);
  1422.  
  1423.   Purpose
  1424.  
  1425.       This function displays the results of the compare function in both string
  1426.       and integer form.  The Compare Configuration function must be executed
  1427.       prior to calling the Display Compare Results function.
  1428.  
  1429.   Parameter List
  1430.  
  1431.       instrumentHandle
  1432.  
  1433.           Variable Type       ViSession
  1434.  
  1435.           This control accepts the Instrument Handle returned by the Initialize
  1436.           function to select the desired instrument driver session.
  1437.           
  1438.           Default Value:  None
  1439.  
  1440.       compareOutput
  1441.  
  1442.           Variable Type       ViChar[]
  1443.  
  1444.           This control displays the compare modifier in string form.  (If the
  1445.           compare modifier is selected).
  1446.           
  1447.                   Output  |     Description
  1448.                  ----------------------------------------
  1449.                   HI      |     Exceeds the range
  1450.                   LO      |     Below the range
  1451.                   PASS    |     Within the range
  1452.                   --      |     Measurement not completed
  1453.           
  1454.           Notes:
  1455.           
  1456.           (1) For '--' or measurement not complete, the instrument may be
  1457.           waiting for a trigger or has not completed the Compare Configuration
  1458.           function call.
  1459.  
  1460.       integerOutput
  1461.  
  1462.           Variable Type       ViInt16 (passed by reference)
  1463.  
  1464.           This control displays the compare modifier in integer form.  (If the
  1465.           compare modifier is selected).
  1466.           
  1467.                   Output  |     Description
  1468.                  ----------------------------------------
  1469.                    0      |     Within the range
  1470.                    1      |     Exceeds the range
  1471.                   -1      |     Below the range
  1472.                   -999    |     Measurement not completed
  1473.           
  1474.           Notes:
  1475.           
  1476.           (1) For '-999' or Measurement not complete, the instrument may be
  1477.           waiting for a trigger or has not completed the Compare Configuration
  1478.           function call.
  1479.  
  1480.   Return Value
  1481.  
  1482.           This control contains the status code returned by the function call.
  1483.           
  1484.           Status Codes:
  1485.           
  1486.           Status    Description
  1487.           -------------------------------------------------
  1488.                  0  No error (the call was successful).
  1489.           
  1490.           3FFF0005  The specified termination character was read.
  1491.           3FFF0006  The specified number of bytes was read.
  1492.           
  1493.           BFFF0000  Miscellaneous or system error occurred.
  1494.           BFFF000E  Invalid session handle.
  1495.           BFFF0015  Timeout occurred before operation could complete.
  1496.           BFFF0034  Violation of raw write protocol occurred.
  1497.           BFFF0035  Violation of raw read protocol occurred.
  1498.           BFFF0036  Device reported an output protocol error.
  1499.           BFFF0037  Device reported an input protocol error.
  1500.           BFFF0038  Bus error occurred during transfer.
  1501.           BFFF003A  Invalid setup (attributes are not consistent).
  1502.           BFFF005F  No listeners condition was detected.
  1503.           BFFF0060  This interface is not the controller in charge.
  1504.           BFFF0067  Operation is not supported on this session.
  1505.           
  1506.           BFFF0803  Error interpreting the instrument's response
  1507.           BFFF0903  Instrument Compare Configuration Error
  1508.           
  1509. ________________________________________________________________________________
  1510.  
  1511.   fl45_measPrimDisp
  1512.  
  1513.       ViStatus fl45_measPrimDisp (ViSession instrumentHandle, ViBoolean output,
  1514.                                   ViReal64 *primaryDisplay);
  1515.  
  1516.   Purpose
  1517.  
  1518.       This function takes one reading from the instrument's primary display
  1519.       based on the instrument configuration.
  1520.       
  1521.  
  1522.   Parameter List
  1523.  
  1524.       instrumentHandle
  1525.  
  1526.           Variable Type       ViSession
  1527.  
  1528.           This control accepts the Instrument Handle returned by the Initialize
  1529.           function to select the desired instrument driver session.
  1530.           
  1531.           Default Value:  None
  1532.  
  1533.       output
  1534.  
  1535.           Variable Type       ViBoolean
  1536.  
  1537.           This control causes the display to show the current value or the next
  1538.           triggered value.
  1539.           See NOTES Below.
  1540.           
  1541.           Valid Range:
  1542.           VI_OFF (0) - Currently Displayed Value (Default)
  1543.           VI_ON  (1) - Next Trigger
  1544.           
  1545.           Notes:
  1546.           
  1547.           (1) This control is not valid for internal triggering.
  1548.           
  1549.           (2) 'Next Trigger' requires either a rear or front panel trigger
  1550.           within the timeout. Because this function will not return until the
  1551.           instrument receives a trigger, a trigger must be provided.
  1552.  
  1553.       primaryDisplay
  1554.  
  1555.           Variable Type       ViReal64 (passed by reference)
  1556.  
  1557.           This control displays the most recent measurement read from the
  1558.           primary display.
  1559.           
  1560.  
  1561.   Return Value
  1562.  
  1563.           This control contains the status code returned by the function call.
  1564.           
  1565.           Status Codes:
  1566.           
  1567.           Status    Description
  1568.           -------------------------------------------------
  1569.                  0  No error (the call was successful).
  1570.           
  1571.           3FFF0005  The specified termination character was read.
  1572.           3FFF0006  The specified number of bytes was read.
  1573.           
  1574.           BFFC0002  Parameter 2 (Output) out of range.
  1575.           
  1576.           BFFF0000  Miscellaneous or system error occurred.
  1577.           BFFF000E  Invalid session handle.
  1578.           BFFF0015  Timeout occurred before operation could complete.
  1579.           BFFF0034  Violation of raw write protocol occurred.
  1580.           BFFF0035  Violation of raw read protocol occurred.
  1581.           BFFF0036  Device reported an output protocol error.
  1582.           BFFF0037  Device reported an input protocol error.
  1583.           BFFF0038  Bus error occurred during transfer.
  1584.           BFFF003A  Invalid setup (attributes are not consistent).
  1585.           BFFF005F  No listeners condition was detected.
  1586.           BFFF0060  This interface is not the controller in charge.
  1587.           BFFF0067  Operation is not supported on this session.
  1588.           
  1589. ________________________________________________________________________________
  1590.  
  1591.   fl45_measSecDisp
  1592.  
  1593.       ViStatus fl45_measSecDisp (ViSession instrumentHandle, ViBoolean output,
  1594.                                  ViReal64 *secondaryDisplay);
  1595.  
  1596.   Purpose
  1597.  
  1598.       This function takes one reading from the instrument's secondary display
  1599.       based on the instrument configuration.
  1600.       
  1601.  
  1602.   Parameter List
  1603.  
  1604.       instrumentHandle
  1605.  
  1606.           Variable Type       ViSession
  1607.  
  1608.           This control accepts the Instrument Handle returned by the Initialize
  1609.           function to select the desired instrument driver session.
  1610.           
  1611.           Default Value:  None
  1612.  
  1613.       output
  1614.  
  1615.           Variable Type       ViBoolean
  1616.  
  1617.           This control causes the display to show the current value or the next
  1618.           triggered value.
  1619.           See NOTES Below.
  1620.           
  1621.           Valid Range:
  1622.           VI_OFF (0) - Currently Displayed Value (Default)
  1623.           VI_ON  (1) - Next Trigger
  1624.           
  1625.           Notes:
  1626.           
  1627.           (1) This control is not valid for internal triggering.
  1628.           
  1629.           (2) 'Next Trigger' requires either a rear or front panel trigger
  1630.           within the timeout. Because this function will not return until the
  1631.           instrument receives a trigger, a trigger must be provided.
  1632.  
  1633.       secondaryDisplay
  1634.  
  1635.           Variable Type       ViReal64 (passed by reference)
  1636.  
  1637.           This control displays the most recent measurement read from the
  1638.           Secondary display.
  1639.           
  1640.  
  1641.   Return Value
  1642.  
  1643.           This control contains the status code returned by the function call.
  1644.           
  1645.           Status Codes:
  1646.           
  1647.           Status    Description
  1648.           -------------------------------------------------
  1649.                  0  No error (the call was successful).
  1650.           
  1651.           3FFF0005  The specified termination character was read.
  1652.           3FFF0006  The specified number of bytes was read.
  1653.           
  1654.           BFFC0002  Parameter 2 (Output) out of range.
  1655.           
  1656.           BFFF0000  Miscellaneous or system error occurred.
  1657.           BFFF000E  Invalid session handle.
  1658.           BFFF0015  Timeout occurred before operation could complete.
  1659.           BFFF0034  Violation of raw write protocol occurred.
  1660.           BFFF0035  Violation of raw read protocol occurred.
  1661.           BFFF0036  Device reported an output protocol error.
  1662.           BFFF0037  Device reported an input protocol error.
  1663.           BFFF0038  Bus error occurred during transfer.
  1664.           BFFF003A  Invalid setup (attributes are not consistent).
  1665.           BFFF005F  No listeners condition was detected.
  1666.           BFFF0060  This interface is not the controller in charge.
  1667.           BFFF0067  Operation is not supported on this session.
  1668.           
  1669. ________________________________________________________________________________
  1670.  
  1671.   fl45_readInstrData
  1672.  
  1673.       ViStatus fl45_readInstrData (ViSession instrumentHandle,
  1674.                                    ViInt16 numberBytesToRead, ViChar readBuffer[],
  1675.                                    ViInt32 *numBytesRead);
  1676.  
  1677.   Purpose
  1678.  
  1679.       This function reads data from the instrument's output buffer and returns
  1680.       it to the specified variable in memory.
  1681.       
  1682.       NOTES:
  1683.       
  1684.       (1) Because the instrument may return both numeric and text data in
  1685.       response to queries this function returns the data in string format.
  1686.       
  1687.       (2) If valid data is not available at the instrument's output buffer when
  1688.       this function is called the instrument will hang up and the function will
  1689.       not return until it times out.  If the time-out is disabled this function
  1690.       will hang indefinitely and it may be necessary to reboot the computer to
  1691.       break out.
  1692.  
  1693.   Parameter List
  1694.  
  1695.       instrumentHandle
  1696.  
  1697.           Variable Type       ViSession
  1698.  
  1699.           This control accepts the Instrument Handle returned by the Initialize
  1700.           function to select the desired instrument driver session.
  1701.           
  1702.           Default Value:  None
  1703.  
  1704.       numberBytesToRead
  1705.  
  1706.           Variable Type       ViInt16
  1707.  
  1708.           The number of bytes specified by this control should be greater than
  1709.           or equal to the number of bytes which are to be read from the
  1710.           instrument. If the actual number of bytes to be read is greater than
  1711.           the number this control specifies then multiple reads will be
  1712.           required to empty the instrument's output buffer.
  1713.           
  1714.           If the instrument's output buffer is not emptied the instrument may
  1715.           return invalid data when future reads are performed.
  1716.           
  1717.           Default Value:  50 (See NOTE 2)
  1718.           
  1719.           Notes:
  1720.           
  1721.           (1) If NO DATA is available at the instrument's output buffer when
  1722.           this function is called the instrument will hang up and the function
  1723.           will not return until it times out.  If the time-out is disabled,
  1724.           this function will hang indefinitely and it may be necessary to
  1725.           reboot the computer.
  1726.           
  1727.           (2) If the number of bytes expected is greater than 50 the value of
  1728.           this control may be increased. If the actual number of bytes read is
  1729.           larger than the declared size of the read buffer a run-time error
  1730.           will be generated.
  1731.           
  1732.  
  1733.       readBuffer
  1734.  
  1735.           Variable Type       ViChar[]
  1736.  
  1737.           The incoming data from the instrument is placed into this variable.
  1738.           
  1739.           Notes:
  1740.           
  1741.           (1) Because the instrument may return both numeric and text data in
  1742.           response to queries this function returns the data in string format.
  1743.           
  1744.           (2) This function does not overwrite any old data left in the string
  1745.           variable from the last time the function was called. String data in
  1746.           LabWindows/CVI is terminated with an ASCII null(0x0) and string
  1747.           manipulation functions will only recognize data before the ASCII
  1748.           null.
  1749.           
  1750.           (3) The declared size of the string variable must be greater than the
  1751.           actual number of bytes read from the instrument if it is not a
  1752.           run-time error will be generated.
  1753.           
  1754.  
  1755.       numBytesRead
  1756.  
  1757.           Variable Type       ViInt32 (passed by reference)
  1758.  
  1759.           This variable contains the actual number of bytes read from the
  1760.           instrument. This is the value which is returned by the read function.
  1761.           
  1762.           Notes:
  1763.           
  1764.           (1) If the actual number of bytes read is less than the number of
  1765.           bytes specified in the Number Bytes To Read control then the output
  1766.           buffer has probably been emptied. If the read function fails and the
  1767.           number of bytes read is 0, the most probable cause for the failure is
  1768.           there was no data available at the instrument's output buffer.
  1769.  
  1770.   Return Value
  1771.  
  1772.           This control contains the status code returned by the function call.
  1773.           
  1774.           Status Codes:
  1775.           
  1776.           Status    Description
  1777.           -------------------------------------------------
  1778.                  0  No error (the call was successful).
  1779.           
  1780.           3FFF0005  The specified termination character was read.
  1781.           3FFF0006  The specified number of bytes was read.
  1782.           
  1783.           BFFF0000  Miscellaneous or system error occurred.
  1784.           BFFF000E  Invalid session handle.
  1785.           BFFF0015  Timeout occurred before operation could complete.
  1786.           BFFF0034  Violation of raw write protocol occurred.
  1787.           BFFF0035  Violation of raw read protocol occurred.
  1788.           BFFF0036  Device reported an output protocol error.
  1789.           BFFF0037  Device reported an input protocol error.
  1790.           BFFF0038  Bus error occurred during transfer.
  1791.           BFFF003A  Invalid setup (attributes are not consistent).
  1792.           BFFF005F  No listeners condition was detected.
  1793.           BFFF0060  This interface is not the controller in charge.
  1794.           BFFF0067  Operation is not supported on this session.
  1795.           
  1796. ________________________________________________________________________________
  1797.  
  1798.   fl45_reset
  1799.  
  1800.       ViStatus fl45_reset (ViSession instrumentHandle);
  1801.  
  1802.   Purpose
  1803.  
  1804.       This function resets the instrument to a known state and sends
  1805.       initialization commands to the instrument that set any necessary
  1806.       programmatic variables such as Headers Off, Short Command form, and Data
  1807.       Transfer Binary to the state necessary for the operation of the
  1808.       instrument driver.
  1809.       
  1810.  
  1811.   Parameter List
  1812.  
  1813.       instrumentHandle
  1814.  
  1815.           Variable Type       ViSession
  1816.  
  1817.           This control accepts the Instrument Handle returned by the Initialize
  1818.           function to select the desired instrument driver session.
  1819.           
  1820.           Default Value:  None
  1821.  
  1822.   Return Value
  1823.  
  1824.           This control contains the status code returned by the function call.
  1825.           
  1826.           Status Codes:
  1827.           
  1828.           Status    Description
  1829.           -------------------------------------------------
  1830.                  0  No error (the call was successful).
  1831.           
  1832.           3FFF0005  The specified termination character was read.
  1833.           3FFF0006  The specified number of bytes was read.
  1834.           
  1835.           BFFF0000  Miscellaneous or system error occurred.
  1836.           BFFF000E  Invalid session handle.
  1837.           BFFF0015  Timeout occurred before operation could complete.
  1838.           BFFF0034  Violation of raw write protocol occurred.
  1839.           BFFF0035  Violation of raw read protocol occurred.
  1840.           BFFF0036  Device reported an output protocol error.
  1841.           BFFF0037  Device reported an input protocol error.
  1842.           BFFF0038  Bus error occurred during transfer.
  1843.           BFFF003A  Invalid setup (attributes are not consistent).
  1844.           BFFF005F  No listeners condition was detected.
  1845.           BFFF0060  This interface is not the controller in charge.
  1846.           BFFF0067  Operation is not supported on this session.
  1847.           
  1848. ________________________________________________________________________________
  1849.  
  1850.   fl45_revisionQuery
  1851.  
  1852.       ViStatus fl45_revisionQuery (ViSession instrumentHandle,
  1853.                                    ViChar instrumentDriverRevision[],
  1854.                                    ViChar firmwareRevision[]);
  1855.  
  1856.   Purpose
  1857.  
  1858.       This function returns the revision numbers of the instrument driver and
  1859.       instrument firmware, and tells the user what firmware the driver is
  1860.       compatible.
  1861.       
  1862.       This instrument driver's Revision is "Rev 1.0, 9/95, CVI 3.1" and is
  1863.       compatible with Instrument Firmware Revision "1.6 D1.0".
  1864.       
  1865.  
  1866.   Parameter List
  1867.  
  1868.       instrumentHandle
  1869.  
  1870.           Variable Type       ViSession
  1871.  
  1872.           This control accepts the Instrument Handle returned by the Initialize
  1873.           function to select the desired instrument driver session.
  1874.           
  1875.           Default Value:  None
  1876.  
  1877.       instrumentDriverRevision
  1878.  
  1879.           Variable Type       ViChar[]
  1880.  
  1881.           This control returns the Instrument Driver Software Revision.
  1882.           
  1883.           Notes:
  1884.           
  1885.           (1) The array must be contain at least 256 elements ViChar[256].
  1886.  
  1887.       firmwareRevision
  1888.  
  1889.           Variable Type       ViChar[]
  1890.  
  1891.           This control returns the Instrument Firmware Revision.
  1892.           
  1893.           Notes:
  1894.           
  1895.           (1) The array must be contain at least 256 elements ViChar[256].
  1896.  
  1897.   Return Value
  1898.  
  1899.           This control contains the status code returned by the function call.
  1900.           
  1901.           Status Codes:
  1902.           
  1903.           Status    Description
  1904.           -------------------------------------------------
  1905.                  0  No error (the call was successful).
  1906.           
  1907.           3FFF0005  The specified termination character was read.
  1908.           3FFF0006  The specified number of bytes was read.
  1909.           
  1910.           BFFF0000  Miscellaneous or system error occurred.
  1911.           BFFF000E  Invalid session handle.
  1912.           BFFF0015  Timeout occurred before operation could complete.
  1913.           BFFF0034  Violation of raw write protocol occurred.
  1914.           BFFF0035  Violation of raw read protocol occurred.
  1915.           BFFF0036  Device reported an output protocol error.
  1916.           BFFF0037  Device reported an input protocol error.
  1917.           BFFF0038  Bus error occurred during transfer.
  1918.           BFFF003A  Invalid setup (attributes are not consistent).
  1919.           BFFF005F  No listeners condition was detected.
  1920.           BFFF0060  This interface is not the controller in charge.
  1921.           BFFF0067  Operation is not supported on this session.
  1922.           
  1923. ________________________________________________________________________________
  1924.  
  1925.   fl45_selfTest
  1926.  
  1927.       ViStatus fl45_selfTest (ViSession instrumentHandle, ViInt16 *selfTestResult,
  1928.                               ViChar selfTestMessage[]);
  1929.  
  1930.   Purpose
  1931.  
  1932.       This function runs the instrument's self test routine and returns the
  1933.       test result(s).
  1934.  
  1935.   Parameter List
  1936.  
  1937.       instrumentHandle
  1938.  
  1939.           Variable Type       ViSession
  1940.  
  1941.           This control accepts the Instrument Handle returned by the Initialize
  1942.           function to select the desired instrument driver session.
  1943.           
  1944.           Default Value:  None
  1945.  
  1946.       selfTestResult
  1947.  
  1948.           Variable Type       ViInt16 (passed by reference)
  1949.  
  1950.           This control contains the value returned from the instrument self
  1951.           test.  Zero means success.  For any other code, see the device's
  1952.           operator's manual.
  1953.           
  1954.                   Number |  State
  1955.                  ---------------------------------------
  1956.                      0   |  Passed self test
  1957.                      1   |  A/D self test failed
  1958.                      2   |  A/D dead
  1959.                      4   |  EEPROM instrument configuration
  1960.                          |   bad
  1961.                      8   |  EEPROM calibration data bad
  1962.                      16  |  Display dead
  1963.                      32  |  Display self-test failed
  1964.                      64  |  ROM test failed
  1965.                      128 |  External RAM test failed
  1966.                      256 |  Internal RAM test failed
  1967.           
  1968.  
  1969.       selfTestMessage
  1970.  
  1971.           Variable Type       ViChar[]
  1972.  
  1973.           This control contains the string returned from the self test. See the
  1974.           device's operation manual for an explanation of the string's
  1975.           contents.
  1976.           
  1977.           Notes:
  1978.           
  1979.           (1) The array must be contain at least 256 elements ViChar[256].
  1980.  
  1981.   Return Value
  1982.  
  1983.           This control contains the status code returned by the function call.
  1984.           
  1985.           Status Codes:
  1986.           
  1987.           Status    Description
  1988.           -------------------------------------------------
  1989.                  0  No error (the call was successful).
  1990.           
  1991.           3FFF0005  The specified termination character was read.
  1992.           3FFF0006  The specified number of bytes was read.
  1993.           
  1994.           BFFF0000  Miscellaneous or system error occurred.
  1995.           BFFF000E  Invalid session handle.
  1996.           BFFF0015  Timeout occurred before operation could complete.
  1997.           BFFF0034  Violation of raw write protocol occurred.
  1998.           BFFF0035  Violation of raw read protocol occurred.
  1999.           BFFF0036  Device reported an output protocol error.
  2000.           BFFF0037  Device reported an input protocol error.
  2001.           BFFF0038  Bus error occurred during transfer.
  2002.           BFFF003A  Invalid setup (attributes are not consistent).
  2003.           BFFF005F  No listeners condition was detected.
  2004.           BFFF0060  This interface is not the controller in charge.
  2005.           BFFF0067  Operation is not supported on this session.
  2006.           
  2007.           BFFF0803  Error Scanning Response VI_ERROR_INTERPRETING_RESPONSE
  2008.           
  2009. ________________________________________________________________________________
  2010.  
  2011.   fl45_trigger
  2012.  
  2013.       ViStatus fl45_trigger (ViSession instrumentHandle);
  2014.  
  2015.   Purpose
  2016.  
  2017.       This function will send a trigger signal to the instrument.
  2018.       
  2019.       WARNING: If the instrument has the hold modifier and an external trigger
  2020.       mode activated; two sequential triggers may cause the instrument to lock
  2021.       up.  If this occurs, it will be necessary to clear the instrument by
  2022.       turning it off and on and then reinitializing it.
  2023.       
  2024.       Notes:
  2025.       
  2026.       (1) A software Trigger can be supplied with this Trigger function, or by
  2027.       pressing the 'down arrow' on the front panel of the instrument.  Triggers
  2028.       4 or 5 can also be trigged with a pulse applied to the RS-232 connector
  2029.       pins 2 and 4 -- See Manual figure 5-2.  If an external trigger mode is
  2030.       selected, the instrument must receive a trigger before a measurement will
  2031.       be available.
  2032.  
  2033.   Parameter List
  2034.  
  2035.       instrumentHandle
  2036.  
  2037.           Variable Type       ViSession
  2038.  
  2039.           This control accepts the Instrument Handle returned by the Initialize
  2040.           function to select the desired instrument driver session.
  2041.           
  2042.           Default Value:  None
  2043.  
  2044.   Return Value
  2045.  
  2046.           This control contains the status code returned by the function call.
  2047.           
  2048.           Status Codes:
  2049.           
  2050.           Status    Description
  2051.           -------------------------------------------------
  2052.                  0  No error (the call was successful).
  2053.           
  2054.           3FFF0005  The specified termination character was read.
  2055.           3FFF0006  The specified number of bytes was read.
  2056.           
  2057.           BFFF0000  Miscellaneous or system error occurred.
  2058.           BFFF000E  Invalid session handle.
  2059.           BFFF0015  Timeout occurred before operation could complete.
  2060.           BFFF0034  Violation of raw write protocol occurred.
  2061.           BFFF0035  Violation of raw read protocol occurred.
  2062.           BFFF0036  Device reported an output protocol error.
  2063.           BFFF0037  Device reported an input protocol error.
  2064.           BFFF0038  Bus error occurred during transfer.
  2065.           BFFF003A  Invalid setup (attributes are not consistent).
  2066.           BFFF005F  No listeners condition was detected.
  2067.           BFFF0060  This interface is not the controller in charge.
  2068.           BFFF0067  Operation is not supported on this session.
  2069.           
  2070. ________________________________________________________________________________
  2071.  
  2072.   fl45_writeInstrData
  2073.  
  2074.       ViStatus fl45_writeInstrData (ViSession instrumentHandle, ViString writeBuffer);
  2075.  
  2076.   Purpose
  2077.  
  2078.       This function writes commands and queries to the instrument to modify
  2079.       parameters and query device settings.
  2080.  
  2081.   Parameter List
  2082.  
  2083.       instrumentHandle
  2084.  
  2085.           Variable Type       ViSession
  2086.  
  2087.           This control accepts the Instrument Handle returned by the Initialize
  2088.           function to select the desired instrument driver session.
  2089.           
  2090.           Default Value:  None
  2091.  
  2092.       writeBuffer
  2093.  
  2094.           Variable Type       ViString
  2095.  
  2096.           The user can use this control to send common commands and queries to
  2097.           the instrument. This control can also be used to write any valid
  2098.           command to the instrument.
  2099.           
  2100.           Default Value:  "*RST"
  2101.           
  2102.           Notes:
  2103.           
  2104.           (1) The command or query to be sent to the instrument may be a
  2105.           literal enclosed in double quotes i.e. "*RST" or may be contained in
  2106.           a variable of type string.
  2107.           
  2108.  
  2109.   Return Value
  2110.  
  2111.           This control contains the status code returned by the function call.
  2112.           
  2113.           Status Codes:
  2114.           
  2115.           Status    Description
  2116.           -------------------------------------------------
  2117.                  0  No error (the call was successful).
  2118.           
  2119.           3FFF0005  The specified termination character was read.
  2120.           3FFF0006  The specified number of bytes was read.
  2121.           
  2122.           BFFF0000  Miscellaneous or system error occurred.
  2123.           BFFF000E  Invalid session handle.
  2124.           BFFF0015  Timeout occurred before operation could complete.
  2125.           BFFF0034  Violation of raw write protocol occurred.
  2126.           BFFF0035  Violation of raw read protocol occurred.
  2127.           BFFF0036  Device reported an output protocol error.
  2128.           BFFF0037  Device reported an input protocol error.
  2129.           BFFF0038  Bus error occurred during transfer.
  2130.           BFFF003A  Invalid setup (attributes are not consistent).
  2131.           BFFF005F  No listeners condition was detected.
  2132.           BFFF0060  This interface is not the controller in charge.
  2133.           BFFF0067  Operation is not supported on this session.
  2134.           
  2135.