hexagon logo

Contact incinident information

Hello,
 
I am trying to extract information about the contact incidents in Adams, in order to exact the times at wich more than 1 gear tooth pair of an involute gear model come into contact. I understand that after the simulation, I can look at the contact incidents and tracks, but if possible, I'd like to be able to extract the incidents during simulation, in the form of measurements.
 
Thanks,
 
Josef K.
Parents
  • Hi Maziar,
     
    So far I have viewed and studied extensively all the documentation you provided and while it was helpful in understanding how subroutines work, I still have the same problems with the utilties such as the c_errmes function. I am attatching a screenshot of the error I get when trying to create the dll. I am using MVSC 2022 developer command propmt, and an adams2020 version. I tried creating a dll with the default cffsub.c function, so that I am certain that the source code is correct.
     
    image
    I know that the warnings realted to the x86 version of windows are because of the MVSC version, however the c_errmes and c_step functions are still nowhere to be found. I have unclude the slv_c_utils.h file since it is automatically included in the cffsub.c routine, but the c_errmes and c_step functions are still not located by the code.
     
    If I got how subroutines work in Adams correctly, I am guessing that one of the .lib/.dll files in the win64 directory contains the actual bodies of the c_errmes and c_step functions, as in the slv_c_utils.h file, only their definition is included with no function "body". I still don't get why Adams can't access them in order for them to be included in my dll.
     
    To summarize, it's as if I am trying to call a function without having ever defined it (for the c_errmes and c_step functions).
     
    Thanks,
     
    Josef
Reply
  • Hi Maziar,
     
    So far I have viewed and studied extensively all the documentation you provided and while it was helpful in understanding how subroutines work, I still have the same problems with the utilties such as the c_errmes function. I am attatching a screenshot of the error I get when trying to create the dll. I am using MVSC 2022 developer command propmt, and an adams2020 version. I tried creating a dll with the default cffsub.c function, so that I am certain that the source code is correct.
     
    image
    I know that the warnings realted to the x86 version of windows are because of the MVSC version, however the c_errmes and c_step functions are still nowhere to be found. I have unclude the slv_c_utils.h file since it is automatically included in the cffsub.c routine, but the c_errmes and c_step functions are still not located by the code.
     
    If I got how subroutines work in Adams correctly, I am guessing that one of the .lib/.dll files in the win64 directory contains the actual bodies of the c_errmes and c_step functions, as in the slv_c_utils.h file, only their definition is included with no function "body". I still don't get why Adams can't access them in order for them to be included in my dll.
     
    To summarize, it's as if I am trying to call a function without having ever defined it (for the c_errmes and c_step functions).
     
    Thanks,
     
    Josef
Children
No Data