Straight line between two polar points

Hi all,
I've created a VI which would be plotting a polar curve depending on the time-distance formula. The VI has Present Mag. and Target Mag. each having its own angle (Polar form i.e. (r,theta)). I want to plot a straight line between the Present point and the Target point. I used the time-distance formula to plot the magnitude, and used the same slope for plotting angle. However, I get a curved plot as shown in the attachment.
Could anyone tell me what formula can be used to plot a straight line between the Present point and the Target point?
Thanks.
-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"
Solved!
Go to Solution.
Attachments:
Temp.JPG ‏38 KB

@altenbach....
how can we do that?
To say in short,
I have two points A(magnitude1,phase1[deg]) and B(magnitude2,phase2[deg]) on the input side. Also, I have the Time input to travel from pt.A to pt.B
I have one polar plot as indicator output.
I need to show on the polar plot a line which is gradually increasing from pt.A to pt.B in a straight line on the polar plot.
You may refer the picture attached in the first post above to get an idea of what I am trying to do.
Thanks!
Message Edited by Fragger Fox on 01-13-2010 11:01 AM
-FraggerFox!
Certified LabVIEW Architect, Certified TestStand Developer
"What you think today is what you live tomorrow"

Similar Messages

  • How can I find out the angle of a straight line between two anchor points?

    I would like to extend a line which is at a given angle (not 45,90 degree). Is there a quick and reliable way to do this? or to find out the angle of a segment?
    What I'm doing at the moment is just direct selecting an anchor point and using the visual guides to extend it. I don't think this is exact though so was I wondering if anyone had any techniques for doing this?
    Thanks!

    portfelio,
    Smart Guides are your friends.
    As a general solution, you may:
    1) With the Line Segment Tool ClickDrag between the two Anchor Points (Smart Guides say anchor);
    2) With the appropriate Reference Point selected in the Transform palette, increase the W or H value and Ctrl/Cmd+Enter;
    3) Lock the new auxiliary line;
    4) ClickDrag the relevant Anchor Point of the original line along the extended auxiliary line (Smart Guides say path);
    5) Unlock and delete the auxiliary line.
    After 1), you may also click the Line Segment Tool to see the angle.
    Or,  in a case with a straight path (segment), you may use the Scale Tool:
    1) (Direct) Select the straight path (segment);
    2) Switch to the Scale Tool and Click the Anchor Point that is to stay, then ClickDrag the one to move (Smart Guides say uniform when you are dragging in the right direction).

  • Shooting mouse cursor beyond intended straight line between two points.

    I copied this forum question from Lightroom, and I hope this is ok because I did not know how to express the problem I am experiencing:
    "The photoshop brush tool interprets shift-click as a brush stroke that connects the previous brush mouse-up position with the current mouse-down (the shift-click) as a straight line stroke.
    [My experience is that every so often, maybe every three or four "shift-clicks" to get my mouse to create a straight line to my next placed mouse position, the Mouse goes Wild, and shoots way beyond my intended next position, and depending on how zoomed in on the image i am, I frequently loose my place where I had been working.  It becomes quite frustrating as this is a very frequent occurrence.  I have heard others with this version CS3 as well as CS2 having the same "shooting Cursor" which is accompanied by some cursing of my own.  As said below, Time savings is the reason for this technique.  If this problem has been dealt with already, I am sorry to have clogged up the forum, but please re-direct me with the key words to find that thread.  How do I cause this shooting cursor to stay within my mouse placement?]
    I find this a HUGE time-saver in creating masks as it doesn't require that I have a steady hand. I'm frustrated that LR does not offer the same capability. This feature would complement the auto-mask feature (kinda works). I could create a mask in a fraction of the time if LR included this feature.
    Another irritation of occurrence is when setting lines from the rulers, the image will suddenly zoom in by a small amount.  In other words, there are several areas where the software seems to have a mind of it's own, and behaves in an erratic fashion not at all related to the intended action and result.
    I am operating a Mac 10.5.7
    Model Identifier: MacPro3,1
      Processor Name: Quad-Core Intel Xeon
      Processor Speed: 2.8 GHz
      Number Of Processors: 2
      Total Number Of Cores: 8
      L2 Cache (per processor): 12 MB
      Memory: 2 GB
      Bus Speed: 1.6 GHz
    ATI Radeon HD 2600 XT:
    2x2.8 GHZ Quad-Core Intel Xeon
    2 GB 800 MHz DDR2 FB-DIMM

    Thanks for your quick reply.  I am attaching screen shots of my 
    current mouse setting, and a graphic of how the behavior is 
    demonstrated.  The image is one in which quick mask is being used to 
    create a selection, and I am using the paint brush and find it easier 
    to use the brush with the technique of clicking the brush at one point 
    then holding the shift key while I click the brush at the desired next 
    point which should allow the brush to paint a straight line between 
    the two points.  The technique works for 3 or 4 clicks, when at the 
    next click, it is as if it was just shot clean out of the realm of the 
    desired area.  It is almost funny, except that this is a technique I 
    find most useful and frequently helpful, and is not confined to the 
    paint brush, but the eraser as well.  This does occur also with my 
    computer at work, a pc, and a Microsoft mouse.  I have been using 
    Photoshop for 12 years, and this problem did not start until I started 
    using CS3 extended.  We have upgraded two HP pcs at work to CS4 
    extended, and each uses a different mouse, and both exhibit the same 
    behavior as experienced by other persons working at those stations, 
    and while using Photoshop.
    I do hope you could look into this a bit further, Mark, as my 
    explanation of the problem may not be clearly presented for you to 
    fully understand just what I am experiencing.
    Thank you for your help.
    Fred

  • Polar equation of a line between two points

    I am trying to make a method to output the points (in polar coordinates (r, theta)) along a line between two given polar coordinates.
    This will mimick the path of an object traveling across a radar screen.
    Is this possible?

    Java does not plot in polar coordiantes, you'll have to convert to rectangular to get a plot. If you're just doing a sweep on a screen, then it's fairly simple to do:
    r is the radius of your screen,
    (0,0) is your Origin translated as (Xmax/2, Ymax/2)
    when you draw the line you just start at your Origin and get your end values as
    X1=X0+r*cos(Theta) and
    Y1=Y0+r*sin(Theta),
    I've not seen, nor do I think there is any other support to do what you want--you have to convert to (x,y) coordinate system.
    This will leave a ragged edge so make a border around your screen.
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    import java.awt.Point;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.Timer;
    public class JRadar{
      public JRadar(){
        JPanel p = new MyJPanel();
        JFrame f = new JFrame("ForumJunk: JRadar");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.add(p);
        f.pack();
        f.setVisible(true);
      public static void main(String[] args){
        new JRadar();
      class MyJPanel extends JPanel implements ActionListener{
        Timer t = new Timer(10, this);
        Dimension d = new Dimension(512, 512);
        BufferedImage bi = new BufferedImage(d.width, d.height, BufferedImage.TYPE_INT_RGB);
        Graphics2D g = bi.createGraphics();
        double theta = 0;
        int r = d.width/2 - 16;
        Point origin = new Point(d.width/2, d.height/2);
        public MyJPanel(){
          g.setColor(Color.RED);
          this.setPreferredSize(d);
          t.start();
        public void actionPerformed(ActionEvent e){
          g.clearRect(0, 0, d.width, d.height);
          g.drawOval(16, 16, 480, 480);
          g.drawLine(origin.x, origin.y, (int)(origin.x+r*Math.cos(theta)), (int)(origin.y+r*Math.sin(theta)));
          theta += 0.01;
          if(theta>=Math.PI*2) theta = 0.0;
          repaint();
        public void paintComponent(Graphics g){
          super.paintComponent(g);
          g.drawImage(bi, 0, 0, this);
    }Edited by: morgalr on Mar 3, 2010 4:59 PM: code example added

  • Dont want to show the divided line between two rows in a Grid.

    Hello Friends,
    I want a Grid in which I want multiple rows but i dont want to show the divided line between two rows.
    It is just like a grid on Territories form(Administrator->SetUp->General->Territories)
    Thanks.

    Mithun,
    The component you're talking about is not a grid, and that component is not exposed by the UI API so you cannot use it.
    Regards,
    Vítor Vieira

  • How to delete the line between the last point and first point?

    How to delete the line between the last point and first point? 
    I want to draw a curve many times, from first point to the end point. and redraw from first point to the end point.But I hope update point by point. but between the end point and the first point,  there is a line. How to delete the line?
    the code is:
    CNiReal64Vector plotData(50);
    m_graph.ChartLength = 50;
    //m_graph.ClearData();
    for (int j = 0; j < 2; j++)
           for (int i=0; i<50; i++)
                   plotData[i] = ((double)rand()/(double)RAND_MAX)*6 + 4;
                   m_graph.GetPlots().Item("Plot-1").ChartXY(i, plotData[i]);
                   Sleep(100);
    Attachments:
    20150605142608.png ‏31 KB

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • How can I insert a vertical line  between two underlined unfilled with text lines.  I am trying to construct an invoice and I need a break.  If I try any of the shapes or inset functions it eliminates my underlined lines and shifts the whole document.

    I am trying to construct an invoice.  How can I install a vertical line between two or more underlined lines to create a break.  I have tried the insert, shapes and nothing works.  If I try any of the functions the whole document shifts to the right and I loose some of the lines.  Is there a work around, or is I work not able to do what I want?   
    Thanks
    Armand

    It sounds as though you may have "Object Causes Wrap" activated for the Line Shape. This will push other content away.
    See the Wrap Inspector.
    Jerry

  • How to delete a path between two anchor points

    hi ,
    it's all in the title ,
    could you tell me  please how to delete a path between two anchor points without using the path eraser tool ?
    When I select these two anchor points and press delete everything is gone.
    ps : I want to keep the anchor points after the deletion
    Thank you

    Silkrooster wrote:
    With some experimentation, I did find that selecting the path can leave orphan points. So keep that in mind as it may be necessary to use Object>Path>Clean up...
    You will not get orphan points if you delete a segment that is not at the end of a path.  For segment that is at the end of a path, or is the entire path, select the end point/s and press delete. For the one segment that is entire path you can use the selection tool (black pointer) or hold Alt with the direct selection tool (white pointer) which is useful for objects in a group.

  • How to remove line between two raws in word template designing ?

    Hi everbody,
    Hope you are doing good.
    i am designing report in word template.
    i wandoring how to remove line between two raws ?
    currently it gives me lines between each single raw.
    i want to remove line between two raws.
    any help is greatly appreciated.
    Thanks.

    Hi,
    are the rows inside a table-structure? Perhaps the line are the borders of the table?
    Regards
    Rainer

  • Switching lines between two accounts.

    How possible is it to switch lines between two different accounts i have to accounts with five lines and i would like to switch a number from one to another and one back. i.e. Number 123-456-7890 from Account A with Number 0987-654-321 from Account B.

    hey i am on my grandma plan but i have my own how can i switch that account that i have on my grandma to mine

  • Suggestion to draw a line between two points...

    I have the XYZ position of 2 points, I would like to draw a line between those points. I have tried with a cylinder and it did not work as I expect...I guess a better method exist in Java3D... Do you have any suggestions??
    thanks
    Pete

    try the LineArray class.

  • Drawing small, short curves in Photoshop draws straight line between start and end points

    I recently installed Windows 8 Professional, Photoshop and the latest Wacom Bamboo tablet drivers and have been experiencing this issue. I've turned off windows flicks and ink. This only happens in Photoshop with the brush tool and I can't seem to find a setting that this corresponds to.
    Basically, when I draw small, short curves (particularly letters like 'c' and 'h'), when I lift up my pen, Photoshop automatically connects the end and start points together with a straight line ('c' almost becomes 'o' or 'a'). I'm not holding the shift or any modifier keys. I've tried googling this issue, but I have no idea how to phrase it properly to get any results.
    Here's an image of what I'm talking about (the top was drawn with the pencil tool, the bottom with the brush tool which demonstrates the issue. I've highlighted the start and end points with red dots):
    ANy ideas? :/

    Is caps lock on?

  • How to hide the grid lines between two rows in a ALv? Please help!

    Hi Experts,
             I have a ABAP ALV(reuse alv grid FM) report.
    The last field in the ALV is "Description" which can contain data of size more than 130 chars.
    Since the max field length in ALV grid is 130 chars hence I am splitting this field value whenever the field length is more than 130 chars.
    After splitting I am generating duplicate rows but with different "Description" field values ( each contains the splitted values".
    For example:
    Name| City | Description                             |
    Hari|HK    |Employee responsible for time management |
    Hari|HK    |and issue resolution                     |
    Now I want to hide the grid line between these two rows
    and just for Description field.
    In other words I want ALV to display like this:
    Name| City | Description                             |
    Hari|HK    |Employee responsible for time management |
    Hari|HK    |and issue resolution                     |
    How can I acheive this?
    Please provide some sample code.
    Please help. I will be really greatfull to your help.
    Thanks
    Gopal

    Hi Rich,
          If that is the case then atleast how can I hide the complete row grid line?
    Please give some sample code.
    Thanks
    Gopal

  • Distance between two GPS points

    Is there an inbuilt function in PL/SQL for calulating the distance between two GPS (lat/long) points?
    I'm using Oracle 9i. There's a thing called SDO_GEOM available, but I'm not sure if this is what its used for or if it's the best option.

    If the earth is a complete globe and its circumference is 40000km,
    I make the function as follows.
    create ore replace
    function distance
    (a_lat number,a_lon number,b_lat number, b_lon number)
    return number is
    circum number := 40000; -- kilometers
    pai number := acos(-1);
    a_nx number;
    a_ny number;
    a_nz number;
    b_nx number;
    b_ny number;
    b_nz number;
    inner_product number;
    begin
    if (a_lat=b_lat) and (a_lon=b_lon) then
    return 0;
    else
    a_nx := cos(a_lat*pai/180) * cos(a_lon*pai/180);
    a_ny := cos(a_lat*pai/180) * sin(a_lon*pai/180);
    a_nz := sin(a_lat*pai/180);
    b_nx := cos(b_lat*pai/180) * co s(b_lon*pai/180);
    b_ny := cos(b_lat*pai/180) * sin(b_lon*pai/180);
    b_nz := sin(b_lat*pai/180);
    inner_product := a_nx*b_nx + a_ny*b_ny + a_nz*b_nz;
    if inner_product > 1 then
    return 0;
    else
    return (circum*acos(inner_product))/(2*pai);
    end if;
    end if;
    end;
    I rewrite it by using the factorization and the triangle function's sum and difference formulas:
    cos(x-y) = cos(x)cos(y)+sin(x)sin(y)
    As result, this function is same to the 1st method of Billy Verreynne.
    create or replace
    function distance
    (a_lat number,a_lon number,b_lat number, b_lon number)
    return number is
    circum number := 40000; -- kilometers
    pai number := acos(-1);
    dz number;
    dx2y2 number;
    inner_product number;
    begin
    if (a_lat=b_lat) and (a_lon=b_lon) then
    return 0;
    else
    dz := sin(a_lat*pai/180)*sin(b_lat*pai/180);
    dx2y2 := cos(a_lat*pai/180)*cos(b_lat*pai/180)*cos((a_lon-b_lon)*pai/180);
    inner_product := dz*dz + dx2y2;
    if inner_product > 1 then
    return 0;
    else
    return (circum*acos(inner_product))/(2*pai);
    end if;
    end if;
    end;
    Message was edited by:
    ushitaki

  • Shortest path between two arbitrary point in the network

    Hi All,
    In oracle NDM, it's possible to find shortest path between two nodes (e.g. using SDO_NET_MEM.NETWORK_MANAGER.SHORTEST_PATH), but I need to find shortest path between 2 points which are on the network edges. I suppose I should use (Interface SubPath) in network java apis. However I want to do it via PLSQL api. Should I code it myself or there exists a function?
    Any help is appreciated.
    Edited by: Fa on Dec 15, 2011 2:51 AM

    pritamg wrote:
    I have to build an application in which the user will draw the graph by creating nodes and edges.and then the start node will be marked.Then the shortest paths to other nodes will be displayed.Give me any possible clue how to start.I am in deep deep trouble.I have to use Dijkstra's Algorithm.
    please help some one...pleaseDo you know Dijkstra's Algorithm for shortest path? I believe that one was also called the traveling salesman problem. You can easily Google to find out what it is.
    Did you listen to your instructor when he/she did his/her lectures on recursion and halting contitions? If not, then please go talk to him/her and read your book, the forum is not a place to try to learn a basic concept that you should have paid attention in class for the first time.
    If you have code and you have specific questions post them and we will be glad to help, but we are not here to develop your homework solutions for you, no matter how that may affect your future.

Maybe you are looking for

  • How can I permanently delete an old phone number from my 'receive iMessage from' list?

    I have just got a new contract and iPhone. I wanted to get rid of my old number because of people hassling me on it. However I can still receive iMessages through my old number even though I have a brand new phone and SIM card! I have de-selected it

  • Cannot reinstall PS5 on the same PC

    Last week I have reinstalled my PC with Win7 Ultimate (clean install) As I was having some problems after installing PS5 as well, I uninstalled it from Programs and Features to reinstall it. Now I cannot reinstall it any more. I checked with the 'Adv

  • Safari make and error every time i open. Only for second restricted user

    Hi, i have a question, i try to don't disturb, but I have a trouble. Lion 10.7.5 and Safari 6.01. Only for second restricted user i have this error every time i open safari. Safari ack to me to ri-open windows or not, but make me error Many thanks gi

  • Folio Builder and Content Viewer Down

    The Folio Builder in InDesign is not loading for me. It is stuck in the loading wheel. The Content Viewer on the iPad gives me "Authentification failed" when I try to sign in. I checked the DPS status (http://status.adobedps.com/) and Production: Pub

  • Archive Smartform copies

    Hi, Does any one know how to archive smartform copies and he field tdarccop . When I set it it to X and pass an invoice with copies to the smartform i get an OTF // error.