Inside <samples> the dive profile data (depth, time, temperature, breathing gas used) are given.
Inside the first <waypoint> statement a <switchmix/> element must be given to specify the breathing gas used.
<dive>
<waypoint>
<dive>, <switchmix/>, <waypoint>
<dive> <!-- previous statements --> ... <samples> <waypoint> <!-- at beginning breathing gas ,,1`` (defined in the --> <!-- <gasdefinitions> section) is used --> <!-- a dive always begins at the surface at 0 m --> <depth>0.0</depth> <divetime>0.0</divetime> <switchmix ref="1"/> <temperature>298.2</temperature> </waypoint> <waypoint> <depth>40.0</depth> <divetime>300.0</divetime> <temperature>291.2</temperature> </waypoint> <waypoint> <depth>40.0</depth> <divetime>900.0</divetime> </waypoint> <waypoint> <depth>28.0</depth> <divetime>1080.0</divetime> <temperature>295.2</temperature> </waypoint> <waypoint> <depth>15.0</depth> <divetime>1500.0</divetime> <temperature>297.2</temperature> </waypoint> <waypoint> <depth>6.0</depth> <divetime>1860.0</divetime> <temperature>298.2</temperature> </waypoint> <waypoint> <depth>3.0</depth> <divetime>2040.0</divetime> <!-- switch to breathing gas "2" --> <switchmix ref="2"/> </waypoint> <waypoint> <depth>3.0</depth> <divetime>2280.0</divetime> </waypoint> <waypoint> <!-- a dive always ends at the surface at 0 m --> <depth>0.0</depth> <divetime>2580.0</divetime> </waypoint> </samples> </dive> <!-- here can follow more <dive> data -->
<dive> <!-- previous statements --> ... <!-- dive computers store the depth in certain time intervals --> <!-- therefore many <waypoint> statements have to be written --> <!-- into the UDDF file --> <samples> <!-- a 20 seconds interval was used by the dive computer --> <waypoint> <!-- at beginning breathing gas "air" (defined in the --> <!-- <gasdefinitions> section) is used --> <!-- a dive always begins at the surface at 0 m --> <depth> 0.0</depth> <divetime> 0.0</divetime> <switchmix ref="air"/> </waypoint> <waypoint> <depth>4.7</depth> <divetime>20.0</divetime> </waypoint> <waypoint> <depth>7.0</depth> <divetime>40.0</divetime> </waypoint> <waypoint> <depth>11.1</depth> <divetime>60.0</divetime> </waypoint> <!-- here follow more <waypoint> statements --> <waypoint> <depth>13.9</depth> <divetime>3580.0</divetime> </waypoint> <waypoint> <depth>13.9</depth> <divetime>3600.0</divetime> <work>1</work> </waypoint> <waypoint> <depth>14.1</depth> <divetime>3620.0</divetime> <work>1</work> </waypoint> <waypoint> <depth>14.5</depth> <divetime>3640.0</divetime> <work>1</work> </waypoint> <waypoint> <depth>15.0</depth> <divetime>3660.0</divetime> <work>1</work> </waypoint> <waypoint> <depth>15.2</depth> <divetime>3680.0</divetime> </waypoint> <waypoint> <depth>13.8</depth> <divetime>3700.0</divetime> </waypoint> <waypoint> <depth>12.8</depth> <divetime>3720.0</divetime> <alarm>ascent</alarm> </waypoint> <waypoint> <depth>10.2</depth> <divetime>3740.0</divetime> </waypoint> <waypoint> <depth>9.4</depth> <divetime>3760.0</divetime> </waypoint> <waypoint> <depth>8.1</depth> <divetime>3780.0</divetime> </waypoint> <waypoint> <depth>7.2</depth> <divetime>3800.0</divetime> </waypoint> <waypoint> <depth>6.1</depth> <divetime>3820.0</divetime> </waypoint> <waypoint> <depth>5.3</depth> <divetime>3840.0</divetime> </waypoint> <waypoint> <depth>4.2</depth> <divetime>3860.0</divetime> <alarm>breath</alarm> </waypoint> <waypoint> <depth>3.4</depth> <divetime>3880.0</divetime> </waypoint> <waypoint> <depth>3.6</depth> <divetime>3900.0</divetime> </waypoint> <waypoint> <depth>4.1</depth> <divetime>3920.0</divetime> </waypoint> <waypoint> <depth>3.6</depth> <divetime>3940.0</divetime> </waypoint> <waypoint> <depth>2.8</depth> <divetime>3960.0</divetime> </waypoint> <waypoint> <depth>2.7</depth> <divetime>3980.0</divetime> </waypoint> <waypoint> <depth>2.0</depth> <divetime>4000.0</divetime> </waypoint> <waypoint> <depth>1.1</depth> <divetime>4020.0</divetime> </waypoint> <waypoint> <!-- a dive always ends at the surface at 0 m --> <depth>0.0</depth> <divetime>4040.0</divetime> </waypoint> </samples> </dive> <!-- here more <dive> sections can follow -->