APPLICATION PROGRAM EXAMPLES

A - 1

APPENDIX A

APPLICATION PROGRAM EXAMPLES

The program examples are written for the CombiScopes with the IEEE option installed. No other instrument is required to execute these examples. For system and programming environment requirements to execute these examples, refer to section 2.1 "Preparations for SCPI programming".

A.1 Measuring Signal Characteristics

A.1.1 Making automatic measurements

A.1.2 Making programmed measurements

A.1.3 Reading measurement values

A.2 Acquiring Waveform Traces

A.3 Saving/Recalling Instrument Setups

A.3.1 Save/recall settings to/from internal memory

A.3.2 Save/recall settings to/from computer disk memory

A.4 Making a Hardcopy of the Screen

A.5 Pass/Fail Testing

A.5.1 Saving a pass/fail test setup

A.5.2 Restoring a pass/fail test setup

A.5.3 Running a pass/fail test

Note: All APPLICATION PROGRAM EXAMPLES in this chapter are supplied on floppy.

The following error handling routine is used:

***************************************************

Subroutine reading all errors from the error queue.

***************************************************

SUB errorcheck er$ = SPACE$(1)

WHILE LEFT$(er$, 1) <> "0"

CMD$ = "SYSTem:ERRor?"

 

CALL Send(0, 8, CMD$, 1)

Sends error query

er$ = SPACE$(60)

 

CALL Receive(0, 8, er$, 256)

Reads error string

PRINT "error = "; er$

Displays error string

WEND

 

END SUB

 

Error reporting is invoked as follows: CALL errorcheck

In the command strings the "short form" commands are specified in capitals. The additional characters in lower case complete the "long form commands.

Page 234
Image 234
Fluke PM-3384B, PM-3380B, PM-3390B, PM-3370B Application Program Examples, Making a Hardcopy of the Screen Pass/Fail Testing