Add a palette to the Scilab/Xcos palette manager. Optional property can be added to set the category of the palette.
xcosPalAdd(pal); xcosPalAdd(pal, category); status = xcosPalAdd(pal); status = xcosPalAdd(pal, category); [status, msg] = xcosPalAdd(pal); [status, msg] = xcosPalAdd(pal, category);
palette tlist or path string; the palette to add
string array; the optional category path to use
boolean; the status of the operation
string; the error message
After setting the blocks into the palette, the user add this function to add a Scilab palette to the Xcos palette manager.
The optional category argument can be used to add the palette to a customized category path. If not specified, the root category is used.
loadXcosLibs(); pal = xcosPal(); pal = xcosPalAddBlock(pal, "SUM_f"); pal = xcosPalAddBlock(pal, "BIGSOM_f"); xcosPalAdd(pal, "my Summation blocks") | ![]() | ![]() |