Calculate2 - Keithley 2002 User Manual

Hide thumbs Also See for 2002:
Table of Contents

Advertisement

Program fragment
Description
Program fragment
Query
Description
Program fragment
3.12.2
PRINT #1, "output 16; :calc:data?"
PRINT #1, "enter 16"
:FRESh?
:CALCulate[1]:DATA:FRESh?
This query command is used to return a new (fresh) math result of CALC1. This command will
not request the same result twice. If a new reading is triggered, this command will wait until the
math result is available. When CALC1 is disabled, there is no difference between SENS:-
DATA:FRES? and CALC:DATA:FRES?.
PRINT #1, "output 16; :calc:data:fresh?"
PRINT #1, "enter 16"
:IMMediate
:CALCulate[1]:IMMediate
:IMMediate?
Perform calculation and read result (equivalent to :CALCulate[1]:IMMediate;
DATA?)
When you change the math calculation, the next instrument reading reflects the new calculation
(assuming CALC 1 math is enabled). If the instrument is not in a continuous measurement mode
(i.e. waiting for a trigger), the displayed reading will not update to reflect the new calculation
until the next reading conversion occurs.
This action command allows you to reprocess the current input data to reflect a new calculation.
For example, assume the instrument is in a non-continuous measurement mode and requires a
manual trigger to cause the next reading conversion. Changing the calculation will not affect the
currently displayed reading. However, sending the :IMMediate command reprocesses that dis-
played reading to reflect the new calculation. Note that sending the :IMMediate command does
not initiate a reading conversion.
An alternate way to perform the calculation and read the result is by using the query form of the
command (:IMMediate?). When this command is sent, the calculation is performed and the
result is queried.
PRINT #1, "output 16; :syst:pres?"
PRINT #1, "output 16; :trig:sour bus"
SLEEP 3
PRINT #1, "output 16; :calc:form pol"
PRINT #1, "output 16; :calc:kmat:ma0f 50"
PRINT #1, "output 16; :calc:stat on"
SLEEP 3
PRINT #1, "output 16; :cal:imm"

:CALCulate2

This Calculate subsystem is used to configure and control CALC 2 operations on readings
stored in the buffer.
' Query result of CALC1
' Get response message from 2002
Recalculate CALC 1
Recalculate CALC 1
IEEE-488 Reference
' Query new result of CALC1
' Get response from 2002
' Select defaults
' Place 2002 in one-shot measure mode
' Wait three seconds
' Select polynomial math calculation
' Set "a0" to 50
' Enable MATH calculation
' Wait three seconds
' Perform calculation (adds 50 to
reading)
3-69

Advertisement

Table of Contents
loading

Table of Contents