LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

atan2 equivalent in a Formula Node?

Does anyone have an atan2 (2-input inverse arctangent) equivalent for use in a Formula Node? I was surprised to see that such a common function wasn't supported in Formula Nodes. Without it, my easily readable Formula Node equations get junked and become a nightmare of LabVIEW math symbols. Is there a way to call the atan2 VI (or any other VI for that matter) from within a Formula Node?
0 Kudos
Message 1 of 2
(3,476 Views)
Hello,

You are correct, this function is not supported in Formula Nodes, and there is not a way to call VIs from formula nodes. However, the below solution might be what you need:

Is this the correct definition of atan2:

if y = atan2(a,b), then tan(y) = (a/b)

If so, could we define a and b, and use the formula node function atan(a/b)? This may not be the most elegant solution, but it seems like it would do the trick with minimal headache. I attached a VI showing this idea.

Hope this helps!

Liz Fausak
National Instruments
Download All
0 Kudos
Message 2 of 2
(3,476 Views)