For your previous explanation I'm afraid you didn't see my problem
I don't quite understand your explanation .
Step 1: I set up a Device Interface and set up a method;
Step 2: I directly call this new defined function.
Question:Why is my result not equal to the correct answer ?Did I do something wrong ?
Hi Tonny,let me try to help you - even I'm not Paul ;-)Did you run this example on your target or within the Prototyper? Within the Prototyper the result will be 0.0, because the native code (= the call to log10()) cannot be executed and is excluded by using the $if ... $endif macros.Best regards,Manfred.
This example,I'm using this example to try it,
What to do now ?Is my thinking correct?
was the correct statement. Writing an empty $if condition will cause the reported error.
But the result still equal 0.0,
The correct thing is : Log10(100) = 2
Is there any way to solve it ?
Thank you for your patience
I need to calculate a set of data and need to use log_math function to draw a stroked Path line.
But I don't know how to use this definition.
In the Slot method,How do I call it and set it as my target?Can't i call it like a picture?
with "target" I mean your hardware. What hardware are you using? Does the native code with the log() call work on the hardware?
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!