LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Program for - Cartesian to Polar Coordinates. { Using Function Block and Case Structure}

Labview.png

 

Program to Convert from Cartesian coordiantes to Polar cordinates. 

0 Kudos
Message 1 of 5
(1,789 Views)

Hi rahul,

 


@rahulrpatil3005 wrote:

Program to Convert from Cartesian coordiantes to Polar cordinates. 


Did you know you get all that stuff for free like this:

 

General suggestions:

  1. When you want to present a "program" (aka code) then you should attach code! We cannot edit/debug/run images using LabVIEW…
  2. Atleast you could have used AutoCleanup before posting images of parts of a block diagram…
  3. Don't use orange wires for integer data.
  4. Comparing floats for equality might be dangerous!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(1,776 Views)

Hey,

Thank you for the comment, This was literally my first ever LabVIEW program. 

Which the professor assigned to us. 

Nevertheless, thank you for your comment, I will take note, and make sure to rectify them next time.

0 Kudos
Message 3 of 5
(1,732 Views)

For some extra credit, have a look at my talk from 2016 (TS9524, part II) where I compare various version to get the r  from x and y  (slide #8).

 

On Slide #10 I show two ways to get r and theta from x and y. Obviously, you can use the two-input inverse tangent and it works for all quadrants automatically. You definitely don't need a page full of text code. 😄

 

altenbach_0-1666399987607.png

 

0 Kudos
Message 4 of 5
(1,683 Views)

Dear SIR,

Thank you for the link to the video, it will definitely help me to increase the command of my knowledge of LabVIEW.

I was aware of the inverse tangent function. Still, our professor has specifically told us, not to use it, and to do the arithmetic and code manually, so that we could have a good overview of all the functions in the LabVIEW.

I am very thankful to you, for taking up your valuable time and reaching out to me. 

Thanks and Regards,
Rahul Patil

0 Kudos
Message 5 of 5
(1,667 Views)