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.

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.

FieldSummaryTypeDCT DefaultReadWriteCA PP
VALCurrent ValueSTRING or CHAR[SIZV]No YesYesYes
OVALOld ValueSTRING or [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 the fields related to alarms that are common to all record types.

Run-time 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 or [SIZV]No YesNoNo
LENLength of VALULONGNo YesNoNo
OLENLength of OVALULONGNo YesNoNo

Simulation Mode Parameters

The following fields are used to operate the record in simulation mode.

If SIMM (fetched through SIML) is YES, the record is put in SIMS severity and the value is fetched through SIOL. SSCN sets a different SCAN mechanism to use in simulation mode. SDLY sets a delay (in sec) that is used for asynchronous simulation processing.

See Input Simulation Fields for more information on simulation mode and its fields.

FieldSummaryTypeDCT DefaultReadWriteCA PP
SIMLSimulation Mode LinkINLINKYes YesYesNo
SIMMSimulation ModeMENU (menuYesNo)No YesYesNo
SIOLSimulation Input LinkINLINKYes YesYesNo
SIMSSimulation Mode SeverityMENU (menuAlarmSevr)Yes YesYesNo
SDLYSim. Mode Async DelayDOUBLEYes-1.0YesYesNo
SSCNSim. Mode ScanMENU (menuScan)Yes65535YesYesNo

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.