<< macr2lst functions recompilefunction >>

removed >> removed > 5-5-2 > functions > readgateway

readgateway

получение списка примитивов модуля

Последовательность вызова

readgateway(module_name)
primitives = readgateway(module_name);
[primitives,primitivesID] = readgateway(module_name);
[primitives,primitivesID,gatewayID] = readgateway(module_name);

Аргументы

module_name

строка

primitives, primitivesID, gatewayID

матрицы строк

Описание

readgateway(module_name) возвращает список переменных модуля module_name.

primitives: список примитивов модуля module_name.

primitivesID: список идентификаторов примитивов.

gatewayID: список идентификаторов шлюзов, связанных с модулем module_name.

Примеры

[primitives,primitivesID,gatewayID] = readgateway('core');
primitives(1) // примитив 'debug'
primitivesID(1) // идентификатор примитива 'debug' в шлюзе 'core'
gatewayID(1) // идентификатор шлюза 'core' в Scilab

With getPreferencesValue():

// Example with the console 5.5.2-like module:
path = "SCI/modules/console/sci_gateway/console_gateway.xml";
getPreferencesValue("//GATEWAY/PRIMITIVE",["primitiveName" "primitiveId" "gatewayId"], path)
 ans  =
!clc                1  53  !
!tohome             2  53  !
!lines              3  53  !
!prompt             4  53  !
!iswaitingforinput  5  53  !

// Example with the signal_processing Scilab-6-like module:
path = "SCI/modules/signal_processing/sci_gateway/signal_processing_gateway.xml";
getPreferencesValue("//module/gateway", "function", path)
 ans  =
!fft     !
!corr    !
!rpem    !
!amell   !
!delip   !
!remez   !
!syredi  !
!conv2   !

Смотрите также

История

VersionDescription
5.5.2 readgateway was removed after Scilab 5.5.2. Please use getPreferencesValue(..) instead.

Report an issue
<< macr2lst functions recompilefunction >>