EasyManua.ls Logo

Hioki 3237 - Sample Program

Hioki 3237
169 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
102
_____________________________________________________________________________________________
7.8 Sample Program
______________________________________________________________________________________________
7.8 Sample Program
The following sample program was written in N88BASIC using the NEC PC-9801 as the controller.
For information on N88BASIC, refer to the instruction manual for the PC-9801.
(1) Simplest measuring method
Outline: This is the simplest measuring method using the MEASure command.
100 open "com1:n81nn" as #1
110 '
120 '
Performs measurement.
130 '
140 print #1,":measure:voltage:ac?"
AC voltage measurement in Auto Range
150 input #1,a$
160 print a$
170 close
180 end
(2) Setting up measurement conditions and loading measurement data
Outline: The system performs comparator setup, trigger setup, etc., and loads the measurement
values and comparator determinations.
100 open "com1:n81nn" as #1
110 '
120 '
Initial settings
130 '
140 print #1,":syst:kloc on"
Key Lock
150 print #1,":syst:lfr 60"
Sets the power-supply frequency to 60 Hz.
160 print #1,":syst:head off"
Header OFF
170 print #1,":conf:volt 100"
Sets the DC200 V range.
180 print #1,":samp:rate fast"
Sampling period: FAST
190 print #1,":calc:aver 5"
Averages 5 measurements.
200 print #1,":calc:aver:stat on"
Average ON
210 print #1,":calc:lim:upp 130000"
Comparator upper-limit value: 130,000
220 print #1,":calc:lim:low 120000"
Comparator lower-limit value: 120,000
230 print #1,":calc:lim:beep HL"
Activates the buzzer on HL of comparator result.
240 print #1,":calc:lim:stat on"
Comparator ON
250 print #1,":trig:del 0.025"
Trigger delay: 25 ms
260 print #1,":trig:del:auto off"
Auto Trigger Delay OFF
270 print #1,":trig:sour imm"
Triggers on :INIT or :READ?
280 print #1,":init:cont off"
Continuous trigger OFF
290 '
300 '
Performs measurement.
310 '
320 print #1,":read?"
Triggers once and reads the measurement value.
330 input #1,a$
340 print #1,":calc:lim:fail?"
Reads the comparator determination.
350 input #1,b$
360 print a$,b$
370 close
380 end

Table of Contents

Related product manuals