Packed Arduino built-in function fail | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar
Please consider registering
guest
sp_LogInOut Log In sp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSS sp_TopicIcon
Packed Arduino built-in function fail
August 4, 2022
7:58 am
Avatar
aliang
Member
Members
Forum Posts: 10
Member Since:
February 2, 2022
sp_UserOfflineSmall Offline

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!

August 5, 2022
3:35 am
Avatar
aliang
Member
Members
Forum Posts: 10
Member Since:
February 2, 2022
sp_UserOfflineSmall Offline

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...

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
12
Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
miche91: 33
scottj: 28
scadao: 23
Member Stats:
Guest Posters: 5
Members: 202
Moderators: 0
Admins: 3
Forum Stats:
Groups: 1
Forums: 2
Topics: 266
Posts: 1222
Newest Members:
pujacontrol
Administrators: geadmin: 22, filipealtoe: 96, Steffan: 356