3mcs specific matlab functions – Multichannel Systems MATLAB Manual User Manual

Page 15

Advertising
background image

Matlab and Neuroshare

16

3

MCS Specific Matlab Functions

All functions listed in the following can be executed by mcs_ExampleScript.

mcs_ExampleScript might serve as example and shows how to work with the given functions.

mcs_ExampleScript generates all parameters needed to run and to perform the following
Matlab functions:

-

mcs_Info.m

-

mcs_GetEntities.m

-

mcs_Graphic.m

mcs_ExampleScript uses three predefined Neuroshare functions (“ns_...”) and a modified
Neuroshare function that is described in the next section of the text.

mcs_SetLibrary('nsMCDlibrary.dll') will always be the first step. This function opens
a Neuroshare shared Library and loads the appropriate DLL.

ns_GetLibraryInfo obtains information about the library.

ns_OpenFile opens a neural data file, specified by filename or pathway and returns a file
called hFile, that contains an identification number. This is important when you want to call
the following functions.

ns_GetFileInfo is a function that contains some information about the data file like FileType,
EntityCount, TimeStampResolution, TimeSpan, AppName, Time_Year, Time_Month, Time_Day,
Time_Hour, Time_Min, Time_Sec, Time_MilliSec, FileComment.FileType
is given as a sequence
of abbreviations.

It is a combination of several properties: Layout, continuous or not, recorded streams.

For example:

FileInfo =

FileType: 'MEA cont Di,El,An'

The Channel Type is named according to the title given in MC_Rack (first two letters).
Channel Types of streams which are not mapped up to now can be neglected.

Advertising