Combining data from several XPF files in an output

The /if option indicates that the DATA-ins.xpf file and its GPS_1 channel (/ds option) will be used in the output.

Fields from various files can also be merged together in a single output text file.

To use this feature, the command line option /if and /ds must be used.

The /if option indicates to UdtExporter that it can collect data from a complementary file:

UdtExporter /t myTemplate.popudt DATA-replay.xpf /if insData DATA-ins.xpf result.txt

 

In this example, UdtExporter will export data from the DATA-replay.xpf and DATA-ins.xpf files into the result.txt file using the myTemplate.popudt export model.

 

The first parameter of the /if option (insData in the previous example) allows renaming this additional input file if the /ds option is to be used. The main input file (DATA-replay.xpf in this example) is necessarily identified with the “main” name.

 

Yet, it is not sufficient to indicate the name of a complementary data file for the export to operate it is also necessary to indicate which channels must be used to export data. This is done using the /ds option.

 

The /ds option links a data source from the model file to a data channel from the input file using the <dataSource> element:

UdtExporter /t myTemplate.popudt DATA-replay.xpf /if insData DATA-ins.xpf /ds gps insData.GPS_1 result.txt

 

In this example the /ds option indicates that the data source identified by the keyword gps must be associated with the GPS_1 channel from the file identified as “insData”.

 

Notice that the GPS_1 information can be omitted if the defaultLabel attribute for this data source contains the correct canal name in the model file:

UdtExporter /t myTemplate.popudt DATA-replay.xpf /if insData DATA-ins.xpf /ds gps insData result.txt

 

In the next example we suppose we want to additionally export navigation data from the “secondary-nav” channel of the input file instead of the “primary-nav” channel, as defined by default in the model file:

UdtExporter /t myTemplate.popudt DATA-replay.xpf /if insData DATA-ins.xpf /ds nav main.secondary-nav /ds gps insData result.txt

 

Notice the main file is identified with the "main" tag.