Setting zero reference line to multiple points

I have multiple x,y points.  I would like to chose 2 y points and set them to zero as a reference line, then calculate the deviation of all other points from this reference line.  Does labview have a function that can do this.  Thanks.
Solved!
Go to Solution.

Just do a linear fit to the two points and subtract the result from all of the data points.  See example (quick and dirty and potentially buggy).
Attachments:
FindOffset.vi ‏25 KB

Similar Messages

  • How can I set the reference line in a graph

    Hello together,
    I would like know if it is possible to set the Reference Line Value as a variable
    Example:
    "<ReferenceLine index="0" visible="true" value=variable sql-statement displayedInLegend="true"/>"
    My problem:
    I need a combined graph with a stacked area and a line for the Limit or "Reference Line".
    regards

    Sorry. I don't mean page tabs, but the order in which form fields are selected by the tab key. In simple html there is a value called tabindex and I was just wondering if there is a way to assign this order within a portal form. I have basically recreated the form with a custom layout and adjusted the table structure to force the order I was looking for, but it would be a nice add for future versions.

  • Converting multiple points to line

    Hi All
    I have table consist of point data.. how to convert multiple points to line data.. if anyknows pls tell me ..
    Thak you

    user13340372,
    . . . .Are you trying to draw a line between 2 points or draw a line connecting N points?
    How to Create a Line From 2 Points_
    . . . .You could use the SDO_Geometry constructor. For example, if you have a table POINTS defined as (ID NUMBER, FromPt SDO_GEOMETRY, ToPt SDO_GEOMETRY), then you could:
    SELECT 
        SDO_GEOMETRY(
        'LINESTRING ('||
        -- concatenate coordinates from FromPt
        REPLACE(REPLACE(p.FromPt.Get_WKT(), 'POINT (', NULL), ')', NULL)||','||
        -- concatenate coordinates from ToPt
        REPLACE(REPLACE(p.ToPt.Get_WKT(), 'POINT (', NULL), ')', NULL)||')'
        ---  SRID
        , 4326)
    FROM
        POINTS p;              
    How to Create a Line From N Points_
    . . . .In a "connect-the-dots" puzzle, you draw lines from one numbered point to the next numbered point. There, the numbers define how points are related. If you dont have that information, then you need to decide how you want your points connected. Here are a few options - your requirements should indicate which (if any) is suitable:
    . . . .(a) Draw Arbitrary Linestring Through Points: user10278189 already posted that PL/SQL solution (above).
    . . . .(b) Connect Nearest Neigbors: set CURRENT_POINT to a point (e.g., bottom-left). Then identify its nearest-neighbor (hereinafter, "NextPoint") using SDO_NN. Flag NextPoint as "visited" and set CURRENT_POINT to NextPoint. Repeat until all points in the point-set are flagged as "visited." The result ( which depends on the starting point ) is a linestring connecting all points (a "line" is only between 2 points; a linestring is between 2 or more points). This requires PL/SQL.
    . . . .(c) Draw Along Shortest Distances: Create a table containing: FromPt_ID, toPt_ID and distances between each pair of points. (If you do this via a cross product, remove rows where FromPt_ID = ToPt_ID.) Begin connecting the points with the minimum distance from the last "visited" point (as before, flag the points that have been used as "visited"). The result of this operation is the shortest linestring connecting your point-set. This requires PL/SQL.
    . . . .(d) Outline Set of Points: You could also use the SDO_GEOM.Sdo_ConvexHull function to create polygon that encloses your point set, and then use SDO_UTIL.PolygonToLine to turn that area-geometry into a line-geometry. This can probably be done in a single statement.
    . . . .(e) Others (TSP, spanning tree, etc).
    Regards,
    Noel

  • Stop creating multiple points when making a line

    Hello, new to this and for some reason when I go to create a line or shape it keeps creating multiple end points like a fan for example when using the line, or multiple boxes from the same start point etc...any help?  Can't seem to find any content on this.

    That was it exactly, huge thanks to you!

  • How to remove reference line measurements on Walls drawn in VISIO

    HI, I have Visio 2007 and we draw pictures using walls, recently I have found that walls all have refernece line with the measurement of the wall displayed. I can not turn this reference line off, so when they print every wall has a measurement next to it.
    I have tried the Set Display options, I have tried line properties.  Nothing seems to work.
    HELP PLEASE, this is driving me crazy and I can not get work sent out to clients with these measurements all over them :-(

    Paul -
    This is the only way? Reason I ask is when multiple lines are selected, it doesn't fix the problem. I have to select each line individually.... I have a building floor plan I'm working with so as you can imagine it is taking forever
    Select the main wall shape in your drawing, now menu Window -> Show Shapesheet
    and scroll down to the User-defined cells section, there you will find a cell called User.visBESelected.
    In the Value cell type:
    =guard(0)
    -- Paul Herber, Sandrila Ltd. http://www.sandrila.co.uk/ Engineering and software shapes for Visio.

  • Bug?  Can't switch off constraint / snapping when dragging multiple points

    Can someone please check this one out:
    Summary:
    Prefs are set to: Snap Vector Tools and Transforms to Pixel Grid OFF. Constrain path dragging in the options bar is OFF.
    If I have a vector path in a document I can drag one selected point freely. If I have two or more points selected transformation is constrained/snapped to the pixel grid.
    CS6, Windows 7/64bit.
    Expected result:
    With settings as above I should be able to drag points without constraint/snapping.
    How to reproduce:
    Ensure settings are as described above.
    Draw ellipse path with the shape tool.
    Select and drag one point with the direct selection tool = free dragging
    Select and drag multiple points with the direct selection tool = constrained dragging

    Thanks for noticing this Mike,
    This may have been overlooked, but we notice that it also appears in CS5.
    We'll have a look at it.
    Thanks again
    Pete

  • Problems setting "table reference" for TopLink relationships

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

  • Effect of setting zero balancing NEW GL

    Can some one tell me what is the effect of setting zero balancing INDICATOR for BOTH Profit Center and SEGMENT
    IN GENERAL LEDgER CHARACTERISTICS for Document splitting??
    Any input is appreciated.
    Thanks.

    Hello Mr.Sridhar,
    I know what you say but What is happening here is initially we had only profit center as zero balancing indicator set and seg ment as mandatory field.
    Now when ever we have additional clearing line item with zero balancing account (the default one).is not getting the segment.But it is getting the profit center due to inheritance.
    So Thats my question how can i get the segment extended to document split line item (additional one with zero balancing account) which has the profit center.
    Please input some thing on this.
    Thanks.
    Vivek.

  • Creating tangent lines on curve points

    Hi all,
    I am drawing a best-fit curve that passes through a number of points and then try to calculate the first derivate and so obtain the tangent line of any point along the curve.
    There's lots of public domain code that will calculate a Natural Cubic Spline curve given a set of points. However, given any point on the curve i need to be able to calculate the tangent.
    I'm not mathematically inclined and so don't understand the formulas as the heart of the Natural Cubic Spline curve and so could not program in java on my own the code needed to get the derivative of the formula to get the tangent at any point. Is there any public domain code out there that will do this?
    I've found one that will do it, but it comes with the limitation that "x" dimension must always be increasing which means the curve can't curve back onto itself. Limiting what i could do with it:
    http://www.joma.org/mathDL/4/?pa=co...=401&bodyId=378
    Any help or redirection would be appreciated
    k

    For any cubic curve, the goal is to solve
    the constants in the equation:
    f(t) = a * t^3 + b * t^2 + c * t + d
    Once you know these values, you can easily
    calculate the derivative:
    f'(t) = 3*a*t^2 + 2*b*t + c
    So all you need to know are a, b, c.
    In the implementations you have found, there
    should be a 2D array that stores the values
    of a, b, c and d. You just have to find
    that array.
    In the Curve API available at:
    http://sourceforge.net/projects/curves
    there is a NaturalCubicSpline.java. In there,
    the values for a, b, c and d are stored in
    the data[][] array.
    Another option would be to break the curve
    into line segments, and then just use the slope
    of the line segment.

  • Animation: Same Layer, Multiple Points in Timeline?

    Hello everybody,
    I have two questions about using the Animation feature in Photoshop...
    (1) Is it possible to copy, click and drag an entire set of layers in the timeline? Like, if I want to move a group of layers forward or backward in the timeline, without individually moving each layer?
    (2) This one I think might be impossible... is it possible to have the same layer show up at multiple points in the timeline? Like if I want to create an animation which goes through several cycles with only a few layers changing in each cycle? This feature would be really helpful, it'd be a shame if it isn't supported.
    Many thanks!
    Jason

    Select your layer
    Select the pen tool (letter g)
    Draw the first mask
    Set the first mask to subtract
    Draw the second mask
    Set the second mask to subtract
    Repeat as needed
    Another option
    Add a colored solid to your comp above the layer you want to mask
    Change the blend mode of the colored layer to multiply or overlay so you can see through it
    Select the colored layer that you can now see through
    Select the pen tool or other mask tool
    Draw your masks using the underlying layer as a guide
    Set the colored layer as an alpha inverted track matte for the layer you wish to mask
    To learn how to use mask tools in detail type mask in the Search Help field at the top right corner of AE and follow the links provided for excellent tutorials and instructions.

  • Unable to load SWC fds.swc:Multiple points ???

    Hi,
    I downloaded project and integrated in the flex builder ,when
    i run MXML file i am getting error following errors :
    1)Unable to load SWC fds.swc:Multiple points
    2)1017:the definition of base class locale was not found
    3)could not resolve <mx:Application> to a component
    implementation.
    What to do for this ?????
    Plzzzzzzzzzz help me...Regarding this..

    Hi app_1,
    Your SWC might be for SDK 2.0.0 but your Flex Builder might
    be 2.0.1.
    Jeffrey

  • How do you get a line with MULTIPLE fields to WRAP ?

    How do you get a line with MULTIPLE fields to WRAP ?
    Good afternoon everyone...
    THE PROBLEM: Why doesn’t a line with multiple fields WRAP?
    HYPOTHETICAL EXAMPLE/WHAT I”D LIKE TO SEE
    If I have 2 fields on a line (this is now a hypothetical example and nothing to do with my actual report)….let’s call them field A and field B. And if field A has values of all ‘X’ and field B has values of all ‘Y’…then….the normal case would be (ignore dots – only for spacing):
    A……………………… B
    XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYY
    But what if A is too long? I would want to see B wrap onto the next line like this:
    A……………………………………………………B
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYY
    YYYYYYYYYYYYY
    And similarly….if B is extra long, can the line print as:
    A………………………. B
    XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    I don’t want the case where B is long and I get:
    A………………… …B…
    XXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYY
    ………………………..YYYYYYYYYYYYYYYYYYYYY
    I can see how you can wrap an individual field like that…but how can you WRAP a line of[b] fields within the frame so it wraps to the BEGINNING of the frame on next line?
    My SPECIFIC CASE
    I have a report that I have stripped down to a simple structure for the purposes of this explanation.
    My DATA MODEL has the main QUERY (for plant family and species data). The columns of the query are divided into 2 groups. The 1st GROUP contains the family data. Below that is the rest of the species data in a 2nd GROUP.
    Linking from the 2nd species group (above) is a new QUERY to extract REGION data based on the common key field. Under this 2nd query is another group with all the REGION columns.
    The LAYOUT MODEL has a group frame (the main , base one)
    On top of this is a repeating frame based on the 1st group (family data).
    On top of this is another repeating frame for the 2nd group (species data).
    On top of this is 2 Frames on the same line line. The 1st frame contains columns from the species group .
    The 2nd frame on this line is a repeating frame. The PRINT DIRECTION for this frame is ACROSS/DOWN. It repeats details of the REGION where the species is found. These columns come from this group come from the REGION QUERY and GROUP.
    All fields on the report line have variable horizontal elasticity.
    The problem is that when there is too much data on the line, it does NOT WRAP to the 2nd line.. It TRUNCATES.
    Can the line be made to WRAP????..
    In my current report, 1 of 2 things is happening:
    1) All fields print on the line until it hits the page boundary and then it just stops. Truncated!
    2) All fields print on the current line, then Oracle Reports throws a new page to print the REMAINDER of the long, input line
    But I would like a LONG line to continue printing onto the following line of the same page.
    I have tried all combinations of the elasticity fields and the ‘ADVANCED LAYOUT’ properties.
    I have been focussing my attention with this problem on the frames .
    We are using REPORT BUILDER V 6.0.8.26.0
    Thankyou to anyone who may offer assistance.
    Tony Calabrese.

    Steve,
    you gain 1 thing, but you lose something else!
    This thing is SO frustrating!
    Hey Steve! Good afternoon.
    I've done as you suggested....I have a long text boilerplate item - the only 1 on the line...and it has all the column in it.
    So it looks like:
    &col1 &col2 &col3 &col4 &col5 etc etc etc
    And the line expands nicely to each field's requirements.
    And when it gets to the right page boundary...it WRAPS to the next line! Beautiful!!!
    The only thing is that...when I had individual fields across the line I was able to create format triggers for those fields. And in doing so I was able to reduce the font and change the justification. I had to do that because some of the fields had to appear superscripted.
    So I wanted something like (ignore the dots):
    ...................................ppppp
    AAAA BBBB CCCCC DDDD EEEE FFFFFF
    So the field of 'ppppp' appeared slightly higher on the line than the other fields...
    I can't see how I can do this with a single TEXT field containing all the &COL values.
    Have you ever come across anything like this?
    Thankyou again,
    Tony Calabrese 12/4/2007

  • How can I set the default line height?

    Greetings,
    I have a report that displays observed behavior in a list format like the one below:
    Behavior Observed:   
        Withdrawn           
        Happy
        Sad
        angry
    There are 5 responses as to the severity of the behavior or it is left blank if the behavior was within normal limits.
    So the output would look like this:  
    Behavior Observed:   
        Withdrawn            (mild)
        Happy
        Sad                      (moderate)
        angry
    The problem is that when this report was designed the details sections were not uniformy formatted and the spacing between data elements is hard to follow from the label to the data field.  I tried to set the details to be uniform by selecting "Arrange Lines",  however when I do this, the data is displayed too close horizontally.  So my question is how do I set the default line height for each field so that they are uniform in distance from each other but not too close due to the font height?
    Does this make sense?
    Thank you,
    Kevin

    I'm confused... How are you associating line height with horizontal field spacing???
    If you have this...
    Behavior Observed:     Severity:
    Withdrawn          (mild)
    Happy
    Sad               (moderate)
    angry
    But want it to look like this...
    Behavior Observed:
    Withdrawn (mild)
    Happy
    Sad (moderate)
    angry
    all you have to do is create a concatenation formula. Something like this...
    {TableName.BehaviorObserved} & " (" & {TableName.Severity} &")"
    Sorry if I've misunderstood what you are trying to do.
    Jason

  • How to get rid of the reference lines on the front panel

    I forgot how I created a couple of horizontal and vertical reference lines on the front panel. It looks like the origin lines on the front panel. When I move my program to another monitor with different resolution, all the layout is messed up because of the reference lines can not change with the resolution. Did anybody meet this before? How to get rid of them?
    Attached are the 2 creen shot of front panels.
    Thanks in advanced.
    Solved!
    Go to Solution.
    Attachments:
    front panel.png ‏63 KB
    front panel2.png ‏42 KB

    You will have to click on the top menu and choose options see below
    when you do this window will pop up and you scroll down until you get to the front panel options. See below
    Tim
    Johnson Controls
    Holland Michigan

  • HP7680 inkjet printer prints narrow blank (white) lines in multiple specific parts of page

    My HP7680 inkjet printer prints narrow blank (white) lines in multiple specific parts of each printed page. It appears to happen in the same parts of each page printed.
    - I installed new ink cartridges
    - I verified that the paper I’m using is the standard inkjet paper that I always use
    - In the tools section of the printer setup menu, I ran the “Clean Printhead”, “Align Printer”, and “Calibrate Linefeed” options
    - In reading the printer’s manual, it seems to imply that the printheads could be the problem.
    - So, I manually cleaned the printhead contacts
    - When I print the self-test diagnostics page, it shows printhead health to be “Good” for both. One of them was installed in January of 2009, and the other was installed March of 2008.
    - With a Q-tip, I even cleaned the clear plastic band that runs parallel to the carriage rod. (It was pretty dirty.)
    Here's a scan of the printed output.
    Thanks for your help!

    After a 2hr phone call with tech support, here is the solution; the L7600 Series printer have a firmware update (file name: OfficejetProK7600_R2011PxN.exe) my printer was bought in 2008 thus my print head is a 2008 model, and new print heads are a 2011 modem, they don’t work right in a 2008 model this is PER the tech rep and his name was John unless you upgrade the firmware.
    So I upgraded the firmware from a 2004NxN to the 2011PxN and now my printer says damaged or missing print head, I place the original print head from 2008 back in the machine and it’s fine, so I bought a 3rd print head for 2011 and it says the print head is damaged.
    After another 30min or so I was told I have a bad printer and sorry the warranty is out, but the old print head works but any new print heads do not, this sounds like a HP Error firmware / hardware compatibility issue, not my issue, but HP will not repair.
    HP has no fix nor will they repair the printer.

Maybe you are looking for

  • Approach advice for a newbie?

    Hi All - First of all, thanks to everyone who shares their stories and advice on this board. It's a tremendous resource that I could not be happier I've stumbled upon.I've been reading for several days and wanted to see if anyone has advice on my app

  • Invoke Node - Make current values default

    I have an issue similar to many postings regarding the use of an invoke node to set control values and then to make those values default in that I get an error message: "Error 1000 ( The VI is not in a state compatible with this operation)." The catc

  • I want somthing from MSI pleaseeeeeeee!!

    I have a K7N2 motherboard and I am very frusterated because my cpu core voltage only goes to 1.80 and the fsb max is 400mhz and the cpu multiplyer only goes to 13. I know my chip and memory can handle much more then this and i was wondering if by any

  • Can I copy and apply title style edits?  Or save them to favorites?

    I'm doing a slideshow in iMove and I have a lot of titles. Is there a way to copy and paste a style or save an altered title to a favorites list? I've started with one of the stock title styles but altered the font, kerning, leading, color, transpara

  • ITunes has stopped working while sync photos

    I have been having problems since I updated iTunes to 10.4, it keeps crashing (itunes has stopped working) while sync photos. After uninstalling and re-installing the problem still stayed. I therefore tried sync photos a batch at a time (15 photos at