NFlow.addlibrarypath
Add an nflow block library search path.
📝Syntax
NFlow.addlibrarypath(folder)
paths = NFlow.addlibrarypath(folder)
📥Input Arguments
Parameter Description
folder a directory that holds one or more library sub-folders, each with a library.json and its native library.
📤Output Arguments
Parameter Description
paths the updated list of search paths, a cell array of character vectors.
📄Description

NFlow.addlibrarypath adds folder to the nflow block library search paths and scans it. Every sub-folder that holds a library.json next to its native library is loaded, so its blocks become available to sim, code generation and the editor without restarting Nelson.

Adding a folder that is already registered has no effect. An error is raised when folder does not exist.

💡Examples
Build the cumprod example plugin and register its library folder.
run([modulepath('nflow_gui'), '/examples/libraries/cumprod/builder.m']);
NFlow.addlibrarypath([modulepath('nflow_gui'), '/examples/libraries']);
NFlow.librarypaths()
🔗See Also
NFlow.librarypathsNFlow.rmlibrarypathsim
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub