topic High throughput inverse tangent (2 input) in LabVIEW
https://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1844833#M629174
<P>Hello! <span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:">ðŸ˜„</span> I would just like to ask what is the effect of having a 'negative x' on the high throughput inverse tangent (2 input)? It's because when I have 'negative y' (and 'positive x'), the answer is correct. However, whenever I have 'negative x' (regardless of the sign of y), the answer would always be wrong. Thank you for your time! <span class="lia-unicode-emoji" title=":slightly_smiling_face:">ðŸ™‚</span></P>Fri, 20 Jan 2012 02:42:20 GMTBetty Boop2012-01-20T02:42:20ZHigh throughput inverse tangent (2 input)
https://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1844833#M629174
<P>Hello! <span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:">ðŸ˜„</span> I would just like to ask what is the effect of having a 'negative x' on the high throughput inverse tangent (2 input)? It's because when I have 'negative y' (and 'positive x'), the answer is correct. However, whenever I have 'negative x' (regardless of the sign of y), the answer would always be wrong. Thank you for your time! <span class="lia-unicode-emoji" title=":slightly_smiling_face:">ðŸ™‚</span></P>Fri, 20 Jan 2012 02:42:20 GMThttps://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1844833#M629174Betty Boop2012-01-20T02:42:20ZRe: High throughput inverse tangent (2 input)
https://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1845445#M629275
<P>What version of LabVIEW are you using?</P>Fri, 20 Jan 2012 14:08:19 GMThttps://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1845445#M629275DFGray2012-01-20T14:08:19ZRe: High throughput inverse tangent (2 input)
https://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1845457#M629279
<P>LabVIEW 2011 Windows 7 32-bit <span class="lia-unicode-emoji" title=":slightly_smiling_face:">ðŸ™‚</span></P>Fri, 20 Jan 2012 14:16:47 GMThttps://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1845457#M629279Betty Boop2012-01-20T14:16:47ZRe: High throughput inverse tangent (2 input)
https://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1845791#M629345
<P>Betty - </P>
<P> </P>
<P>This function only takes fixed-point data. When you say the answer is "wrong", I'm not sure if it's off a few significant digits or returning a completely unexpected value. If you need to get more accurate data you will have to change both the word length and the integer word length. This document from LabVIEW Help explains in more detail of what that means. </P>
<P><BR /><SPAN><A href="http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/configure_fxp/" target="_blank">http://zone.ni.com/reference/en-XX/help/371361G-01/lvhowto/configure_fxp/</A> </SPAN><BR /><BR /><SPAN>The best way to see how you should set up your fixed-point data is to place down a fixed-point constant. Right-click and select Properties. Click on the Data Type tab, and uncheck the adapt to entered data check box. From here you will be able to change the word and integer word length and see what your max and min values, as well as what your accuracy will be. I hope that you find this helpful. Feel free to let me know if you have any additional questions. </SPAN></P>
<P> </P>
<P><SPAN><SPAN>The best way to figure out what you would like with fixed point data is through some trial and error. The great thing about fixed point data is that it is much smaller on the FPGA than floating point data. The down side to fixed point is that you are limited in range as well as your delta. Below are two links to some DevZones that could be helpful to you. </SPAN><BR /><BR /><SPAN><A href="http://zone.ni.com/devzone/cda/pub/p/id/303" target="_blank">http://zone.ni.com/devzone/cda/pub/p/id/303</A> </SPAN><BR /><SPAN><A href="http://zone.ni.com/devzone/cda/pub/p/id/363" target="_blank">http://zone.ni.com/devzone/cda/pub/p/id/363</A> </SPAN><BR /></SPAN></P>Fri, 20 Jan 2012 17:20:53 GMThttps://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1845791#M629345Benjamin382012-01-20T17:20:53ZRe: High throughput inverse tangent (2 input)
https://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1846315#M629433
<P>Thank you for your respnse, Sir! <span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:">ðŸ˜„</span> I already did that. I tried manipulating the details under data type tab. However, I still get the "wrong" answer whenever I have a "negative x". But when I have a "negative y" (as long as x is positive), I get the "right" answer. :]</P>Sat, 21 Jan 2012 00:35:57 GMThttps://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1846315#M629433Betty Boop2012-01-21T00:35:57ZRe: High throughput inverse tangent (2 input)
https://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1846573#M629493
<P>Hi! <span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:">ðŸ˜„</span> It's now okay, I've already fixed it <span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:">ðŸ˜„</span> Thank you anyway! <span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:">ðŸ˜„</span></P>Sun, 22 Jan 2012 03:37:04 GMThttps://forums.ni.com/t5/LabVIEW/High-throughput-inverse-tangent-2-input/m-p/1846573#M629493Betty Boop2012-01-22T03:37:04Z