05.05.2013 Views

Huron & SNAP Documentation

Huron & SNAP Documentation

Huron & SNAP Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

; comments<br />

(<br />

(dtype [bit16 | bit20 | bit24 | fixed | double] )<br />

(mode [binary | text] )<br />

(vsize integer)<br />

(dmode [periodic | stream])<br />

(struct [real | imaginary | complex])<br />

[(samplerate longinteger)]<br />

[(plotmax string)]<br />

[(plotmin string)]<br />

)<br />

text or binary data ...<br />

The SIM File Format<br />

The format of the *.SIM file appears below. In general terms<br />

the format of a *.SIM file is characterised by a header of control<br />

information describing the type of data and its format, followed<br />

by the actual data in a vector format. If the data contained in<br />

the vectors is complex, the real and complex parts are<br />

interleaved, sample by sample.<br />

The control information in the header is made up of the<br />

following components.<br />

Component Description<br />

Data type dtype set to bit16, bit20, bit24, fixed point or double<br />

precision.<br />

File mode mode is set to text or binary.<br />

Vector size vsize set to length of vector.<br />

Data mode dmode set to periodic or stream data.<br />

Structure struct set to complex, real or imaginary.<br />

Samplerate samplerate in Hertz [optional].<br />

Plotmax/min string, generated internally by some Lake tools [optional].<br />

Comments ; followed by comment to end of line.<br />

Data Formats<br />

The following points should be kept in mind when creating or<br />

modifying a *.SIM file for use with Lake Technology software.<br />

• Fixed point data is written as a 2's complement whole<br />

integer. For example, a bit16 fixed point word would be<br />

in the range from -32768 to 32767. Double precision<br />

floating point can only be uniquely represented in binary,<br />

and may give truncation errors when in text mode.<br />

HURON TECHNICAL MANUAL PAGE 211

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!