Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Modules manager > tbx_build_pal_loader

tbx_build_pal_loader

Generate a loader_pal.sce script for loading Xcos palette module(toolbox compilation process)

Calling Sequence

tbx_build_pal_loader(palette_name, block_names , module_path [, script_path])

Arguments

palette_name

a character string, the name of the palette.

block_names

Block interface function list (in a string vector) ; all name should have a corresponding interface function macro (on the macros subdirectory).

module_path

a character string, the path of the directory containing the module.

script_path

an optional character string that can be used to specify the location of the created loader_pal.sce script file. If not given the script file will be created in the module_path+"/macros" directory.

Generaly the loader_pal.sce script file is created in the directory which contains the block interface functions files. The script_path argument can be used to handle modules that define several palettes.

Examples

//The recommended buildmacros.sce file
function buildMacrosAndBlocks()
  script_path = get_absolute_file_path("buildmacros.sce");
  module_path = part(script_path,1:length(script_path)-length("macros"))
  
  tbx_build_macros(NAME,  script_path);
  interface_functions = //to be defined
  
  tbx_build_blocks(module_path, interface_functions);
  tbx_build_pal_loader(TITLE,interface_functions,module_path,script_path)
endfunction
buildMacrosAndBlocks()
clear buildMacrosAndBlocks;
Report an issue
<< tbx_build_macros Modules manager tbx_build_src >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:24:30 CEST 2015