home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d199
/
snipdemo.lha
/
SnipDemo
/
Tools
/
convert_info
< prev
next >
Wrap
Text File
|
1989-03-31
|
2KB
|
68 lines
************************************************************
** **
** C O N V E R T **
** **
************************************************************
Copyright 1988, John A. Hodgson, All rights reserved.
Convert is a utility distributed with Snip to convert 12/16
bit binary PC data files ( MSDos ) into Snip Floating Point
format.
The program has been tested only on RC electronics
Computerscope files and Watscope files.
Transfer MSDos files to an Amiga disk using Dos 2 Dos or
AWRITE with the /b option.
To run Convert, double click on the Convert icon or
`run Convert' from the CLI.
A window with 5 gadgets will be displayed :-
InFile - The name of the file you wish to read.
Channels - The number of channels of data in the file.
Head Bytes - Number of header bytes before data begins.
( This is 256 for WatSmart files ).
Out File - The name of the Snip file you will create.
Convert - Click to initiate conversion.
A text string to the right of the Convert gadget reports
the program status. This will be `Ready !' if the program is
waiting for your input and `Converting' when the program is
making a Snip file.
The file created by Convert can be read into Snip using
the `Load' menu option in Snip.
MSDOS FILE FORMAT
The MSDos file expected by Convert may have a header with
the number of bytes indicated in the `Head Bytes' gadget.
The remainder of the file must be 2 byte numbers
with data from separate channels interleaved ( As in the
ASCII file format ).
i.e. -
Header (any number of Bytes)
Chan 1 Chan 2 Chan 3 ... etc.
Point 1 LSB MSB LSB MSB LSB MSB ...
Point 2 LSB MSB LSB MSB LSB MSB ...
. . . . ...
. . . . ...
etc....
Convert will flip the byte order and generate the
corresponding Snip file.
There should be no problem modifying this program for other
file formats, so if you have a special need, please let me
know.