<< macr2lst functions recompilefunction >>
removed >> removed > 5-5-2 > functions > readgateway

readgateway

get primitives list of a module

Calling Sequence

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

Arguments

module_name

a string

primitives, primitivesID, gatewayID

matrices of string

Description

readgateway(module_name) gets primitives list of a module_name.

primitives: list of primitives of a module_name.

primitivesID: list of ID for primitives.

gatewayID: list of ID of gateway associated to a module_name.

Examples

[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 xmlGetValues():

// Example with the console 5.5.2-like module:
path = "SCI/modules/console/sci_gateway/console_gateway.xml";
xmlGetValues("//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";
xmlGetValues("//module/gateway", "function", path)
 ans  =
!fft     !
!corr    !
!rpem    !
!amell   !
!delip   !
!remez   !
!syredi  !
!conv2   !

See Also

History

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

<< macr2lst functions recompilefunction >>