Single-Element Functions : Overview of Dataport Single Element Functions : Calling Single-Element Functions : : Stage 1

Stage 1

Pass the element name or synonym as a function argument to get the element ID. The function calling sequence is as follows:

stm_r_xx (name, status)

In this syntax:

stm_r_—Designates the function as a Rational Statemate database retrieval function.
xx—The two-character element type abbreviation.
name—The name of the element for which information is requested. The input argument name contains the name (path name) or synonym that uniquely identifies the element of interest. The name can be a variable or a literal string (enclosed by single apostrophe marks).
status—The return function status code.

For example:

stm_r_st(’S1’, &status)

 

    This function call returns the ID for state S1. The value returned by the function is a
    Rational Statemate element of the type specified by xx. In this example, the value returned by
    the function is of type STATE.