How do you map a mouse events coordinate​s to the coordinate​s of a chart or graph?

I'm using LabView 6.1 on Win XP Pro. I'm trying to highlight points on a graph picked (by using a mouse click) by a user. The mouse click event returns x,y in pixels relative to the upper left corner. I know the upper left corner of my control. I also know the width and height of the plotting area within the control, but I don't know the position of the plotting area within the control. Without that piece of info, I can't do the mapping.

Hi,
You May Want to do this a bit Differently but achieve the same Goal i.e. the user Picks Points on a Graph and you highlight these points and Draw A graph or impart some other functionality.
Here is an idea -
1. Let the User Position the Cursor on the Point they want. To aid the user you can make the cursor legend visible which shows the X and Y Axis values for the cursor. To accuartely Position the User can use the the 4 Buttons that are a part of the Cursor Legend.
2. Put a Button next to the graph saying "Select this Point"
3. After Positioning the Cursor when the user Clicks this Button you use the "Cursor Position" Property of the graph to extract the value of the cursor.
4. Next you may want to add this Point to Cluster Array which displays
the Points on the Graph. If this Array is Empty and you add this one Element to the Graph then this Point will be Visible. The User may now reposition to another Point and Repeat the Process.
5. To aid the user you may want to Provide " Delete last Point" and "Clear All" Buttons. The Functionality is to Delete Last Element in array or Clear all Elements in the Array.
The Structure of this whole routine probably is Event Structure(to trap Button Clicks "Select", "Delete" etc) Inside a Case Structure (State Machine to Perform the Operations User Clicked) All Inside a While Loop.
This is a Short Description of how this Functionality can be Built. To Automatically Extract Cursor position from the Graph and then try to Map it to Coordiante Axis For a Point is More Involved and a Little Convoluted.
Why not keep it simple? IF anything is unclear, I will be glad to explain or post an example (Only if time permits!!)
Good Luck
Mache
Good Luck!
Mache

Similar Messages

  • How do you map a custom event trigger to a DHCP ?

    In the Auto Smarports Config Guide, Cisco IOS Rel 15.0(1)SE, July 2011, it states Auto Smartports can detect devices based on DHCP options. There are predefined macros for devices detected through DHCP.  I have a few questions:  1) What are these predefined macros? and 2) can I specify a user-defined event trigger from DHCP options?  How do I do this?

    Hi Flowserve1,
    What hardware are you using to make your measurement? What driver are you working with? You will be able to make measurements with your counter on a digital signal. If you look at the device pinouts for your device in Measurement and Automation Explorer you will see the counter terminals.
    Steve B

  • How do you add an application event to the Applications Panel

    How do you add an application event to the Applications Panel.
    My previous post referred to .ashx files, and the problem seems that Firefox, by default, does not recognize a .ashx format being read by Adobe Acrobat.
    Therefore there needs to be a way to add Applications and Events into the Applications Panel under Preferences

    domdp wrote:
    ...I have Theme L selected and I get 10 icons along the left side and bottom....
    ...I am thinking I may be limited to 10 icons....
    Gotcha... But actually its limited to 9 icons in the L theme as the Profiles icon is always present. From that screen hit the Menu key to display the bigger list of icons. Arange them so the first 9 icons are the ones you want to see on the L theme.

  • HT1229 How do you transfer photos to external backup and keep the photos in events with event name or with description name. Each time I have tried to transfer them they only transfer with a jpg number so you don't know what photos are what.

    How do you transfer photos to external backup and keep the photos in events with event name or with description name. Each time I have tried to transfer them they only transfer with a jpg number so you don't know what photos are what. When you have several thousand photos it is difficult to determined what is what.
    Why does iPhoto have the ability to put photos in events and to give them descriptions if it doesn't transfer this info with the photo. I want to back my photos up to an external drive.

    The simplest way to achieve what you want is to back up the iPhoto Library. That will get everything.
    You sem to be exporting from iPhoto to the Finder. The Finder does not have the same organisation capabilities as iPhoto. If you're going to do that you need to understand some of the differences between the two.
    Event Name will become  Folder Name.
    'Description Name' I guess is the Title you give the Photo
    Jpeg Number is the File Name assigned by your camera.
    So: File -> Export
    Set your Kind to Jpeg
    Select your preferred Quality
    Check the Boxes at 'Titles and Descriptions' and Location Information
    Under FIlename select 'Use Title'
    Click on Export. In the Next Window choose a New Folder as your export destination and then Name that as you prefer
    Regards
    TD

  • How could you map the Records of OM- PA

    Hello Experts,
    How could you map the Records of OM->PA ,if the designation of person changes from manager to supervisor from certain date.and how can we see the changed records??
    Solution :we can see the changes in the addition action infotype 302,personel hiring action(0000) delimit the record whenerver we changes the designation,and in the orgassingment infotype overview ,action infotype over view we can see the changes and PLOGI-ORGA IS the integration switch and position is the key for map the recoed from OM ->PA
    Post your comments if the solution is correct???
    Regards
    Chandra

    Thanks  a Lot!!!!
    Regards
    Chandra

  • How do you get your mouse when rolled to zoom in and out???

    how do you get your mouse when rolled to zoom in and out???

    What operating system? What kind of mouse?

  • Simple question - How do you make an onchange event occur in a select list

    Simple question - How do you make an onchange event occur in a select list to fire a process?
    Thanks

    1) Using ApEx Selec list on Submit Item.
    You will create a PL/SQL Process after Submit. -> Conditional Type Request = Expression1. -> Expression1 is the name of your Select List. Process Source - > Procedure you like. For example depending of your select List value you will add rows in different tables.
    2) Javascript This example will change a System parameter value when changed
    <select id="P3_SUBSYSTEM" onchange="location.href='f?p=101:3:2164422329953284::NO::P3_SUBSYSTEM:'+this.options[selectedIndex].value;" size="1" name="p_t21">

  • How do you map networks on an iMac

    How do you map network connectios on an iMac Intel based unit?

    in finder my nas and other computers how up under shares then I add shortcuts to the dirs I want access to
    and place them where I want them == they are map'd

  • How do you remove duplicate note events 1 or to ticks apart ?

    How do you remove duplicate note events 1 or to ticks apart ?
    my keyboard was putting out doubled note events durring a session.
    But the note events are between 1 and 3 cliks apart.
    in other words 1 might be at 1 3 151 and the other duplicate at 1 3 153
    So remove duplicate events does not work.
    I dont want to have to quatize all events either.
    thanks
    CC
    Logic X

    The only other option I can think of that may help you is the select highest/lowest notes.
    This will select the top or bottom notes for any notes that are overlapping.
    the key command is :
    **** up ( highest ) or shift down ( lowest )
    It may work on some blocks of notes, but it's a bit hit and miss.
    Other than that it's a manual editing job I'm afraid

  • How do you save changes made in iPhoto, and export the changed file.  It keeps reverting back to the original.

    How do you save changes made in iPhote, and export the changed picture file? When I select export, current format, it reverts to the original, wiping out all my work.

    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder.
    (On 10.7 or later: Hold the option (or alt) key while clicking on the Go menu in Finder to access the User Library)
    (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    What's the plist file?
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.

  • How do you put safari web pages into icloud with the safari iCloud button?

    how do you put safari web pages into icloud with the safari iCloud button?

    What that button does is sync your tabs between your devices. So if you have multiple macs with Mountain Lion and/or devices with iOS 6 (once it comes out this fall) you can pick up where you left off. For example, let's say I have apple.com, nytimes.com, and facebook.com open on my mac, but I need to run. Later, if I need to use another computer in my household, I can just restore the tabs that I was using before on this other mac.

  • How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    How do I add a recurring event to repeat on the fifth recurring day of the month, for example, an event that only happen on the fifth Sunday of the month for those months that have a fifth Sunday?

    Create one on the first Tuesday, select repeat/monthly and take the option at the bottom.

  • How do you transfer music from your ipod touch to the new Itunes?

    How do you transfer music from your Ipod touch to the new Itunes?

    The music sync is one way - computer to ipod.  the only exception is ituens purchases.
    You need to copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • How do you get your ipod to get out of the "connect to itunes screen"?

    How do you get your ipod to get out of the "connect to itunes screen"?

    Connect the iPod to your computer and restore via iTunes.
    iTunes 10 for Windows: Update and restore software on iPod, iPhone, or iPad

  • Hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    hey how are you guys listen i have an iphone 4s the one i use with the H20 CARRIEr and i trying to enable the option call forwarding and when i type tho number i go back and i notice to the call forwarding it turning off as soon i back to the main menu ?

    There are a lot of posts in the forums today with people having problems with iMessage.   There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
    I would just wait it out - I'm sure it will be sorted out soon.

Maybe you are looking for

  • Default a rtf template for a Xml publisher report!

    Hello, How to default a layout template if multiple templates are registered for a Data template? and also how to delete a template? Thanks,

  • "Old" source file in iMovie, compared to what's on MobileMe

    I recently made my first iMovies. The first time I uploaded the file, what appeared on MobileMe was an older version of what I thought I'd completed. Possibly, I uploaded from that last saved version, and even though there's no "save" button in iMovi

  • Where is the "crop page" pop-up menu in Acrobat X tools?

    Clicking on Tools > Pages > Crop only shows me manual rectangle crop selection. There is no pop-up menu showing me options such as "removed white margins" etc. as we were used to in Acrobat 9. How does one enable this pop-up menu?

  • N81 Bugs / Issues Thread

    I'm thoroughly impressed by this phone I love it's style, the keypad is great. I'm really loving the games so far and can't wait for the N-Gage application launch. The phone really works well. Mostly... I wanted to start this thread to raise a few bu

  • Sale orders lost after SGEN ????

    Hi there, I am just wondering about something. After we installed support packages, users created sales order without to get any error message and I we could only see an error message via SM21 which says: Run-time error "LOAD_TYPEPOOL_VERSION_MISMATC