no hurry,
discover just the "diversity" ( vielvalt )
and stumble a bit.
how do I get the float results in the properies advertisement?
so far I only get completely charged at a calculation.
if I have a float test number Enter H in the formula,
then it is displayed.
what am I doing wrong?
Code: Select all
.tmpCPUCLK = ::Component .Property .GetValue (this,"FCV_CPUCLK")
.tmpPREDIV = ::Component .Property .GetValue (this,"FCV_SPI_CLK_PREDIV")
.tmpCNTDIV = ::Component .Property .GetValue (this,"FCV_SPI_CLK_CNTDIV")
.tmpCPUCLK_HZ = .tmpCPUCLK * 1000000
.tmpSPICLKFREQ = .tmpCPUCLK_HZ / (.tmpPREDIV * .tmpCNTDIV)
::Component .Property .SetValue (this,"FCV_SPI_CLK_FREQ", .tmpSPICLKFREQ)
.tmpCPUCLK_HZ = .tmpCPUCLK
.tmpSPICLKFREQ_MHz = .tmpCPUCLK_HZ / (.tmpPREDIV * .tmpCNTDIV)
// will be a int
::Component .Property .SetValue (this,"FCV_SPI_CLK_FREQ_MHz", .tmpSPICLKFREQ_MHz)
// only for a Test: will be a int in properties
// ::Component .Property .SetValue (this,"FCV_SPI_CLK_FREQ_MHz", (10 / 3))
// only for a Test: will be a float in properies
// ::Component .Property .SetValue (this,"FCV_SPI_CLK_FREQ_MHz", 3.1428 )
thanks!
best wishes
rudi