Current Page:
NeXtMidas Training
Working with Files
Basic File Commands
HEADERMOD - Modifying file headers
|
|
- The
HEADERMOD Command:
- The
HEADERMOD command is used to manipulate Midas (Blue)
file headers.
- Some of the more common tags are:
TYPE - To change the file type
FORM - To change the file format
XU - To change the file Abscissa (X) units
XS - To change the file Abscissa (X) start
XD - To change the file Abscissa (X) delta
FS - To change the file Frame size (type 2000)
YU - To change the file Secondary (Y) units
YS - To change the file Secondary (Y) start
YD - To change the file Secondary (Y) delta
- For example:
nM> waveform temp
nM> headermod temp type=2000 fs=1024
Changes a type 1000 into a type 2000 file with a frame size of 1024.
- Additional switches in
HEADERMOD allow you to view, create, attach
or detach headers.
- Detached headers are used to store the Midas data (.det) and header (.tmp) in
separate files.
- See the
HEADERMOD explain file for more information.
X-Midas Users Take Note: |
Some of the tags for the NeXtMidas HEADERMOD command do not match those
of the X-Midas HEADERMOD command. For instance, the F= tag
in X-Midas is FORM= in NeXtMidas. NeXtMidas makes use of a Java feature
called reflection to find the appropriate method when a tag is given. In the
case of FORM= it will find the DataFile.setFormat() method
and call it. By using reflection NeXtMidas is able to eliminate any additional wrapper
that would otherwise be present in the HEADERMOD command.
|
|
|
|