This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EVM430-FR6047: dcOffset value not affecting dTOF

Part Number: EVM430-FR6047


Hi! 

I am trying to change the dcOffset value with the below code, however it does not change the result of dTOF at all, even if I put large values. 

gUssSWConfig.algorithmsConfig->dcOffset = value; // float value in seconds 

Am I missing something? 

Thanks in advance! 

Best regards,
Thibault 

  • Thibault,

    I tested this from the GUI level and I also see that there is no change to the DTOF result. We will look into this on monday and let you know what we find.
  • Hi ,

    Did you find the cause of this issue? It is a pretty crucial function that cannot be fixed when using your library.
    Thanks in advance!

    Best regards,
    Thibault

  • Thibault,

    We have done some evaluation and it appears that the function is changing the volume flow rate based on the DTOF Offset, but it is not affecting the actual DTOF data.

    In your application are you using the volume flow rate data, DTOF, or both? If only using the volume flow rate, you can ignore the DTOF and know that the offset is applied to the flow rate. If you are using the DTOF, let me know and we can provide a workaround. We will also fix this bug in the next release of the software.
  • Hi ,

    I need the volume flow rate data and not the DTOF data. However I can't see that flow rate changes neither?

    Test with very high offset:

    in USSLibGUIApp_Init():

    UssSWConfig.algorithmsConfig->dcOffset=10000000000000000;

    in hmi.c:

    USS_getResultsInFloat( pt_alg_res, &alg_results_float);
      /*  DC_User_Params->plot_dtof = (double) alg_results_float.deltaTOF;
        DC_User_Params->plot_abs_ups = alg_results_float.totalTOF_UPS;
        DC_User_Params->plot_abs_dns = alg_results_float.totalTOF_DNS;
        DC_User_Params->plot_vol_flow_rate  = alg_results_float.volumeFlowRate;*/
        printf("flow: %f\n", alg_results_float.volumeFlowRate);

    Console output:

    flow: 0.072754
    flow: 0.152740
    flow: -0.037827
    flow: 0.005005
    flow: -0.055588

    Best regards

    Thibault

  • Thibault,

    I have tested with the GUI and confirmed that the volume flow rate changes based on the DTOF offset setting.  I think you may be changing the configuration in the wrong location.  Please try making the change in USS_userConfig.h.

    #define USS_ALG_DCOFFSET 20e-12

    Alternatively, you can use the GUI to get your settings correct, then generate this .h file from file->generate header.

  • Hi ,
    Yes you are correct that the USS_ALG_DCOFFSET works, but not the UssSWConfig.algorithmsConfig->dcOffset variable. So how would you suggest me to change it during runtime at initialisation?

    Thanks in advance!

    Best regards,
    Thibault
  • Thibault,

    In USSLibGUIApp.c, be sure that you are placing your code before "code = USS_initAlgorithms(&gUssSWConfig);".  If you are already doing this, let me know.

**Attention** This is a public forum