ImportNS
ImportNS uses the NeuroShare library to import a data file under Windows
ImportNS is called to load various proprietary file formats where the
manufacturers have provided a NeuroShare compliant DLL. Communication
with the file occurs via Neuroshare mexprog.dll
ImportNS should not be called direcly but via one of the format specific
import routines .ImportNS assumes that the appropriate NeuroShare dll
has already been selected by a previous call to ns_SetLibrary and that
the NeuroShare mexprog.dll (or mexprog.mexw32) is available.
Example:
MATFILENAME=ImportNS(FILENAME, TARGETPATH)
FILENAME is the path and name of the Spike2 file to import.
The sigTOOL (*.kcl) file generated will be placed in TARGETPATH if
supplied. If not, the file will be created in the directory taken
from FILENAME.
Toolboxes required: None
Acknowledgements: This routine calls the NeuroShare mexprog.dll and
associated m-files to communicate with the various manufacturer specific
NeuroShare DLLs
Author: Malcolm Lidierth 10/06
Copyright © The Author & King's College London 2006-2007
Revisions:
25.09.09 Explicit double precision for hdr.adc.YLim (needed for low values of
adcscale)
05.11.09 See within
Change to nanoseconds for sample interval
17.11.09 Change to calculation of imp.tim(:,2)