aTAN2 | 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
aTAN2
March 14, 2016
12:26 am
Avatar
Omnitest
Member
Members
Forum Posts: 4
Member Since:
May 30, 2015
sp_UserOfflineSmall Offline

Do you have any plans to add the aTAN2 function to the Trigonometric Palette? I have routines in standard LabVIEW that I would like to port into a project on the Arduino platform.

Thanks,

 

Troy I.

March 14, 2016
1:40 am
Avatar
filipealtoe
Admin
Forum Posts: 98
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Hello;

Currently, that is not showing on as a high priority addition to the compiler. However, you can add support to that function as an API VI that would be supported by the compiler yourself. Not sure if you already saw it or not, but we do have a full user guide as part of the user manual, Porting Arduino Libraries to the Compiler, that shows a step by step procedure on how to port existing functions from Arduino libraries to have support on the compiler. You can easily include support for the atan2 functions from the math library (below) by creating two API VIs (or just one if you only need one of the two below) and include support inside the Translator.vi, as exemplified in the User Guide. 

#include <math.h>

double atan2(double y, double x)

float atan2f(float y, float x)

 

Filipe

Cheers
Filipe

March 21, 2016
7:02 am
Avatar
Omnitest
Member
Members
Forum Posts: 4
Member Since:
May 30, 2015
sp_UserOfflineSmall Offline

Thank you, Filipe.  I will look into using an API.  I appreciate your help and support.

Troy I.

Forum Timezone: UTC 0
Most Users Ever Online: 100
Currently Online:
3
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