ccc_readCarMakerERG


Custom Channel Configuration Function: ccc_readCarMakerERG


Description:

This functions reads .erg files from IPG CarMaker and provides the 

data in an structure format, by converting the .erg file into a 

temporary ascii .dat file.


NOTE: THE CORRESPONDING .erg.info FILE MUST BE AVAILABLE NEXT TO THE .erg FILE!


Syntax:  [data, channels] = ccc_readCarMakerERG(filename, 'showChannels', ...)


Inputs:

   filename  [char]       absolute filename to the .erg file


   Optional input parameters:

   'showChannels'         a list dialog with all available channels will be displayed

   'datOverwrite'         overwrites .dat files in the same file folder

   'datKeep'              keep the .dat and .dat.info file after converting 

                          the .erg file


Outputs:

   data      [1x1 struct] data struct with the same structure like the original 

                          IPG converted .mat files (e.g. data.Car.vx.data)

   channels  [Nx1 cell]   cell array of strings containing all channels

                          names of the data struct