1 using the ascii text import – Campbell Scientific ID-2000W Software User Manual

Page 56

Advertising
background image

SECTION 6. IMPORT/EXPORT

6-2

To add your custom import utility to ID-2000
follow the steps outlined below:

1. Use the Windows Notepad or other text

editing utility to load the IDWIN.INI file
located in you Windows directory.

2. Locate the [User Import] section of the file.

If you do not have this section in your
IDWIN.INI file then add it as a new line at
the bottom of the file.

3. On the line(s) below the [User Import]

section is where you will add your custom
import utilities. The line should begin with
“User1=“ (without the quotation marks) for
the first custom import, “User2=“ for the
second, “User3=“ for the third and so on.
Following the equal sign should be the
description you wish to see in the drop
down list. Place a comma after the
description and then the data file extension
of your data files (i.e. - *.dat). If you wish to
search for multiple file extensions simply
separate them by a semi-colon (i.e. -
*.dat;*.txt;*.prn;*.csv). Place another
comma after the file extension and then the
full path name of your custom import utility.
Here is an example of two custom imports
that have been added:

[User Import]

User1=My
Import,*.dat,C:\ID2OOOW\CUSTOM1.EXE

User2=Your
Import,*.dat,C:\ID2000W\YOUR.EXE

Keep in mind that ID-2000 merely sends a
request to Windows asking it to execute your

custom import program when you select your
data file. If your system does not have enough
resources to simultaneously run your custom
import program then the request is denied by
Windows. Should this happen you may be able
to close other applications you might have
running to free additional Windows resources.

When your custom import program activates,
remember that it is running simultaneously with
ID-2000. This means that you should exit your
program (or have it automatically terminate)
when you are finished with it instead of leaving it
active and merely switching back to the ID-2000
window. This will allow any memory and
resources used by your application to be
returned to Windows.

6.1.1 USING THE ASCII TEXT IMPORT

There is no standard ASCII file format. ASCII
only implies that text characters are used
instead of binary formatted data. As a result,
there are an infinite number of ASCII formats
that may be encountered. Fortunately, most
data acquisition programs that produce ASCII
files follow some general guidelines. These
guidelines are used by the ID-2000 ASCII
import feature.

Below is a portion of a sample ASCII file that
may be imported using the ASCII Text file type
in ID-2000.

Pressure1,Pressure2,Pressure3,..

psia,psia,psia,...

0.021999,0.047987,0.077953,...

0.032995,0.071957,0.116842,...

0.043988,0.095898,0.155626,...

0.054977,0.1198,0.19427,...

0.06596,0.143655,0.232738,...

Advertising