Programming Examples

3. Frequency Profiling

Frequency profiling visualizes frequency variations for a certain time. This program gives an output file called:

PROFILE.DAT. If this file is imported to a spreadsheet program, for instance Excel, you can create a graph like the one in the figure below.

Figure 4-1This figure is the results of frequency profiling on a sweep generator.

50 ‘

60 OPEN “O”, 1, “PROFILE.DAT”

70 CNTNAME$ = “DEV10"

80 CALL IBFIND (CNTNAME$, CNT%)

90

100

110—— Enable arming, etc. ——

120WRT$ = “:TRIG:COUN 1; :ARM:COUN 1; SOUR EXT4"

130CALL IBWRT(CNT%, WRT$)

140WRT$ = “:INP:LEV:AUTO ONCE

150CALL IBWRT(CNT%, WRT$)

160WRT$ = “:DISP:ENAB OFF; :ACQ:APER 1E-6"

170CALL IBWRT(CNT%, WRT$)

180

190ARMDELAY = .0000002

GW-Basic for National Instruments PC-IIA, Setting Up the Interface 4-5

Page 45
Image 45
Fluke PM6681 Frequency Profiling, 50 ‘, Open O, 1, PROFILE.DAT, 90 ‘ 100 ‘ 110 ‘ -- Enable arming, etc, 180 ‘ Armdelay =