01.06.2013 Views

SonTek/YSI Argonaut-XR Technical Manual - HydroScientific West

SonTek/YSI Argonaut-XR Technical Manual - HydroScientific West

SonTek/YSI Argonaut-XR Technical Manual - HydroScientific West

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix 1. <strong>Argonaut</strong> Binary Data File Format<br />

<strong>Argonaut</strong> Operation <strong>Manual</strong> Firmware Version 7.9 (May 1, 2001)<br />

<strong>SonTek</strong>/<strong>YSI</strong><br />

The file format described in this appendix is valid for <strong>Argonaut</strong> CPU firmware versions 3.0 and<br />

higher. For information about changes in the <strong>Argonaut</strong> data file format from previous firmware<br />

versions, contact <strong>SonTek</strong>.<br />

A1.1. Overview<br />

The basic structure of an <strong>Argonaut</strong> binary file with N samples is shown below. The size of each<br />

sample is a function of the setting of the DataFormat parameter (LONG or SHORT, see §3.8).<br />

File Header 418 bytes<br />

Sample 1 (22 or 38) bytes<br />

Sample 2 (22 or 38) bytes<br />

...<br />

Sample N (22 or 38) bytes<br />

The <strong>Argonaut</strong> file header consists of three binary structures in the following order.<br />

<strong>Argonaut</strong> Sensor Configuration 96 bytes<br />

<strong>Argonaut</strong> Operation Configuration 64 bytes<br />

<strong>Argonaut</strong> User Setup Parameters 258 bytes<br />

Each of the structures mentioned above are described in detail (using their C language<br />

definitions) in the remainder of this appendix. Source code is provided in ARGDATA.H, which is<br />

included on the software distribution disk.<br />

A1.2. File Header Structures<br />

Each <strong>Argonaut</strong> file header structure is described below using the C language definition. The first<br />

structure, “<strong>Argonaut</strong> Date and Time Structure”, is referenced by other structures.<br />

<strong>Argonaut</strong> date and time structure (8 bytes)<br />

typedef struct {<br />

int year;<br />

char day,<br />

month,<br />

minute,<br />

hour,<br />

sec100,<br />

second;<br />

} DateTimeType;<br />

<strong>Argonaut</strong> sensor configuration structure (96 bytes)<br />

typedef struct {<br />

char ConfigType; /* Type 0x40 */<br />

char ConfigVer; /* Version 0x02 */<br />

int Nbytes; /* Bytes in configuration */<br />

DateTimeType ConfigTime; /* Date created or last modified */<br />

unsigned char SoftwareVerNum; /* Ver number of ADCM firmware */<br />

unsigned char DspSoftwareVerNum; /* Ver number of DSP firmware */<br />

char BoardRev; /* Electronics board revision */<br />

char SerialNumber[10]; /* Sensor serial number */<br />

char SystemType; /* Low Nibble: 0-3MHz 1-1.5MHz */<br />

/* High Nibble: */<br />

/* 0 - MD */<br />

/* 1 - <strong>XR</strong> */<br />

/* 2 - SL */<br />

87

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

Saved successfully!

Ooh no, something went wrong!