OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

impMDF

Contents

Menu Information

ETAS INCA MDF (DAT, MDF)

Brief Information

Import ETAS INCA MDF (DAT, MDF) files. Version INCA 5.4 supported (file version 3.0).

Additional Information

Minimum Origin Version Required: 8 SR0, updated in 8.6 SR0

Command Line Usage

  1. impMDF fname:="C:\Sample.MDF";
  2. impMDF fname:="C:\Sample.MDF" options.selectionmode:=1 options.rawdata:=1 options.FirstMode:=4;
  3. impMDF fname:="C:\Sample.MDF" options.bStructureOnly:=1 orng:=<new>;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
File Name fname

Input

string

fname$

Filename(s) of the file(s) to be imported. Click the browse button near the list box to open one or more files. Filenames will be listed in the box.

File Info and Data Selection trfiles

Input

TreeNode

<unassigned>

Show basic file information and select the desired data channels. See the Description part of this document for details.

Import Options options

Input

TreeNode

<unassigned>

Set the import options in the dialog. Please see the Description part of this document for details.

Output orng

Output

Range

<active>

The range into which to import data. See the syntax of Output Notations.

Header Info trheader

Output

TreeNode

<optional>

For outputting header information. This is hidden from the GUI. Use of this variable is not advised.

Repeat Import reimp

Input

int

0

For repeat import. Use of this variable is not advised.


Description

Use this X-Function to import ETAS INCA MDF (DAT, MDF) files. INCA 5.4 (file version 3.0) supported. This also lets users import the data file structure without data, and then to use the reimport X-Function to re-import the desired data range.


Details on Some Dialog Options

For more information, please refer to Details of TreeNodes in Import MDF.

Examples

  1. This first example imports the ETAS INCA MDF data file into a new book and renames the book with the file name.
    1. From the Origin menu, select File: Import: ETAS INCA MDF (DAT, MDF) or run impMDF -d; in the command window to open the MDF Files file browser.
    2. Browse to the folder containing your data file. Select the file and click the Add File(s) button. Click OK to close the dialog box.
    3. In the impMDF dialog box, expand Import Options. Select Auto Rename for File Name Options. Then expand File Info and Data Selection, and select the proper channels. Click Ok to close the dialog and import the file.
  2. In this second example, we will use script to import all MDF files under a specific folder (assume it is C:\MDFData)
  3. cd C:\MDFData;  // set C:\MDFData to be the current working directory
    findFiles ext:="*.MDF";  // find all MDF files
    impMDF;  // import all found MDF files
  4. In this example, we will import the structure of the MDF file, and then re-import the selected data range using the reimport X-Function.
    1. From the Origin menu, select File: Import: ETAS INCA MDF (DAT, MDF) or run impMDF -d; in the Command Window to open the MDF Files file browser.
    2. Select the data file <Origin Installation Directory>\Samples\Import and Export\ETAS INCA MDF\ZZP164_CPSSW_3_MS_0_SREC_0_shot43_20060227_151554.dat and click the Add File(s) button. Select the Show Options Dialog check box and then click OK to close the browser and bring up the impMDF dialog.
    3. In the impMDF dialog, expand Import Options. Select the Import Structure Only check box and keep all other default settings.
      Image:ImpMDF_Example3_1.png
    4. Click OK to import the structure. See the empty columns in the worksheet below.
      Image:ImpMDF_Example3_2.png
    5. Now, highlight the first two columns, and then run reimport sel:=1; in the Command Window to import these two columns.
      Image:ImpMDF_Example3_3.png

Related X-Functions

cd, impinfo, findFiles, impFile