INST_CLEAR()
NAME
INST_CLEAR − Compiled SCPI Commands
SYNOPSIS
INST_CLEAR (id);
DESCRIPTION
This is an HP Compiled SCPI macro command. The instrument clear command sends an IEEE-488.2 device clear equivalent to the register-based instrument selected by the id parameter.
PARAMETERS
id
The user variable name for the instrument. This is the variable name that you assign to the instrument in the INST_DECL or INST_EXTERN command. For example,
INST_DECL (vm, "E1410A", MESSAGE);
assigns vm as an instrument data pointer to the E1410A. Now when you use vm as the id in INST_CLEAR, a device clear equivalent will be sent to the HP E1410A.
Comments
For message-based configurations, C-SCPI uses the HP SICL iclear(id) function. See the HP SICL documentation for more information.
EXAMPLE
This example sends a device clear equivalent to the HP E1410A Multimeter.
INST_DECL(vm, "E1410A", MESSAGE);
main()
{
INST_STARTUP();
INST_OPEN (vm, "VXI,24");
INST_CLEAR(vm);
}
— December 04, 1992