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

Similar Messages

  • 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...

  • 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.

  • 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

  • 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

  • About using cursor expressions in Oracle Reports

    I've just discovered a rather old syntax of the mighty select statement. It seems related to the concept of inline view or more precisely scalar view. It's the cursor syntax in a select statement.
    Example:
    select d.dname
    ,cursor(select e.empno,e.ename,sal
    from scott.emp e
    where e.deptno = d.deptno)
    from scott.dept d
    I have two questions:
    1) Performance: how is the performance of this select in comparison to standard join?
    2) Usage: I've use this from sqlplus and it's ok, but can't use it on a tool like Oracle Reports. Although the select statement is correctly processed, can't display it since the datatype is Database - Unknown ...
    It seems there´s no way to use cursor expressions at least if datasource is a SQL Query.
    Thanks in advance ....

    I think you have answered your own question: CURSOR is not something you can display.

  • I want hyperlink to display when cursor hovers the link

    I want hyperlink to display when cursor hovers the link. I
    have PHP website which I want to edit in Dreamweaver. For example
    when you see in yahoo or msn websites when mouse hovers some text
    it show hyperlink or underlined. I want to know the code used to
    get that effect.
    Regards,
    Saka

    .oO(saka34)
    > I want hyperlink to display when cursor hovers the link.
    I have PHP website
    >which I want to edit in Dreamweaver. For example when you
    see in yahoo or msn
    >websites when mouse hovers some text it show hyperlink or
    underlined. I want
    >to know the code used to get that effect.
    Keywords for further research: CSS, pseudo-classes
    But you should think twice before taking away the default
    underline from
    links. How else are users supposed to find links in a bunch
    of text?
    Just a different color is not enough!
    Micha

  • How to display a cursor with sand glass ?

    I would like to know how to display a cursor with sand glass I am performing a long operation ?
    Thanks in advance.

    As long as you are using anything that extends Component...
    this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    doLongOperation();
    this.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));Hope this helps,
    Radish21
    PS the API is ALWAYS your friend
    http://java.sun.com/j2se/1.4.1/docs/api/
    http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Cursor.html

  • Is it possible to use cursors and zooming in the plotxy function that outputs pictures?

    I use the plot multi xy function in my vi that outputs a picture. And I wonder if it is possible to use cursors and zooming with this output picture?
    Thanks,
    Ogulcan Kaya

    Hi Ogulcan,
    it is, but not as straightforward as with standard graphs.
    As a starting point take a look at the example shipped with LV: Modified Smith Plot with Zooming.vi; you find it in picture examples.
    Good luck,
    Alberto

  • Who knows the principle of the graph's displaying?

    Dear All,
    I am sorry to say that I don't whether I can make you understand me.
    I want to know that in a graph how to use one pixel to display two point. Is the value of the pixel average of the two values of the point?
    For example, there are 1024 points in a graph.  But the graph is only using 512 pixels. That means one pixel display two points.
    What is the relationship of the final value and the value of two.
    Thank you.

    I am not sure your original question was answered.  If you try to draw more points than there are pixels on the graph, LabVIEW does its best to draw lines between each of the points (assuming you are drawing lines, otherwise it just plots every point with the style you specify).  If two points lie within the same horizontal pixel width, you will normally get a vertical line.  For example, you have a graph with a 200 pixel wide display.  You plot an array of 1000 points.  Points 500 and 501 have values 20 and 22.  On the middle of your display, you will see a vertical line at X pixel position 100 connecting values 20 and 22 on the Y axis (along with the rest of your data).
    Check out the tutorial Managing Large Data Sets in LabVIEW for an efficient algorithm to speed up plotting if you have more points than pixels.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Can I connect multiple displays using a mac mini

    Can I connect 2 displays using the mac mini? If so, are there any accessories that I need? Are there certain monitors or connections that I should use?

    Hello,
    Assuming this is a 2012 Mini...
    2nd Display Support:
    Dual/Mirroring*
    2nd Max. Resolution:
    2560x1600*
    Details:
    *This model simultaneously supports 1920x1200 on an HDMI or a DVI display (using the included HDMI-to-DVI adapter) and 2560x1600 on a Thunderbolt or Mini DisplayPort display or even a VGA display (with an optional Mini DisplayPort-to-VGA adapter, which is compatible with the Thunderbolt port).
    http://www.everymac.com/systems/apple/mac_mini/specs/mac-mini-core-i7-2.6-late-2 012-specs.html
    If you need more...
    http://eshop.macsales.com/item/NewerTech/VIDU3HDMIDV/
    http://eshop.macsales.com/item/NewerTech/VIDU2DVIA/

  • To Use  Cursor or  TYPE table Index by PLS_integer

    Hi All,
    Let's see if I have table with no. of records 19,26,20,000.
    If I want to loop through all the records which will be a optimized way To Use Cursor or TYPE table Index by PLS_integer.
    Please guide.
    Thanks.

    What is it you want to do to/with the rows you're looping through?
    Ideally you want to avoid looping, as that's row by row (aka slow by slow) processing and it's expensive time-wise.
    If you're doing DML (insert/update/delete) then you're best off doing it in one sql statement, rather than looping.

  • How to pick max value from a column of a table using cursor and iteration

    Hello Everybody
    I have a table loan_detail
    and a column in it loan_amount
    now i want to pick values from this table using cursor and then by using iteration i want to pick max value from it using that cursor
    here is my table
    LOAN_AMOUNT
    100
    200
    300
    400
    500
    5600
    700i was able to do it using simple loop concepts but when i was trying to do this by using cursor i was not able to do it .
    Regards
    Peeyush

    SQL> SELECT MAX(sal) Highest_Sal,MIN(sal) Lowest_Sal FROM emp;
    HIGHEST_SAL LOWEST_SAL
           5000        800
    SQL> set serverout on
    SQL> DECLARE
      2    TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
      3    sal_tbl tmp_tbl;
      4    CURSOR emp_sal IS
      5      SELECT sal FROM emp;
      6    counter INTEGER := 1;
      7  BEGIN
      8    FOR i IN emp_sal LOOP
      9      sal_tbl(i.sal) := counter;
    10      counter := counter + 1;
    11    END LOOP;
    12    DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
    13    DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
    14  END;
    15  /
    Lowest SAL:800
    Highest SAL:5000
    PL/SQL procedure successfully completed.
    SQL> Even smaller
    SQL> DECLARE
      2    TYPE tmp_tbl IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
      3    sal_tbl tmp_tbl;
      4    CURSOR emp_sal IS
      5      SELECT sal FROM emp;
      6    counter INTEGER := 1;
      7  BEGIN
      8    FOR i IN emp_sal LOOP
      9      sal_tbl(i.sal) := 1;
    10    END LOOP;
    11    DBMS_OUTPUT.put_line('Lowest SAL:' || sal_tbl.FIRST);
    12    DBMS_OUTPUT.put_line('Highest SAL:' || sal_tbl.LAST);
    13  END;
    14  /
    Lowest SAL:800
    Highest SAL:5000
    PL/SQL procedure successfully completed.
    SQL> Edited by: Saubhik on Jan 5, 2011 4:41 PM

  • The display used to flicker, now it's completely white! PLease HELP!

    So, my display used to flicker with horizontal lines all over it, and slightly adjusting the angle of opening would fix this, but about a week ago it lightened a few times, then got stuck being really light with the desktop being barely visible, though better from way down angle (if you open it all the way out) and looking like a negative from the way up angle. I restarted it, and the problem persisted. I shut it down for a day, and, upon startup, the screen is now completely white with nothing visible on it. I had connected the PB to my tv using the s-video out jack on the back and I can see the desktop clearly on it, but it's extremely difficult to read any text, largely due to my tv being big and not hi-def. So far I had tried fixing or diagnosing it by switching resolutions and calibration in the "display" area of System prefs and also in universal access "seeing" tab, I've reset the PMU and still nothing. Here's what's going on: if I start visualizer on the iTunes, both the TV and the stock display flicker to black, then the TV does the visualizer thingy and the display goes back to white. The apple logo backlight is on no problem at all times as well. The laptop was never dropped, handled roughly or subjected to extreme temps. The flickering problem had first appeared when I had relized that I only had about a minute for the battery to go completely empty (my 'puter is almost 3 years old). The recall for the displays covers laptops manufactured about 2 months after mine, otherwise all the symtoms listed in the recall match. Does anyone know what I should do next? I had read about getting a new LCD inverter, but at the same time I am now unemployed and really have no dough.... I'm a sound engineer, and I need my PB to be mobile. The only thing that had happened recently is that I installed the newer version of Pro Tools on my machine, LE 6.9. Please HELP!
    PB G4 Ti   Mac OS X (10.3.9)  

    You might have to restore the pictures from your ""backup" you have on iCloud. But, then again, that would put your iPhone back to the last state it was in when doing that backup. But at least you would have all your pictures back.
    iin any case, I wouldn't do any further backups or any changes to your iCloud account, until you've got your pictures back again. Proceed cautiously and carefully at this point, until you get an answer that will safely restore the pictures.

  • Any way to use cursor values inside other cursor by bulk collect?

    hi,
    Is there any way to use cursor get_tables value insdide loop get column if i am using bulk collect in both cursors?
    I tried a lot but i am nt able to do it.kindly help...
    create or replace procedure MULTIPLE_CURSORS_PROC is
    v_owner varchar2(40);
    v_table_name varchar2(40);
    v_column_name varchar2(100);
    cursor get_tables is
    select distinct tbl.owner, tbl.table_name
    from all_tables tbl
    where tbl.owner = 'SYSTEM';
    cursor get_columns is
    select distinct col.column_name
    from all_tab_columns col
    where col.owner = v_owner
    and col.table_name = v_table_name;
    begin
    open get_tables;
    loop
    fetch get_tables into v_owner, v_table_name;
    open get_columns;
    loop
    fetch get_columns into v_column_name;
    end loop;
    close get_columns;
    end loop;
    close get_tables;
    end ;

    hi there
    Refer this
    CREATE OR REPLACE PROCEDURE MULTIPLE_CURSORS_PROC
    IS
       TYPE scol IS VARRAY (10000) OF VARCHAR2 (32767);
       v_table_name    scol;
       v_column_name   scol;
       TYPE curtyp IS REF CURSOR;
       get_columns     curtyp;
       CURSOR get_tables
       IS
          SELECT   DISTINCT tbl.table_name
            FROM   all_tables tbl
           WHERE   tbl.owner = 'SYSTEM';
    BEGIN
       OPEN get_tables;
       LOOP
          FETCH get_tables BULK COLLECT INTO   v_table_name;
          FOR indx IN v_table_name.FIRST .. v_table_name.LAST
          LOOP
             SELECT   DISTINCT col.column_name
               BULK   COLLECT
               INTO   v_column_name
               FROM   all_tab_columns col
              WHERE   col.table_name = v_table_name (indx);
             FOR ind IN v_column_name.FIRST .. v_column_name.LAST
             LOOP
                DBMS_OUTPUT.put_line (v_column_name (ind));
             END LOOP;
          END LOOP;
          EXIT WHEN get_tables%NOTFOUND;
       END LOOP;
       CLOSE get_tables;
    END MULTIPLE_CURSORS_PROC;regards
    Hitesh

Maybe you are looking for

  • USB is painfully slow all of a sudden

    Hey there i have a macbook running 10.4.9 and usb has always been fine until today when times for pulling data off usb have become agonizingly slow. like 30 minutes for 70MB. EDIT writing to usb is slow, and i have tried this on flash drives and my u

  • Display the value as percentage in pie-chart in WEBI

    Hi Experts,    I have two measures  No. of Sales Transactions and Customer Visit. And I created a measure named CustomerConversionRate. ie, CustomerConversionRate = ([No. of Sales Transactions]/[Customer Visit])*100. So my requirement is that Custome

  • My apple TV not able to set date and time

    Pl let me know how to signin in iTunes in apple as date and time is not working

  • VPN on Dual Power PC G5

    I have just uncovered a weird symptom which might be dual G5 related. My internet and Mail work fine. I connect my Cisco VPNClient Software (Version 4.6.04) and enter my password. The Software then tells me I am connected to the network at my company

  • Unalbe to scroll down page

    today i logged in to check for recent posts, but have found that i can't scroll down the page. there are no scroll bars. I don't have a problem with other applications and websites andy