Inside the <divecomputercontrol> section statements for the configuration of a dive computer (<setdcdata>), or reading of data from a dive computer (<getdcdata>) respectively, are given.
The <divecomputercontrol> section is the last section in an UDDF file, because inside it referentiations to prior declared elements in other sections are posiible.
<uddf>
<uddf version="2.2.0"> <generator> <!-- here information about the software --> </generator> <divecomputercontrol> <setdcdata> <!-- set date, and time --> <setdcdate> <date> <year>2007</year> <month>8</month> <day>24</day> </date> </setdcdate> <setdctime> <!-- 9:00 am --> <time> <hour>9</hour> <minute>0</minute> </time> </setdctime> <!-- set the decompression model to be used --> <setdcdecomodel> <name>RGBM</name> <program> <!-- here additional data by the manufacturer to be used with the given deco model --> </program> </setdcdecomodel> <!-- set the breathing gase/s to be used --> <setdcgasdefinitionsdata/> <!-- set an alarm to be given if end of no-decompression time is reached --> <setdcendndtalarm> <dcalarm> <!-- alarm is to be acknowledged --> <acknowledge/> <alarmtype>2</alarmtype> </dcalarm> </setdcendndtalarm> <!-- transfer data of dive buddy Alfons to the dive computer --> <setdcbuddydata buddy="alfons"/> <!-- here more data may be transferred to the dive computer --> </setdcdata> </divecomputercontrol> </uddf>
<uddf version="2.2.0"> <generator> <!-- here information about the data downloading software --> </generator> <divecomputercontrol> <getdcdata> <!-- all data stored in the dive computer shall be --> <!-- sent to the calling soaftware --> <getdcalldata/> </getdcdata> </divecomputercontrol> </uddf>
<uddf version="2.2.0"> <generator> <!-- here information about the data downloading software --> </generator> <divecomputercontrol> <getdcdata> <!-- download only data concerning defined breathing gas mixes, --> <!-- and all dive profile data to the calling soaftware --> <getdcgasdefinitionsdata/> <getdcprofiledata/> </getdcdata> </divecomputercontrol> </uddf>