Line using cursor in xy graph

hi
how i can draw line using cursor in xy graph
Solved!
Go to Solution.

Hi bijal,
Not sure what you are planning to do. But you could start with:
Creating a XY graph. 
Right click on the XY graph >> Visible Items>> Cursor Legend. 
Right click on the cursor legend >> Create Cursor >> Free. Up to this step, you should able to create the cursor.
To obtain the data from the cursor, go to your block diagram >> right click on the XY graph terminal at the block diagram >> Create >>  Property Node >> Active Cursor. This should create the property node for your XY graph. To change a selected property to write, right click on the active cursor >> Change to Read and it should be like below:
Just input 0 to access the first cursor
Expend it to access an additional properties >> on the second property, click on it >> Cursor >> Cursor Position >> Cursor X. 
Expend the properties until you see as below:
It Cursor.PosX and Cursor.PosY isn't changed to write, do change it to write by right clicking on Cursor.PosX >> Change to Write. Do the same for Cursor.PosY
Up to point 6, you should be able to obtain data from the XY graph cursor.  
Use those values to plot into the XY graph. I believe you'll need to find a way to plot XY graph by building an array of clusters. 
Hope it helps
Warmest regards,
Lennard.C
Learning new things everyday...

Similar Messages

  • XY graph datapoint display using cursor

    Hello to all, I am using XY graph to display amplitude v/s time. While running the vi, data is continuously plooted on graph till user stops the vi. I want to add a feature such that, while running the vi, when user click on the graph on particular position using cursor, it should display corresponding time value and amplitude value of that point. I mean value of Y-axis corresponding to X-axis not the cursor position. When using cursor position, it is ok with X-axis but it shows the position of cursor for Y-axis (as property says) , and I want datavalue of that point not y-axis position.
    I hope it is clear with question. Let me have some example...for y=x graph shown below, you can see for cursor x=4.4 and y=6.8, how to display corresponding datapoint which shoud be y=4.4
    Solved!
    Go to Solution.

    While creating (or even after you created), choose 'Snap to' Plot 0.
    Don't let it be 'Free Dragging'
    Example attached.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Snap to Plot 0.vi ‏10 KB

  • Identify peaks on graph using cursors

    I have a piece of analysis software that is supposed to identify event shapes based on peaks in a histogram (attached, along with a sample data set). Following the advice of users in my last thread, I rewrote the program in what I hope is a much improved way. My first question as a LabVIEW newbie: please critique my code. Suggestions for improved style/readability are more than welcome.
    Currently, the program automatically detects peaks in the histogram and fit them, which works fine. However, for more noisy data sets where peaks overlap or there may be many small peaks, it does not do as good a job as it does for the sample data provided. To that end, I would like to be able to have users specify peak locations, ideally by clicking on the graph. It would be relatively simple to have them input them numerically (something like this, for example: https://decibel.ni.com/content/docs/DOC-2238), but I would like to learn to user cursors at the same time if possible. So, my idea is this:
    After plotting the raw histogram without a fit, users would be prompted to enter a variable number of peak locations by clicking on the graph, which would then be used to split the graph up into pieces containing a single peak and fit, just as is already done in the program. Basically I want to replace the Peak_Detector.vi with user input. I believe from reading around that the way to do it would be to use cursors, but I haven't been able to find an example showing me how to do it. A push in the right direction would be appreciated!
    To run it, feed the input file the attached .csv and take the default values. If anything is unclear, let me know.

    (disclaimer : I haven't looked at your VI).
    One way to use the cursors would be to create one (in EDIT mode) and have it snap to plot 0.
    It will therefore always be on your plot.
    You can show the readout (Cursor Palette) if you like.
    In the code, it's just a property of the graph.
    You could respond to changes in cursor position and provide your own readout, if you like.
    Provide a button (or menu item) to DO IT, and when the button is clicked, you remember the X and Y cursor value (read the properties) and use that Y value as your peak.
    you could also look up some other value at that X location, if that does anything for you.

  • Drawing a curved line using the pen tool, dragging the text cursor over the line but will only give me a small area to write in, in-between a circle and a circle with a cross in?

    Drawing a curved line using the pen tool, dragging the text cursor over the line but will only give me a small area to write in, in-between a circle and a circle with a cross in?

    If you change your tool to the "Direct Selection Tool" (A) then you should be able to adjust the area for you to type in...

  • Using cursor in a X-Y graph

    Hi,
    I am using a X-Y graph in labview to see a plot of voltage vs. current. How do I set up a cursor table so that I can see the values of x(voltage) and y(current) whenever I move the cursor on the graph. Any kind of help is appreciated!
    Thanks,
    Mahesh
    Attachments:
    K4CN6.vi ‏77 KB

    Easiest is with a cursor move event in a parallel loop. See attached.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    K4CN6MOD.vi ‏129 KB

  • Labeling points on XY graph with numbers. Trying to use cursor names.

    I have found some example vis in the NI Developers Zone that label the points using Cursor Name attribute. I have some success, but results are not consistent. I need up to 100 labels...is there a limit to the number of cursors? Is there a way to initialize 100 cursors without using Cursor Legend? Sometimes the cursors do not appear or do not move...they don't seem to be consistent. Any other ideas to solve this problem? Would it be possible to show the number of the point when the cursor is moved to that point. I am using LabView 6.0. windows 2000.
    Thanks.
    Liz

    > Problem: When trying to change cursor position programatically using
    > attribute notes, the cursor position will not change.
    >
    > I found this in the knowledgeBase. Solution: Unlock the cursor.
    > Cursor position attributes are read-only when the cursor is locked.
    > Liz
    > Still looking for answer of a way to initialize 100 cursors with
    > Cursor legend.
    >
    If you want to do things programmatically, like set the cursor text to
    match the X or Y value of the point, read the value, format the string
    and write it to the name of the cursor.
    If you want to init 100 cursors interactively, you can popup on the edge
    of the cursor legend and show the index. The cursor legend is simply an
    array of clusters of cursor info. Set the index to 99 and type in a
    name, value or something else. This will allocate 100 cursors. I'm not
    sure if that is what you meant.
    Greg McKaskle

  • Placing a cursor in multiplot graph to display all values at the cusor location

    We are currently using NI based DAq system which uses LABVIEW 7.1.We would like to know whether it is possible in LABVIEW 7.1 to place a cursor in a graph having multiplot that will disply all the values of parameters at the cursor location?

    If I understand the question correctly, yes, LabVIEW can display many parameters of a cursor, including the cursor position (in X and Y coordinates), the array index of the point to which the cursor is locked, the line and point style and thickness, etc. You can also read or set how a cursor locks and whether a cursor is visible or not as well as other properties of cursors. All of this is done using property nodes in LabVIEW and can be done with multiple plots and multiple cursors.
    TylerS
    Applications Engineer
    National Instruments

  • Generate report using CURSORS? - Simple question

    Folks,
    I'm a real newbie still with PL/SQL so please excuse my ignorance I have a simple report I need to generate. The following SQL statement gets me all my "header" records:
    SELECT OHA.ORDER_NUMBER, HEADER_ID, ATT11, ATT12, ATT16
    FROM XXXWD.WD_DUPS DUPS, OE_ORDER_HEADERS_ALL OHA
    WHERE OHA.ATTRIBUTE11 = DUPS.ATT11
    AND OHA.ATTRIBUTE12 = DUPS.ATT12
    AND OHA.ATTRIBUTE16 = DUPS.ATT16
    AND (OHA.FLOW_STATUS_CODE NOT IN ('CLOSED', 'CANCELLED'))
    AND (ATT11 <> 'WESTERN SERVICE')
    ORDER BY ATT11, ATT12, ATT16
    What I want to do now is have a second script that will display all my detail records. Something like:
    SELECT OLA.LINE_NUMBER, OLA.ORDERED_ITEM, OLA.FLOW_STATUS_CODE
    FROM OE.ORDER_LINES_ALL OLA
    WHERE OLA.HEADER_ID = OHA.HEADER_ID
    I expect I'd do this with two cursors, passing the value of my HEADER_ID to my second cursor. But when I've used cursors before, they primarily have been to import data, and manipulate data. But what if I just want to create a report using these?
    I essentially want to display my header information, and then any lines below that data (if there is any, there may be a header with no lines).
    Can I create a simple report like this with cursors? Any help with this would be IMMENSELY appreciated. I'm really under the gun... :)
    Thanks so much!
    Steve

    Here's one query that will give you everything:
    SELECT OHA.ORDER_NUMBER
          ,OHA.HEADER_ID
          ,DUPS.ATT11
          ,DUPS.ATT12
          ,DUPS.ATT16
          ,OLA.LINE_NUMBER
          ,OLA.ORDERED_ITEM
          ,OLA.FLOW_STATUS_CODE     
    FROM   XXXWD.WD_DUPS        DUPS
          ,OE_ORDER_HEADERS_ALL OHA
          ,OE.ORDER_LINES_ALL   OLA
    WHERE  OLA.HEADER_ID   = OHA.HEADER_ID
    AND    OHA.ATTRIBUTE11 = DUPS.ATT11
    AND    OHA.ATTRIBUTE12 = DUPS.ATT12
    AND    OHA.ATTRIBUTE16 = DUPS.ATT16
    AND    OHA.FLOW_STATUS_CODE NOT IN ('CLOSED', 'CANCELLED')
    AND    DUPS.ATT11 <> 'WESTERN SERVICE'
    ORDER  BY OHA.ORDER_NUMBER
             ,OLA.LINE_NUMBER
             ,DUPS.ATT11
             ,DUPS.ATT12
             ,DUPS.ATT16
    ;(correction in order by clause)
    Message was edited by:
    Eric H

  • Please reply:how to avoid extra trailing spaces while using cursor sharing

    i am using cursor sharing with FORCE or SIMILAR.
    what is the solution to avoid extra trailing spaces without any java code change.
    do we have any option in oracle to avoid extra trailing spaces during the query processing ?
    I am using Oracle 10g
    CURSOR SHARING is a feature in which multiple sql statements
    which are same will have a shared cursor (in the library cache) for an oracle session,
    i.e, the first three steps of the sql processing (hard parse, soft parse, optimization)
    will be done only the first time that kind of statement is executed.
    There are two ways in which similar SQL statements with different condition values can be made to "SHARE" cursor during execution:
    1. Writing SQLs with Bind Variables: SQLs having no hard coded literals in them
    For e.g., the query below
    SELECT node.emp_name AS configid
    FROM emp node
    WHERE emp_no = :1
    AND dept_no =
    DECODE (SUBSTR (:2, 1, 3),
    :3, :4,
    (SELECT MAX (dept_no)
    FROM emp
    WHERE emp_no = :5 AND dept_no <= :6)
    AND node.dept_type = :7
    ORDER BY node.emp_name
    Here all the variables are dynamically bound during the execution. The ":X" represents BIND Variable and the actual values are bound to the SQL only at the 4th step of the execution of the SQL.
    In applications: The queries written with "?" as bind variables will be converted into ":X" and are sqls with Bind Variables.
    2. The CURSOR_SHARING parameter: Only Useful for SQL statements containing literals:
    For eg., the query below:
    SELECT node.emp_name AS configid
    FROM emp node
    WHERE emp_no = 'H200'
    AND dept_no =
    DECODE (SUBSTR (:1, 1, 3),
    'PLN', :2,
    (SELECT MAX (dept_no)
    FROM emp
    WHERE emp_no = :3 AND dept_no <= :4)
    AND node.dept_type = :5
    ORDER BY node.emp_name
    In the query above, there are two hard coded literals H200 , PLN. In this case when the same SQL executed with different values like (H2003 , PLN), oracle will create a new cursor for this statement and all the first three steps ( hard & soft parse and optimization plan) needs to be done again.
    This can be avoided by changing the CURSOR_SHARING parameter which can be set to any of three values:
    1. EXACT: Causes the mechanism not be used, i.e. no cursor sharing for statements with different literals. This is the default value.
    2. FORCE: Causes unconditional sharing of SQL statements that only differ in literals.
    3. SIMILAR: Causes cursor sharing to take place when this is known not to have any impact on optimization.
    So, FORCE and SIMILAR values of the parameter will be helping in cursor sharing and improve the performance of the SQLs having literals.
    But here the problem arises if we use the FORCE and SIMILAR other than EXACT.
    alter session set cursor_sharing ='EXACT'
    select 1 from dual;
    '1'
    1
    alter session set curson_sharing='FORCE'
    select 2 from dual;
    '2'
    2
    alter session set curson_sharing='SIMILAR'
    select 3 from dual;
    '3'
    3
    So, this will give extra trailing spaces in when we retrieve from java method and any
    further java processing based on the hardcoded literal values will fail. this needs lot of
    effort in remodifying the existing millions of lines of code.
    My question is i have to use cursor sharing with FORCE or SIMILAR and can't we do the trimming
    from the oracle query processing level ?
    please help me on this ?
    Message was edited by:
    Leeladhar
    Message was edited by:
    Leeladhar

    Please reply to this thread
    How to avoid extr trailing spaces using Cursor sharing opton FORCE, SIMILAR

  • When To and when NOT to use cursors

    Can anyone please refer to a good resource about When to and When NOT to use cursors.
    I have search on line but I haven't find anything really good.
    Thank you.
    H

    If you can do it in a single SQL statement (one UPDATE or whatever), that will almost always be more efficient than a loop construct.
    If you absolutely need a loop, bulk operations (BULK COLLECT, FORALL) will be more efficient than row-by-row processing for any significant number of rows.
    If it is a relatively small number of rows, I would then weigh up the simplicity of a Cursor FOR loop (although Regarding the creation of simple cursors).
    btw I loved that comedy Forms 3 article, but surely April 1st isn't until Saturday?

  • How to return a resultset in a stored procedure without using Cursor

    Dear all,
    I need to return a resultset in a stored procedure.
    I know I can return a Cursor.
    But because there are many complicate logics I need to carry out,
    so I can finish all the logic in a SINGLE SQL select statement, so I think it can't
    use Cursor as return value.
    Does anybody know other approaches? Please help.
    Thanks!

    Some basic techniques that one can use in SQL. These are merely to illustrate (simplistically) different approaches.
    > field3 = select count(*) from table2,table1 where table2.id = table1.id
    This can be done via an analytical function (refer to the SQL Reference) or very simply, as an in-line select as follows:
    SQL> select
    2 o.object_name,
    3 (select count(*) from user_objects u where u.object_type = o.object_type) as "ONE OF",
    4 o.object_type
    5 from user_objects o
    6 where o.object_name = 'LISTFILES';
    OBJECT_NAME ONE OF OBJECT_TYPE
    LISTFILES 8 PROCEDURE
    So LISTFILE is "one of 8" procedures. I would however rather so this via an analytic function as these are a lot more flexible. Note the WITH clause that allows "modularisation" of SQL - kind of like creating "sub-SQL results" in a single SQL statement:
    SQL> with DATASET1 as(
    2 select
    3 object_name,
    4 count(distinct object_name) over (partition by object_type) as TOTAL_TYPES,
    5 object_type
    6 from user_objects
    7 ),
    8 DATASET2 as(
    9 select
    10 name,
    11 text as SOURCE_LINE,
    12 line as LINE_NO,
    13 count(line) over (partition by name) as TOTAL_LINES
    14 from user_source
    15 )
    16 select
    17 object_name,
    18 '1 of '||total_types||' '||object_type as "TYPE",
    19 source_line as "1st LINE",
    20 total_lines as "TOTAL LINES"
    21 from DATASET1 ds1,
    22 DATASET2 ds2
    23 where ds1.object_name = ds2.name
    24 and ds1.object_name = 'LISTFILES'
    25* and ds2.line_no = 1
    SQL> /
    OBJECT_NAME TYPE 1st LINE TOTAL LINES
    LISTFILES 1 of 8 PROCEDURE procedure ListFiles( cDirectory in varchar2 ) 3
    SQL>
    SQL is quite powerful and analytical functions allows all kinds of aggregation processing per row, accessing the leading or lagging rows' data, etc.
    You need to play around with this to get to grips with it and how to apply it.

  • Automatic Cursor Movement in one Graph, in accordance to the cursor in another graph

    I am using two XY graphs each with 4 cursors. I want to assign each cursor of graph A to each cursor of graph B such that the corresponding cursors in graph B moves in accordance to the cursors in graph A.
     I have used Active cursor, Cursor.PosX and it works for one cursor. However when I use the same concept to change the active cursor value and faciliate the automatic movement for all cursors they do not work.
    Message Edited by Chathuri on 08-13-2009 06:26 AM
    Solved!
    Go to Solution.

    Hi,
    As requested I would like to post the solution as to how I tacked the problem. It was actually small mistake on my part. When I connect the two property nodes for each XY graphs I should connect ActiveCursor to ActiveCursor and Cursor.PosX to Cursor.PosX. What I did was connect the Active cursor of A graph to the cursor.index of B graph. I have attached a small screen shot of connecting the first cursor of A graph to the 1st cursor of B graph so that the cursor in B graph follows the cursor in A graph.
    In order to connect more cursors as in my case, the only change to be made is the change in the Acitve cursor constant to, 1,2,......
    Chathuri
    Attachments:
    CursorMovement.JPG ‏7 KB

  • Linking property nodes to two cursors in one graph

    Hello,
    I have got one graph with 2 cursors. And I need to by able to set the coordinates of each cursor by using property nodes. However, if I click right button mouse button - create - property node - cursor - cursor position - -then there are only 3 possibilities "All elements", "X", Y" which links only to one of the cursors (actually I don`t know which). How is possible to link 2 cursors`s position property nodes to 2 cursors in one graph?
     Thank you a lot for discussion.
    Martin Pekar
    Solved!
    Go to Solution.

    Also, if you have more than a few cursors, you can make the code more scalable by using an array of positions and a FOR loop as follows.
    Now the code automatically adapts th the number of cursors you actually have.
    (Of course all other common sense applies, for example only set this when the position changes. Don't write the same cursor postions with every iteration of the loop over and over. )
    Message Edited by altenbach on 05-06-2009 06:25 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    MulticursorII.png ‏4 KB

  • Cursors in XY Graph are blinking

    Hello,
    The graph at XY graph component should be repainted too often (2 - 3 times in second). The graph doesn't blink, because "Update smoothing" option is on.
    But cursors at this graph are repainted every time so they are blinking very strong and customer says it annoys.
    Is it possible to avoid this?
    Thanx

    Hallo Thanx,
    one idee which i had, is to use the property nodes of the XY-Graph to setting the Courser to a fixed position or make them invisibil
    while the measurment is running. One thing about property nodes you should know, they are not very performant, so use them only
    to initialization or deinitialization your processes.
    Best regards
    Lorenz Casper

  • Restrict the movement of cursors on xy graph

    hello.
    I have an XY graph, with values of 0-10 in X, and of 0-10 in Y. I have two cursors in the graph.
    I do not want the cursor is out of the graph area of 10 * 10, I disabled the auto scale, but the cursor can get out of the area of 10 * 10.
    I also hope that the value of X of the cursor0 does not exceed the value of X of the cursor1.
    I hope you can help me with these restrictions on movement, thank you very much.

    Hey there, If you want to restrict the value of the cursors you can use property nodes to do so..
    Here is an example; you just need to get the value on X of the active cursor (0 or 1) and then compare those values; if the value is smaller; you can use a case structure and a property node to coerce the values.
    Hope this info helps.
    Greetings
    Attachments:
    Untitled 3.vi ‏11 KB

Maybe you are looking for

  • HT2731 How do I use a gift card instead of my debit card

    Please help. I am trying to use an Apple Gift Card to download music in the USA. My Itunes store shows a $10 credit but I do not know how to apply it. I do not want the purchases to come from my debit card on file. Can someone please asssit or walk m

  • How can I debug VPN connections on a Cisco ASA?

    Hi, I have a Cisco ASA and I am trying to get a Cisco 877 DSL router connected to it using the ASDM VPN wizard, but can't. I have just had the 877 DSL router connect to my Cisco Concentrator and have simlpy changed the peer address on the router to n

  • The customer's support answer to the problem in 2.15.0003 for X-Fi in Vis

    Thank you for contacting Creative Technical Support Services. I understand that you're having an issue with your X-Fi XtremeMusic installed the new driver for Windows Vista getting a blue screen saying the computer has locked pages everytime closing

  • Problem in creating model

    Hi, While creating model i am getting this error in the last step i.e. after selecting the BAPI function. what might be the pro blem can any one help me plz. [Warning]:     Creating a connection with Metamodel language <en> failed.  Continuing with l

  • Div Nav Bar problem in IE but Chrome is perfect

    In CS6, Div Rollover image navigation bar becomes broken in Internet Explorer (IE10 - Standards): but is perfect in Chrome: HTML code is as follows: How do I fix this?