Text preview for : FLUKE PM6680B_252C 81_252C 81R_252C 85_252C 85R PROG.pdf part of Fluke FLUKE PM6680B 252C 81 252C 81R 252C 85 252C 85R PROG Fluke FLUKE PM6680B_252C 81_252C 81R_252C 85_252C 85R PROG.pdf



Back to : FLUKE PM6680B_252C 81_252 | Home

Timer/Counter/
Analyzers
PM6680B, PM6681, PM6681R, PM6685 & PM6685R




Programming Manual
All rights reserved. Reproduction in whole or in part is
prohibited without written consent of the copyright owner.
TimeView is a trademark of Pendulum Instruments AB.
FLUKE is a trademark of Fluke Corporation.
TimeView uses the SPAWNO routines by Ralf Brown to minimize
memory use while shelling to DOS and running other programs.
Pendulum Instruments AB - Sweden - 2000


II
Table of Contents
1 Getting Started `C' for National Instruments PC-IIA
Finding Your Way Through This Manual . . 1-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13
Manual Conventions . . . . . . . . . . . . . . . . . 1-3 1. Limit Testing . . . . . . . . . . . . . . . . . . . . 4-14
Setting Up the Instrument . . . . . . . . . . . . . 1-4 2. REAL Data Format . . . . . . . . . . . . . . . 4-15
Interface Functions . . . . . . . . . . . . . . . . . . 1-5 3. Frequency Profiling . . . . . . . . . . . . . . . 4-17
4. Fast Sampling . . . . . . . . . . . . . . . . . . . 4-19
2 Bus Commands for the 6. Statistics . . . . . . . . . . . . . . . . . . . . . . . 4-21
Benchtop User
Default settings (after *RST). . . . . . . . . . . 2-8 5 Instrument Model
Introduction . . . . . . . . . . . . . . . . . . . . . . . . 5-2
3 Introduction to SCPI Measurement Function Block . . . . . . . . . . 5-3
What is SCPI? . . . . . . . . . . . . . . . . . . . . . . 3-2 Other Subsystems . . . . . . . . . . . . . . . . . . . 5-4
How does SCPI Work in the Instrument? . 3-4 Order of Execution. . . . . . . . . . . . . . . . . . . 5-4
Program and Response Messages . . . . . . 3-8 MEASurement Function . . . . . . . . . . . . . . 5-5
Command Tree . . . . . . . . . . . . . . . . . . . . 3-11
Parameters . . . . . . . . . . . . . . . . . . . . . . . 3-12 6 Using the Subsystems
Macros. . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Status Reporting System. . . . . . . . . . . . . 3-18 Calculate Subsystem. . . . . . . . . . . . . . . . . 6-3
Error Reporting . . . . . . . . . . . . . . . . . . . . 3-19 Calibration Subsystem. . . . . . . . . . . . . . . . 6-4
Initialization and Resetting. . . . . . . . . . . . 3-21 Configure Function . . . . . . . . . . . . . . . . . . 6-5
Format Subsystem . . . . . . . . . . . . . . . . . . 6-6
4 Programming Examples Time Stamp Readout Format . . . . . . . . . . 6-6
Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Input Subsystems . . . . . . . . . . . . . . . . . . . 6-7
GW-Basic for National Instruments Measurement Function . . . . . . . . . . . . . . . 6-9
PC-IIA . . . . . . . . . . . . . . . . . . . . . . . . 4-3 Output Subsystem . . . . . . . . . . . . . . . . . . 6-12
Setting up the interface . . . . . . . . . . . . . . . 4-3 Sense Command Subsystems . . . . . . . . 6-14
1. Limit Testing . . . . . . . . . . . . . . . . . . . . . 4-4 Status Subsystem . . . . . . . . . . . . . . . . . . 6-15
3. Frequency Profiling . . . . . . . . . . . . . . . . 4-5 Trigger/Arming Subsystem . . . . . . . . . . . 6-30
4. Fast Sampling . . . . . . . . . . . . . . . . . . . . 4-7
5. Status Reporting . . . . . . . . . . . . . . . . . . 4-9 7 How to Measure Fast
6. Statistics . . . . . . . . . . . . . . . . . . . . . . . 4-11 Introduction . . . . . . . . . . . . . . . . . . . . . . . . 7-3
Rough Trigger Subsystem Description . . . 7-4
4822 872 20081
August 2000 Some Basic Commands . . . . . . . . . . . . . . 7-5
Basic Measurement Method . . . . . . . . . . . 7-7



III
General Speed Improvements. . . . . . . . . . 7-8 Diagnostics Subsystem . . . . . . . . 9-29
40000 measure- ments/second . . . . . . . . 7-11 :DIAGnostic:CALibration:INPut[1|2]:HYSTeresi
Supervising a Process. . . . . . . . . . . . . . . 7-12 s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-30
Speed Summary . . . . . . . . . . . . . . . . . . . 7-17 Display Subsystem . . . . . . . . . . . . 9-31
:DISPlay :ENABle . . . . . . . . . . . . . . . . . . 9-32
8 Error Messages Fetch Function. . . . . . . . . . . . . . . . 9-33
:FETCh? . . . . . . . . . . . . . . . . . . . . . . . . . 9-34
9 Command Reference
:FETCh :ARRay?. . . . . . . . . . . . . . . . . . . 9-35
Abort. . . . . . . . . . . . . . . . . . . . . . . . . 9-3
Format Subsystem . . . . . . . . . . . . 9-37
:ABORt . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-4
:FORMat . . . . . . . . . . . . . . . . . . . . . . . . . 9-38
Arming Subsystem . . . . . . . . . . . . . 9-5
:FORMat . . . . . . . . . . . . . . . . . . . . . . . . . 9-38
:ARM :COUNt . . . . . . . . . . . . . . . . . . . . . . 9-6
:FORMat :FIXed . . . . . . . . . . . . . . . . . . . 9-39
:ARM :DELay. . . . . . . . . . . . . . . . . . . . . . . 9-7
:FORMat :SREGister . . . . . . . . . . . . . . . . 9-39
:ARM :ECOunt. . . . . . . . . . . . . . . . . . . . . . 9-7
:FORMat :TINFormation . . . . . . . . . . . . . 9-40
:ARM :LAYer2 . . . . . . . . . . . . . . . . . . . . . . 9-8
Initiate Subsystem. . . . . . . . . . . . . 9-41
:ARM :LAYer2 :SOURce . . . . . . . . . . . . . . 9-8
:INITiate :CONTinuous . . . . . . . . . . . . . . 9-42
:ARM :SLOPe . . . . . . . . . . . . . . . . . . . . . . 9-9
:INITiate . . . . . . . . . . . . . . . . . . . . . . . . . . 9-42
:ARM :SOURce . . . . . . . . . . . . . . . . . . . . . 9-9
Input Subsystems . . . . . . . . . . . . . 9-43
:ARM :STOP :DELay . . . . . . . . . . . . . . . . 9-10
:INPut