<< 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: プリミティブのIDの一覧.

gatewayID: module_nameに関連するゲートウエイのIDの一覧

[primitives,primitivesID,gatewayID] = readgateway('core');
primitives(1) // 'debug' primitive
primitivesID(1) // 1 is ID of 'debug' in 'core' gateway
gatewayID(1) // 13 is ID of 'core' gateway in 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 >>