The long string input record is used to retrieve an arbitrary ASCII string with a maximum length of 65535 characters.
The record-specific fields are described below, grouped by functionality.
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.
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.
Field Summary Type DCT Default Read Write CA PP VAL Current Value STRING[SIZV] No Yes Yes Yes OVAL Old Value STRING[SIZV] No Yes No No SIZV Size of buffers USHORT Yes 41 Yes No No INP Input Specification INLINK Yes Yes Yes No DTYP Device Type DEVICE Yes Yes Yes No
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.
Field Summary Type DCT Default Read Write CA PP MPST Post Value Monitors MENU (menuPost) Yes Yes Yes No APST Post Archive Monitors MENU (menuPost) Yes Yes Yes No
See "Fields Common to All Record Types" for more on the record name (NAME) and description (DESC) fields.
Field Summary Type DCT Default Read Write CA PP NAME Record Name STRING [61] No Yes No No DESC Descriptor STRING [41] Yes Yes Yes No
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.
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.
Field Summary Type DCT Default Read Write CA PP OVAL Old Value STRING[SIZV] No Yes No No LEN Length of VAL ULONG No Yes No No OLEN Length of OVAL ULONG No Yes No No
The following fields are used to operate the string input in the simulation mode. See "Simulation Mode" for more information on simulation mode fields.
Field Summary Type DCT Default Read Write CA PP SIOL Sim Input Specifctn INLINK Yes Yes Yes No SIML Simulation Mode Link INLINK Yes Yes Yes No SIMM Simulation Mode MENU (menuYesNo) No Yes Yes No SIMS Simulation Mode Severity MENU (menuAlarmSevr) Yes Yes Yes No
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.
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.