Declaration
ON EDA_WARNING GOTO   procName [PRTY prtyIdent] 

Parameters
procName in Name of RPC procedure in ESL script.
prtyIdent in Optional parameter of Int type. Priority when RPC calling.

Description
This action specifies a procedure (through procName) that will be called if warning occurs when executing the EDA external function. The executor or external function generates automatically a command to call the registered RPC procedure. The procedure must be defined in ESL script that is executed in the same process as script, which requires to execute EDA external function.
In one process, there is possible to define ON EDA_WARNING only once.

When multiple defining the last handle is registered in such the sequence in which the scripts with EDA_Warning were executed.

The key word PRTY enables to enter the priority of executing the registered RPC procedure. This feature ensures the priority executing of registered RPC Procedure. Priority is defined by parameter prtyIdent after key word PRTY.

Procedure procName must consists of the following declaration:
 

 RPC PROCEDURE ProcName (IN INT _vektorId, IN TEXT _vektorName, IN INT _typeWarning, IN TEXT _message, IN RECORD NOALIAS (SD.EDA_TRACEBACK) _traceback)
 END ProcName 

_vektorId - Id of vector, whose executing caused the warning.
_vektorName - name of vector, whose executing caused the warning
_typeWarning - numerical value that specifies the type of warning
_message - text string that contains "warning" message
_traceback - structured variable that contains consecutiveness in the calculation of EDA vectors

RPCX can be used instead of RPC.

Local variable _traceback must consists of the following definitions (this order must be kept):
 
INT vectorId - id of vector
TEXT vectorName - vector name
INT line - number of line in an instruction of calculated vector

Value of the formal parameter _typeWarning is one of the following options:
1 - WARN_NOT_PRECALCULATED - vector is not precalculated till the required time that is set by the function EDA_SetFunctionRec.

Related pages:

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .