Scilab Function
Last update : 27/10/2005
cp42cut - Read MGCplus Data files partially,
recorded with CP42
Calling Sequence
-
[filinf,CHINFO] =
cp42cut(meafile,idx)
Parameters
-
meafile
: complete filename of the MGCplus measurement file
-
idx
: Row vector with two elements, containing the start and end
measurement sample index
-
filinf
: a struct, containing the FileID, the number of channels
"ChannelC", Byte/Line, the data format, the data offset, the time
format, the file comment, the comment of the current parameterset,
the information about the creation date and the number of used
slots.
-
CHINFO
: a struct, containing information about the channel number, the
scaling, offset, unit, signalling bit, subchannel, data, timeaxis,
channel name and the channel code. Also the CHANNEL STATUS,
including MGCplus LIMIT VALUES Switch State, CHANNEL ERROR, OVERFLOW
are contained in the field status for each measurement channel . Bit
0=Status Limit Value 1 , Bit 1=Status Limit Value 2 , Bit 2=Status
Limit Value 3, Bit 3=Status Limit Value 4 , Bit 4=Overflow Gross
Value, Bit 5=Overflow Net Value, Bit 6=calibration error , Bit
7=Change-Flag (amplifier scaling has changed)
Description
-
Only CP42 measurement files are supported. These DAQ files may
contain time information in following formats: 1) No Time Information,
2) MGCplus Time (64 Bit) , 3) NTP Time Format . The Time Formats "USB
Frame Count" and 32 Bit MGC device Time are not supported.
-
IMPORTANT: Only Measurement files with format 4 BYTE INT (Intel)
are supported.
Examples
[a1,a2]=meacomp(2000); // Reads a measurement file as activity overview
plotmea(a1,a2); // Shows the measurement data
[cl1,cl2,cl3]=xclick(); // Select start index
[cr1,cr2,cr3]=xcklick(); // Select end index
[b1,b2]=cp42cut(a1.filename,[cl2,cr2]);
xbasc();
plotmea(b1,b2);
See Also
plotmea
,
cp42mea
,
Authors
-
Dr. Andreas Geissler geisslea@web.de