Scilab Function
Last update : 27/10/2005
cp42mea - Reads MGCplus binary measurement files
completely
Calling Sequence
-
[filinf,CHINFO] =
cp42mea(meafile)
Parameters
-
meafile
: full name of the MGCplus measurement file. Standard extension
of the files is *.me*
-
filinf
: fileinfo is 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
: CHINFO is 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
-
There is a lot of information in the mea files about channels and
slots. Not all of these information is evaluated. 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]=cp42mea(); // Opens a file open dialogue and starts reading
plotmea(a1,a2);
Authors
-
Dr. Andreas Geissler geisslea@web.de