NFlow.addlibrarypath(folder)
paths = NFlow.addlibrarypath(folder)
| Parameter | Description |
|---|---|
| folder | a directory that holds one or more library sub-folders, each with a library.json and its native library. |
| Parameter | Description |
|---|---|
| paths | the updated list of search paths, a cell array of character vectors. |
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.
run([modulepath('nflow_gui'), '/examples/libraries/cumprod/builder.m']);
NFlow.addlibrarypath([modulepath('nflow_gui'), '/examples/libraries']);
NFlow.librarypaths()
| Version | Description |
|---|---|
| 2.0.0 | initial version |