Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ INST_PARAM(3) — HP-UX SCPI B.02.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

INST_PARAM()

 

NAME

INST_PARAM − Compiled SCPI Commands
 

SYNOPSIS

 
INST_PARAM (id, driver, type);
 

DESCRIPTION

 
This is an HP Compiled SCPI macro command. The instrument parameter command defines an I/O channel to be passed to the function. This command is used when the instrument is declared out of scope and you need to pass the instrument declaration into a function.
 

PARAMETERS

 

id

The user variable name for the instrument.  This is where you assign the instrument a variable name.  The name specified by id  is used in all other C-SCPI commands for that instrument. 
 

driver

The parameter that defines the HP driver.  This parameter is a quoted string, for example, "E1411B" is the driver name for the HP E1411B Multimeter.  See the HP 75000 Family of VXI Products catalog for a list of available drivers (available form your nearest HP Sales and Service Office). 
 

type

The parameter that defines the configuration type.  The configuration type can be one of the following:
 
MESSAGE - for HP-IB or VXI message-based cards REGISTER - for register-based cards
 

COMMENTS

 
INST_DECL, INST_EXTERN, or INST_PARAM is required to declare the id parameter.  This declaration must be done before any command that uses id.
 
See also INST_DECL and INST_EXTERN.
 

EXAMPLE

 
This example shows the INST_PARAM command used to pass the instrument declaration to the setup function.
 

setup (INST_PARAM (id, "E1411B", REGISTER))
{
.
INST_SEND (id, "*RST");
.
.
}
 main()
{
INST_STARTUP();
INST_OPEN (vm, "VXI,24");
.
.
setup (vm);
}

  —  December 04, 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026