Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: svn+ssh://svn.fcdonders.nl/home/svnroot/fieldtrip/trunk@2782 0cf7c7f0-3615-4144-b4e6-68da3bce3cd0
- Loading branch information
1 parent
d2b408d
commit 71b727b
Showing
171 changed files
with
15,731 additions
and
15,731 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
Empty file.
Empty file.
94 changes: 47 additions & 47 deletions
94
external/neuroshare/libraries/plexon/PlexonNeuroshare.txt
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
Notes on the Plexon Neuroshare DLL implementation: | ||
- When returning Ext Events through the ns_GetEventInfo & ns_GetEventData Neuroshare APIs, each individual | ||
event code is returned as an individual entity, and all strobed event codes are returned as a single entity. | ||
For all events, a 2-byte data value is always returned. | ||
For individual events, the data value is the event code. | ||
For strobed events, the data value is the strobe value. | ||
- For Segment entities, the timestamp reported is the time of the first sample. However, for Neural entities, | ||
the timestamp reported is the trigger time (including the prethreshold time). Note that this means that timestamps | ||
of Segment entities will not in general match the timestamp for the corresponding Neural entity. | ||
- Stereotrode/tetrode data is handled for PLX files with Version 103 or later. The Neuroshare DLL uses the | ||
'Data' trodalness and not the 'True' trodalness. This means that for stereotrode/tetrode files acquired | ||
directly from the Plexon MAP system, the Neuroshare DLL will report the data as being single electrode | ||
because the 'Data' trodalness is 1. This still allows full access to the stereotrode/tetrode data, except | ||
it is delivered in a single-channel format. To convert a 'raw' stereotrode/tetrode PLX file to have a 'Data' | ||
trodalness of 2 or 4 (corresponding to stereotrode/tetrode data), the PLX file can be opened and re-saved | ||
in Offline Sorter. | ||
- ns_FILEINFO.dwTime_DayofWeek is not filled, as this item will be removed. | ||
- Months are filled assuming Jan == 1 | ||
Release History: | ||
1.0 Released 12/3/03 | ||
- initial release | ||
1.1 Released 7/26/04 | ||
- fix problems with GetTimeByIndex, GetIndexByTime for analog entries | ||
1.2 Released 1/17/05 | ||
- support for version 105 PLX file with changes in gain handling | ||
Limitations: | ||
The DLL only supports PLX files. DDT file support will follow shortly. | ||
The DLL only supports PLX files that are less than 2^32 bytes long. | ||
|
||
|
||
Notes on the Plexon Neuroshare DLL implementation: | ||
|
||
|
||
- When returning Ext Events through the ns_GetEventInfo & ns_GetEventData Neuroshare APIs, each individual | ||
event code is returned as an individual entity, and all strobed event codes are returned as a single entity. | ||
For all events, a 2-byte data value is always returned. | ||
For individual events, the data value is the event code. | ||
For strobed events, the data value is the strobe value. | ||
|
||
- For Segment entities, the timestamp reported is the time of the first sample. However, for Neural entities, | ||
the timestamp reported is the trigger time (including the prethreshold time). Note that this means that timestamps | ||
of Segment entities will not in general match the timestamp for the corresponding Neural entity. | ||
|
||
- Stereotrode/tetrode data is handled for PLX files with Version 103 or later. The Neuroshare DLL uses the | ||
'Data' trodalness and not the 'True' trodalness. This means that for stereotrode/tetrode files acquired | ||
directly from the Plexon MAP system, the Neuroshare DLL will report the data as being single electrode | ||
because the 'Data' trodalness is 1. This still allows full access to the stereotrode/tetrode data, except | ||
it is delivered in a single-channel format. To convert a 'raw' stereotrode/tetrode PLX file to have a 'Data' | ||
trodalness of 2 or 4 (corresponding to stereotrode/tetrode data), the PLX file can be opened and re-saved | ||
in Offline Sorter. | ||
|
||
- ns_FILEINFO.dwTime_DayofWeek is not filled, as this item will be removed. | ||
|
||
- Months are filled assuming Jan == 1 | ||
|
||
|
||
|
||
|
||
Release History: | ||
|
||
1.0 Released 12/3/03 | ||
- initial release | ||
|
||
1.1 Released 7/26/04 | ||
- fix problems with GetTimeByIndex, GetIndexByTime for analog entries | ||
|
||
1.2 Released 1/17/05 | ||
- support for version 105 PLX file with changes in gain handling | ||
|
||
|
||
|
||
Limitations: | ||
|
||
The DLL only supports PLX files. DDT file support will follow shortly. | ||
The DLL only supports PLX files that are less than 2^32 bytes long. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
To use: | ||
1) Put all of the Neuroshare '.m' scripts into a directory | ||
2) Put the mexprog.dll into the same directory | ||
3) Put the NeuroshareDLL into the same directory | ||
4) Change your matlab path to this directory | ||
-or- | ||
Add this directory to your Matlab path | ||
5) Done. | ||
To use: | ||
|
||
1) Put all of the Neuroshare '.m' scripts into a directory | ||
2) Put the mexprog.dll into the same directory | ||
3) Put the NeuroshareDLL into the same directory | ||
4) Change your matlab path to this directory | ||
-or- | ||
Add this directory to your Matlab path | ||
5) Done. |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
#include "mexutil.h" | ||
|
||
/* Functions to create uninitialized arrays. */ | ||
|
||
mxArray *mxCreateNumericArrayE(int ndim, const int *dims, | ||
mxClassID class, mxComplexity ComplexFlag) | ||
{ | ||
mxArray *a; | ||
int i, *dims1 = mxMalloc(ndim*sizeof(int)); | ||
size_t sz = 1; | ||
for(i=0;i<ndim;i++) { | ||
sz *= dims[i]; | ||
dims1[i] = 1; | ||
} | ||
a = mxCreateNumericArray(ndim,dims1,class,ComplexFlag); | ||
sz *= mxGetElementSize(a); | ||
mxSetDimensions(a, dims, ndim); | ||
mxFree(dims1); | ||
mxSetData(a, mxRealloc(mxGetData(a), sz)); | ||
if(ComplexFlag == mxCOMPLEX) { | ||
mxSetPi(a, mxRealloc(mxGetPi(a),sz)); | ||
} | ||
return a; | ||
} | ||
mxArray *mxCreateNumericMatrixE(int m, int n, mxClassID class, | ||
mxComplexity ComplexFlag) | ||
{ | ||
size_t sz = m*n*sizeof(double); | ||
mxArray *a = mxCreateNumericMatrix(1, 1, class, ComplexFlag); | ||
mxSetM(a,m); | ||
mxSetN(a,n); | ||
mxSetPr(a, mxRealloc(mxGetPr(a),sz)); | ||
if(ComplexFlag == mxCOMPLEX) { | ||
mxSetPi(a, mxRealloc(mxGetPi(a),sz)); | ||
} | ||
return a; | ||
} | ||
mxArray *mxCreateDoubleMatrixE(int m, int n, | ||
mxComplexity ComplexFlag) | ||
{ | ||
return mxCreateNumericMatrixE(m,n,mxDOUBLE_CLASS,ComplexFlag); | ||
} | ||
#include "mexutil.h" | ||
|
||
/* Functions to create uninitialized arrays. */ | ||
|
||
mxArray *mxCreateNumericArrayE(int ndim, const int *dims, | ||
mxClassID class, mxComplexity ComplexFlag) | ||
{ | ||
mxArray *a; | ||
int i, *dims1 = mxMalloc(ndim*sizeof(int)); | ||
size_t sz = 1; | ||
for(i=0;i<ndim;i++) { | ||
sz *= dims[i]; | ||
dims1[i] = 1; | ||
} | ||
a = mxCreateNumericArray(ndim,dims1,class,ComplexFlag); | ||
sz *= mxGetElementSize(a); | ||
mxSetDimensions(a, dims, ndim); | ||
mxFree(dims1); | ||
mxSetData(a, mxRealloc(mxGetData(a), sz)); | ||
if(ComplexFlag == mxCOMPLEX) { | ||
mxSetPi(a, mxRealloc(mxGetPi(a),sz)); | ||
} | ||
return a; | ||
} | ||
mxArray *mxCreateNumericMatrixE(int m, int n, mxClassID class, | ||
mxComplexity ComplexFlag) | ||
{ | ||
size_t sz = m*n*sizeof(double); | ||
mxArray *a = mxCreateNumericMatrix(1, 1, class, ComplexFlag); | ||
mxSetM(a,m); | ||
mxSetN(a,n); | ||
mxSetPr(a, mxRealloc(mxGetPr(a),sz)); | ||
if(ComplexFlag == mxCOMPLEX) { | ||
mxSetPi(a, mxRealloc(mxGetPi(a),sz)); | ||
} | ||
return a; | ||
} | ||
mxArray *mxCreateDoubleMatrixE(int m, int n, | ||
mxComplexity ComplexFlag) | ||
{ | ||
return mxCreateNumericMatrixE(m,n,mxDOUBLE_CLASS,ComplexFlag); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#include "mex.h" | ||
|
||
mxArray *mxCreateNumericArrayE(int ndim, const int *dims, | ||
mxClassID class, mxComplexity ComplexFlag); | ||
mxArray *mxCreateNumericMatrixE(int m, int n, mxClassID class, | ||
mxComplexity ComplexFlag); | ||
mxArray *mxCreateDoubleMatrixE(int m, int n, | ||
mxComplexity ComplexFlag); | ||
#include "mex.h" | ||
|
||
mxArray *mxCreateNumericArrayE(int ndim, const int *dims, | ||
mxClassID class, mxComplexity ComplexFlag); | ||
mxArray *mxCreateNumericMatrixE(int m, int n, mxClassID class, | ||
mxComplexity ComplexFlag); | ||
mxArray *mxCreateDoubleMatrixE(int m, int n, | ||
mxComplexity ComplexFlag); |
Oops, something went wrong.