engOpen

Start Nelson process

Syntax

  • #include "engine.h"

  • Engine *engOpen(const char *startcmd);

Input argument

  • startcmd - Nelson startup command (NULL).

Output argument

  • Engine - handle to Nelson engine or NULL.

Description

engOpen starts a Nelson process for using Nelson as a computational engine.

Libraries path need to contain nelson path to find Nelson's libraries at runtime.

Set the value to the path returned by the following Nelson command:

res = modulepath('nelson', 'builtin')

on linux: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:res

export PATH=$PATH:res

on macos: export DYLIB_LIBRARY_PATH=$DYLIB_LIBRARY_PATH:res

export PATH=$PATH:res

on windows: set PATH=%PATH%;res

Example

edit([modulepath('mex', 'tests'), '/test_engine.c'])

See also

mex, engClose.

History

Author

Allan CORNET

Last updated