From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ATAN2 CORE in LabVIEW?

I am just about to use LabVIEW FPGA for the first time and in the intended application I will need to implement a function that approximates to the ATAN2(a,b) function.
 
I know that I could use an IP CORE and insert into a HDL Node, but since I dont understand VHDL and I like to understand what is going on in my code I would prefer to write the function in LabVIEW.
 
Does anyone have or know of an ATAN2 function that has been implemented in LabVIEW for FPGA targets.
 
I am using LV 8.0 with FPGA module 8.0. The hardware taget is PCI 7831R.
 
Thanks in Advance
 
Simon Pettman
Dynamic Engineering System Architects
0 Kudos
Message 1 of 2
(2,727 Views)
The only thing I have found that might be implemented is a summation function

for x^2 < 1

atan(x) = x- (x^3/3) + (x^5/5) - (x^7/7) + ...

for x>1

atan(x) = pi/2 - 1/x + (1/(3x^3)) - (1/(5x^5)) + (1/(7x^7)) - ...

for x<-1

atan(x) = -pi/2 - 1/x + (1/(3x^3)) - (1/(5x^5)) + (1/(7x^7)) - ...
Randall Pursley
0 Kudos
Message 2 of 2
(2,701 Views)