Using HP Instrument BASIC
Creating ASP-like IBASIC Programs
In following example,
EXECUTE ("READDATAVAR")
is used to transfer the
VTH
value to the IBASIC variable
Vthdata
. And for example,
VTH.MES
is a setup
le that includes auto analysis setup to extract a threshold voltage
VTH
.
10 EXECUTE ("GETSETUP 'VTH.MES'")
20 EXECUTE ("SINGLE")
30 EXECUTE ("READDATAVAR 'VTH',Vthdata")
40 PRINT "Vthdata =";Vthdata;"V"
50 END
Result will be for example:
Vthdata = 1.2345 V
You can also specify a read out function as the item to be transferred:
EXECUTE ("READDATAVAR '@MX',Vthdata")
@MX
is the read out function that reads X-axis value of point where marker is
located.
Auto Scaling
Auto scaling can be done by using the following:
EXECUTE ("AUTOSCALE")
.
In the following example, the image dumps will be scaled for best t to the
printer or plotter even if the measurement results vary greatly.
10 EXECUTE ("GETSETUP 'VTH.MES'")
11 FOR I=1 TO 100
20 EXECUTE ("SINGLE")
30 EXECUTE ("AUTOSCALE")
40 EXECUTE ("PRINTPLOT")
41 NEXT I
50 END
1-47