/* Read in a Monitor 7.0 file and convert it into an EBS file. Copyright (C) 1993/94 M. Prosch, M. Kuhn, Institut fuer Physiologie und Biokybernetik (IPB), Universitaet Erlangen, Deutschland Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and related publications and that both that copyright notice and this permission notice appear in supporting documentation. The authors make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. Send your comments, suggestions or bug reports to ftpebs@uni-erlangen.de Or mail to Institut fuer Physiologie und Biokybernetik Markus Prosch Universitaetsstrasse 17 D-91054 Erlangen Germany $Id: mon70ebs.c,v 1.22 1994/12/16 15:43:09 aescheel Exp $ */ #include #include #include #include #include #include #include #include #include "ebs.h" /* for pre-ANSI-versions of stdio.h */ #ifndef SEEK_SET #define SEEK_SET 0 #endif #ifndef SEEK_END #define SEEK_END 2 #endif #ifndef PI #define PI 3.14159265358979323846 #endif #ifdef MSDOS #include "setstack.c" #endif #define HEADERLENGTH (3*256) #define BLOCKSIZE 1000 #define RECORD_LEN 64 #define NO_SAMPLES 0xffffffff #define SPIKES_SHORT_DESCRIPTION "MonSpike" #define SPIKES_DESCRIPTION "Spike positions reported by Monitor 7.0 "\ "(Stellate Systems)" #define SEIZURES_SHORT_DESCRIPTION "MonSeiz" #define SEIZURES_DESCRIPTION "Seizure onsets reported by Monitor 7.0 "\ "(Stellate Systems)" #define ANNOTATIONS_SHORT_DESCRIPTION "MonAnnot" #define ANNOTATIONS_DESCRIPTION "Annotations reported by Monitor 7.0 "\ "(Stellate Systems)" char copyright[]= "Read in a Monitor 7.0 file and convert it into an EBS file.\n" "Copyright (C) 1993/94 M. Prosch, M. Kuhn, Institut fuer Physiologie und\n" " Biokybernetik (IPB), Universitaet Erlangen, Deutschland\n\n" "Permission to use, copy, modify, distribute, and sell this software\n" "and its documentation for any purpose is hereby granted without fee,\n" "provided that the above copyright notice appear in all copies and\n" "related publications and that both that copyright notice and this\n" "permission notice appear in supporting documentation. The authors make\n" "no representations about the suitability of this software for any\n" "purpose. It is provided \"as is\" without express or implied warranty.\n\n" "Send your comments, suggestions or bug reports to\n" " ftpebs@uni-erlangen.de\n\n" "Or mail to\n" " Institut fuer Physiologie und Biokybernetik\n" " Markus Prosch\n" " Universitaetsstrasse 17\n" " D-91054 Erlangen\n" " Germany\n\n"; char version[] = "Monitor 7.0 to EBS converter, V0.2 "__DATE__"\n" "(C) 1993/94 Markus Prosch, Markus Kuhn, Thomas Schicketanz, IPB, Erlangen"; char version_short[] = "Monitor 7.0 to EBS converter, V0.2, M. Prosch, " "M. Kuhn, IPB"; char usage[] = "%s\n\nusage: %s [-v] [-f] [-e] " "[-ss | -st