DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Process AVL ATF file Error in Opening AVL Recorder Data

Solved!
Go to solution

We are testing our engines with AVL test bench. After test runs we got the test result stored as an ATF file. According to AVL test bench specification, Puma Open Parameters and Data are stored in ASAM ODS( Open Data Services) format. That means data structure is in accordance with the ASAM standards.

But while we are trying to use Diadem software to process AVL data file, we found something strange. The problem is that the Diadem can open all other groups of AVL ATF file like "ET""EM" etc. except the Recorder group. Test data recorded by AVL Puma recorder can't be opened by Diadem software. The diadem channel shows" Novalue".

Could anyone tell me the reason and solutions?

Thanks

0 Kudos
Message 1 of 2
(3,768 Views)
Solution
Accepted by tomZhang

While the file is readable itself it contains some constructs that are only loadable using the submatrices.

Use the attached code to load it.

 

Option Explicit

If (FileNameGet("ANY", "FileRead", DataReadPath, "ATFX File (*.atfx; *.atf),*.atfx;*.atf") = "IDOk") Then
  
  ' open atf(x) file
  dim param : param = "<filename readonly=""yes"">" & replace(FileDlgFileName, "&", "&amp;") & "</filename>"
  dim store : set store = navigator.ConnectDataStoreByParameter("ATFX", param)
  
  ' get submatrices to load
  dim subMatrixEntity : subMatrixEntity = store.Model.Entities("AoSubmatrix").SubTypes(1).Name
  dim sms : set sms = store.GetElementList(subMatrixEntity, "")
  
  ' Load with default configuration
  call Navigator.LoadData(sms, "Load", Navigator.Settings.CreatePropertyImportSet(store))
  
End If
Message 2 of 2
(3,737 Views)