Long String Input Record (lsi)

The long string input record is used to retrieve an arbitrary ASCII string with a maximum length of 65535 characters.

Parameter Fields

The record-specific fields are described below, grouped by functionality.

Scan Parameters

The long string input record has the standard fields for specifying under what circumstances it will be processed. These fields are listed in "Scan Fields". In addition, "Scanning Specification" explains how these fields are used.

Input Specification

The INP field determines where the long string input record obtains its string from. It can be a database or channel access link, or a constant. If constant, the VAL field is initialized with the constant and can be changed via dbPuts. Otherwise, the string is read from the specified location each time the record is processed and placed in the VAL field. The maximum number of characters in VAL is given by SIZV, and cannot be larger than 65535. In addition, the appropriate device support module must be entered into the DTYP field.

See "Address Specification" for information on specifying links.

FieldSummaryTypeDCT DefaultReadWriteCA PP
VALCurrent ValueSTRING[SIZV]No YesYesYes
OVALOld ValueSTRING[SIZV]No YesNoNo
SIZVSize of buffersUSHORTYes41YesNoNo
INPInput SpecificationINLINKYes YesYesNo
DTYPDevice TypeDEVICEYes YesYesNo

Monitor Parameters

These parameters are used to specify when the monitor post should be sent by the monitor() routine. There are two possible choices:

APST is used for archiver monitors and MPST for all other type of monitors.

FieldSummaryTypeDCT DefaultReadWriteCA PP
MPSTPost Value MonitorsMENU (menuPost)Yes YesYesNo
APSTPost Archive MonitorsMENU (menuPost)Yes YesYesNo

Operator Display Parameters

See "Fields Common to All Record Types" for more on the record name (NAME) and description (DESC) fields.

FieldSummaryTypeDCT DefaultReadWriteCA PP
NAMERecord NameSTRING [61]No YesNoNo
DESCDescriptorSTRING [41]Yes YesYesNo

Alarm Parameters

The long string input record has the alarm parameters common to all record types. "Alarm Fields" lists other fields related to a alarms that are common to all record types.

Run-time and Simulation Mode Parameters

The old value field (OVAL) of the long string input record is used to implement value change monitors for VAL. If VAL is not equal to OVAL, then monitors are triggered. LEN contains the length of the string in VAL, OLEN contains the length of the string in OVAL.

FieldSummaryTypeDCT DefaultReadWriteCA PP
OVALOld ValueSTRING[SIZV]No YesNoNo
LENLength of VALULONGNo YesNoNo
OLENLength of OVALULONGNo YesNoNo

The following fields are used to operate the string input in the simulation mode. See "Simulation Mode" for more information on simulation mode fields.

FieldSummaryTypeDCT DefaultReadWriteCA PP
SIOLSim Input SpecifctnINLINKYes YesYesNo
SIMLSimulation Mode LinkINLINKYes YesYesNo
SIMMSimulation ModeMENU (menuYesNo)No YesYesNo
SIMSSimulation Mode SeverityMENU (menuAlarmSevr)Yes YesYesNo

Device Support Interface

The record requires device support to provide an entry table (dset) which defines the following members:

 typedef struct {
     long number;
     long (*report)(int level);
     long (*init)(int after);
     long (*init_record)(lsiRecord *prec);
     long (*get_ioint_info)(int cmd, lsiRecord *prec, IOSCANPVT *piosl);
     long (*read_string)(lsiRecord *prec);
 } lsidset;

The module must set number to at least 5, and provide a pointer to its read_string() routine; the other function pointers may be NULL if their associated functionality is not required for this support layer. Most device supports also provide an init_record() routine to configure the record instance and connect it to the hardware or driver support layer.

Device Support for Soft Records

A device support module for DTYP Soft Channel is provided for retrieving values from other records or other software components.

Device support for DTYP getenv is provided for retrieving strings from environment variables. INST_IO addressing @<environment variable> is used on the INP link field to select the desired environment variable.