1 mcs_setlibrary.m: summary of functionality – Multichannel Systems MATLAB Manual User Manual

Page 17

Advertising
background image

Matlab and Neuroshare

18

3.1 mcs_SetLibrary.m:

Summary of Functionality

mcs_SetLibrary is a further implementation of ns_SetLibrary. mcs_SetLibrary supplements
ns_SetLibrary through an optimized sequence of events if ns_SetLibrary is not able to open
the required file. mcs_SetLibrary returns more information in the form of error and status
messages and in case of failure, the function parse the Matlab path and tries to open the file
using different paths.

Usage:

[ns_RESULT] = mcs_SetLibrary(filename)

Description:

Opens the dynamic linked library specified by filename or in case of failure tries to open
it using a different path.

Parameters:

Filename

Pointer to a null-terminated string that specifies the name of the file to open.

Return Values:

ns_RESULT

This function returns 0 if the file is successfully opened. Otherwise the following
error message is generated:'ns_SetLibrary does not find the library:... 'and maybe
'Try to open …' and 'Success' .

Advertising