hexagon logo

Using subrutine request from Acar in Aview and in FMU

Hello everyone,
 
I have model of vehicle in Aview created according templates from Acar. Model is working without problem. The model in Aview contains also requests from Acar (i.e. from rigid chassis.tpl based on subrutine abgVDM::req907). During normal simulations in View, those requests work without problem.
 
But after fmu export of model from Aview the model is not working in simulink (Error in supplied FMU: An error occurred in function 'fmi2ExitInitializationMode' for block...), without request fmu from same model works without problem.
 
Is it possible somehow to export fmu with those subrutine request or not?
 
Thanks
 
Jozef
 
  • Hi Jozef,
     
    The abgVDM subroutines are in the acar solver, as you have noted. One thing that you could do in the past is, when exporting the plant from Adams, use the User Defined Library Name field to specify the name of a different dll file. So for standard co-sim you could point like this:
    User Defined Library Name = C:\MSC.Software\Adams\2021_1_801488\win64\acar_solver.dll
     
    (Change the path for your system).
     
    That would work for standard co-sim. I have not tried this explicitly with FMU, but I hope that it will also work for that?
     
    Good luck,
    Kent
     
  • Thanks Kent, i have tried that, but during my test using Adams 2021_1 i have noticed, that i am getting this error in Matlab 2018b also in Matlab 2021a. It should me normal co-simulation between Matlab and Adams 2021_1. It is first example form ADM711:
     
    Warning: Location D:\adams_working_dir\cosim\The syntax of the command is incorrect.
    C:\PROGRA~1\MSC~1.SOF\Adams\2021_1~1\controls\win64 specified for a File or Folder is invalid.
    > In path (line 109)
     In addpath (line 86)
     In cosim (line 18)
    Warning: Location D:\adams_working_dir\cosim\The syntax of the command is incorrect.
    C:\PROGRA~1\MSC~1.SOF\Adams\2021_1~1\controls\matlab specified for a File or Folder is invalid.
    > In path (line 109)
     In addpath (line 86)
     In cosim (line 20)
    Warning: Location D:\adams_working_dir\cosim\The syntax of the command is incorrect.
    C:\PROGRA~1\MSC~1.SOF\Adams\2021_1~1\controls\utils specified for a File or Folder is invalid.
    > In path (line 109)
     In addpath (line 86)
     In cosim (line 22)
     
    Repeating same procedure using Adams 2021_2_beta works without problem on same computer with same Matlab. Is some issue with this in Adams 2021_1 in general or just with my Adams 2021_1
     
    Thanks
     
    Jozef
     
     

    Attached Files (1)