Agilent Technologies

VISA: Use the SCPI Measure Function to Perform Counter Measurements Read Me

This sample program shows how to use the MEASure group of instructions to quickly and easily make any of the counter's measurements.

Date: Sep 2003

Version: 1.0

Language: Microsoft® Visual Basic 6

Instruments: Frequency Counters

OS Requirements: Microsoft Windows® 98 SE, NT® 4.0, ME, 2000, or XP

Additional Software: Agilent IO Libraries M.01.01.04 (or later)

This sample program shows how to use the MEASure group of instructions to quickly and easily make any of the counter's measurements. In this program, time interval, frequency and period will be measured. However, the MEASure group can make measurements using any of the other counter functions. The program is composed of four subroutines. The first uses only the MEAS:TINT? (@1),(@2) command to make a time interval measurement. The second subroutine uses CONF:FREQ and READ? to make the measurement. The third uses CONF:FREQ, INIT and FETCH? to make the measurement. The comments at the start of each subroutine explain the benefits of each method. The fourth subroutine simply resets the counter.

AGILENT PROVIDES THIS FREE SOFTWARE "AS IS". ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO ANY WARRANTY OF NON-INFRINGEMENT, THE IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY, REASONABLE CARE AND SKILL, AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Agilent shall not be liable in any way whatsoever for any damages of any nature arising from its use. In no event shall Agilent be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to: procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability or tort (including negligence or otherwise) except if caused by willful misconduct or gross negligence arising in any way out of the use of this software, even if advised of the possibility of such damage and if it has been ensured that such data can be reconstructed with reasonable expenditure from data material provided in machine-readable form.

Windows is a U.S. registered trademark of Microsoft Corporation.

Microsoft is a U.S. registered trademark of Microsoft Corporation.

Windows NT is a U.S. registered trademark of Microsoft Corporation.

Copyright © 2004 Agilent Technologies, Inc.


© Agilent 2000-2006