你好,
我在测试时,使用接口USS_runAlgorithmsFixedPoint(config, &fixedResults);获取测量结果result->volumeFlowRate显示结果是加仑每分钟吗?
如果是,如何配置或者计算,才能得到流速单位m/s?
tks
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.
你好,
我在测试时,使用接口USS_runAlgorithmsFixedPoint(config, &fixedResults);获取测量结果result->volumeFlowRate显示结果是加仑每分钟吗?
如果是,如何配置或者计算,才能得到流速单位m/s?
tks
您好,
输出的这个数据是绝对飞行时间和相对飞行时间以及常数计算出来的结果,具体公式如下:
至于您希望输出什么单位的结果,调整常数大小即可:
谢谢!
Best Regards
Johnson
hi johnson,
这个计算公式我知道,但是结构体里面的单位不知道,能否告知以下结构体中变量的单位
typedef struct _USS_Algorithms_Results_fixed_point_
{
USS_message_code messageCode;
int32_t iq44DeltaTOF;
//!< Delta Time Of Flight calculation result
int32_t iq40TotalTOF_UPS;
//!< Upstream total Time Of Flight calculation result
int32_t iq40TotalTOF_DNS;
//!< Downstream total Time Of Flight calculation result
int32_t iq16VolumeFlowRate;
//!< Volume flow rate calculation result
int32_t iq16VolumeFlowRateNoCalib;
//!< Volume flow rate calculation result without VFR calibration
//!< (only used for VFR calibration)
int32_t iq16Temperature;
//!< Temperature calculation result
}USS_Algorithms_Results_fixed_point;
c = Velocity of sound in medium
v = Flow velocity of the medium
Q = Cross-sectional area of pipe * Flow velocity
= Flow rate
如果常量C配置成1,Q和V在数值上是相等的,常量C是USS_userConfig.h文件中的宏定义USS_VOLUME_SCALE_FACTOR吗?
tks
您好,
单位在变量前都标注了,比如iq44DeltaTOF, 就是IQ44格式的,这个数据除以2^44就是国际单位制秒。
谢谢!
Best Regards
Johnson
那结构体typedef struct _USS_Algorithms_Results_中单位呢?时间单位是秒?流量单位是gpm?
typedef struct _USS_Algorithms_Results_
{
USS_message_code messageCode;
float deltaTOF;
//!< Delta Time Of Flight calculation result
float totalTOF_UPS;
//!< Upstream total Time Of Flight calculation result
float totalTOF_DNS;
//!< Downstream total Time Of Flight calculation result
float volumeFlowRate;
//!< Volume flow rate calculation result
float volumeFlowRateNoCalib;
//!< Volume flow rate calculation result without VFR calibration
//!< (only used for VFR calibration)
float temperature;
//!< Temperature calculation result
}USS_Algorithms_Results;