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.

MSP430FR6047: EVM430-FR6047 flow volume define

Part Number: MSP430FR6047

Hi !

I use a demo code of 6047.
I'm looking for the parameter that shows me the final flow values
I want to make a breakpoint on it and debug.
When I stand on this value and I saw a list of some values like:
DTOF
UPS
DNS
FlowVolume... 

But the values are very high and look like they need to go through another calculation for final values.
So I'm looking for the parameter that shows the final flow values

  • Hi Ido,

    That structure does contain all of the algorithm's results including flow volume. If the values look higher than expected, then I think you may need to revisit your calibration or other code. You can also verify whether that value is the one it actually reports as the final volume flow rate by checking the value in the struct and comparing it to the value shown in the GUI.

  • Hi Dylan, 

    kindly confirm that the data variable for the flow rate is: volumeFlowRate which is a float element of in the structure: USS_Algorithms_Results.

    Looking at the template project: FR6043_USSSWLib_template_example, the variable is updated several times in the code, in two files, which file, and line number in the template code, containing the variable volumeFlowRate should I use to access the value? 

    thanks, 

  • That is correct that volumeFlowRate is the variable storing the VFR result. Looking at the template example, I would recommend that you check the value it stores just before the below section where the device sends the calculated data out via UART. For example, you could place a breakpoint on the checkCode() function directly above this section.

     

    #if APPLICATION_ENABLE_UART_DEBUG
            uartTxUSSResult(APPLICATION_UART_ABSTOF_UPS_DELIM,&algResults.totalTOF_UPS);
            uartTxUSSResult(APPLICATION_UART_ABSTOF_DNS_DELIM,&algResults.totalTOF_DNS);
            uartTxUSSResult(APPLICATION_UART_DTOF_DELIM,&algResults.deltaTOF);
            uartTxUSSResult(APPLICATION_UART_VFR_DELIM,&algResults.volumeFlowRate);
    #endif

  • hi Dylan and thank you.

**Attention** This is a public forum