7:58 am
February 2, 2022
Hi:
I need to use log() function in my MCU. I noticed the function is not in ACC4L package, so I simply added subVI and translator to do the job, I thought it was a small job, but I failed to use log() function yet.
The ACC4L will give things like this:
Running interpreter...finished!
Generating downloadable program...Error!
Error in xxx.vi: Arduino function "Arduino Math.lvlib:Log" is not supported.
Can anyone give me a hint? Thanks!
3:35 am
February 2, 2022
I have to take another path for a quick fix.
|x|<=1,x!=-1, y = (x - 1) / (x + 1)
ln(x)= ln((1+y)/(1-y))
=2 y( 1 + y ^ 2 / 3 + y ^ 4 / 5 + y ^ 6 / 7 + …)
It can provide the value I need now.
But the root problem is still there, why are some math function in arduino is not supported in ACC4L?
Last time I checked, functions like exp() are also not supported...
11
1 Guest(s)