5-102 Agilent 4155C/4156C SCPI Command Reference, Edition 1
SCPI Commands
:PAGE:CHANnels:UFUNction:DEFine
:PAGE:CHANnels:UFUNction:DEFine
This command defines the USER FUNCTION.
If the specified function name already exists, this command overwrites the old data
with the newly defined data.
If the specified function name does not exist, the new name appears in the
uppermost blank field on the CHANNELS:USER FUNCTION DEFINITION page.
A maximum of six user functions can be defined. If this limit is exceeded,
Unable to define more than 6 User functions. error (-182) is generated.
At *RST, all defined functions are deleted.
Syntax :PAGE:CHANnels:UFUNction:DEFine name, unit, definition
For query:
:PAGE:CHANnels:UFUNction:DEFine? name
Parameter
Query response unit, definition <newline><^END>
unit and definition are string response data, but do not contain double quote
characters at the beginning and end.
Example OUTPUT @Hp4155;":PAGE:CHAN:UFUN:DEF 'VTH','V','@L1X'"
OUTPUT @Hp4155;":PAGE:CHAN:UFUN:DEF? 'VTH'"
ENTER @Hp4155;A$
Parameter Type Explanation
name string String of up to 6 alphanumeric characters.
1st character must be alphabet.
unit string String of up to 6 alphanumeric characters.
The null string is allowed.
definition string expression