How do I get an event-based response to a graph cursor change?

I want to respond to the user moving a cursor on a data (X-Y) graph. (LV 7.0)
What I really want is an event called "Graph.Cursor.Value Change", which would supply me with the new coordinates, but I see no such event.
If I use the MOUSE MOVE event to trigger obtaining the cursor values, it does not give me an event, until the cursor has stopped moving, the button is up, and the mouse moves off the cursor line.
Sure, I could use a TIMEOUT event, and read it every 100 mSec, but I don't like the time lag.
What I did was to set a flag TRUE on Graph.MouseDown and FALSE on Graph.MouseUp. I then choose an event timeout of 10 mSec or -1, depending on that flag.
That works, but is there a more direct way that I'm missing?
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

No, unfortunately there is not.
To code around this limitation, I typically use the timeout event in a more complex way as follows:
The timeout is wired to a shift register that is initialized with "-1" (no timeout). The value from the shift register then crosses the event structure and feeds to the shift register on the right in almost all event cases.
I add two special event cases:
(1) "graph-mouse down" puts a small number (e.g. 10ms) in the right timeout shift register
(2) "graph-mouse up" puts again a -1 in the right timeout shift register
(x) All other event cases (incl. timeout) wire the current timeout straight across to the right shift register.
The timeout event contains the logic to read the graph cursors and associated actions.
This way there is normally infinite timeout. Once the mouse goes down on the graph, the timeout executes at relatively rapid succession until the mouse is raised again. At which point everything quiets down.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • How do i get my events to change colors when i add new ones in my calendar

    How do I get my events to change colors when I add a new event in my calendar?

    When you add an event and you see the heading "Calendar", do you see a name to the right of it such as "Work"?  If you tap on the heading "Calendar" does it show you a list of calendars?
    I'm basing this on my experience using iCal on a Mac to sync with my iPad.  I created a number of calendars on the Mac and assigned them different colors.  Those appear on my iPad.  I don't know how to create additional calendars on the iPad alone - I must create them in iCal or MobileMe then they show up on the iPad.  Are you using a Mac or MobileMe?

  • How do I get my calendar to sync on iCloud?  I changed a calendar event on my iPhone 4 and it has not changed in Entourage on my MacBook.  This is supposed to be automatic, isn't it?

    How do I get my calendar to sync on iCloud?  I changed a calendar event on my iPhone 4 and it has not changed in Entourage on my MacBook.  This is supposed to be automatic, isn't it?

    Entourage will not sync with iCloud, not now, probably not ever, time to change.

  • How can I get the events from a java program?

    I want to make a monitor to watch a java program.How can I get the events from the GUI of this program some as mouse cliking, keyinput. So I can watch these in my monitor.
    Thanks

    Hi,
    To put a monitor to the events occuring in the GHUI u need to register required components with the appropriate EventListeners.
    Liek if u want to get notified when a mouse is clicked, then u need to add The MouseListener to the component which u want to be monitored.
    Say
    myFrame which is the JFrame object which shuld be monitored for the events.
    Then in ur program u have to add following code
    myFrame.addMouseListener( someObectReference );
    Here the someObjectReference should be an instance to a concrete class ..i.e. U write a class like the following
    public class MyMouseListener implements MouseListener {
    // override the followig methods
    public void mouseClicked(MouseEvent me){ sop("MOUSE CLICKED ON THE FRAME");}
    public void mousePressed(MouseEvent me){}
    public void mouseReleased(MouseEvent me){}
    If u dont want to use another class for listening to the events. Then u can make teh current class monitor the events. To do so ur class should implement the appropriate listener and should override the required methods.
    and u should say myFrame.addMouseListenet( this );
    thats it

  • Calendar help: how do I get One event to show up on two calendars

    Calendar help: how do I get One event to show up on two calendars? For example I want to enter vacation only once but I wanted to show up on the calendar that I share with my husband and the calendar I have with my assistant.

    The signature should show up with each account. Usually the complaint is not having an option for multiple signatures or not being able to have a different signature for each account.

  • How do I get new events on my phone to sync with my desktop ical?

    How do I get new events on my phone to sync with my desktop ical?

    Hello juliebgerstel,
    I read your post, and it sounds as though you'd like to learn about calendar syncing. I have linked to an article that will instruct you on how to do that:
    iOS: How to transfer or sync content to your computer
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • How can I get a flash based plugin to load in CC 10.x

    Hello
    How can i get a flash based creative suite plugin to load in Indesign CC 10.x?
    I can get It to load in CC, but not In CC 10.x. Im using Flashbuilder 4.5. Do I need a newer version of flash builder/extension builder?
    Best regards
    / Pontus

    Yes, you can!
    You need to make sure that you are using: "Adobe CSAW Indesign" and not "Adobe CWSAW".
    Also you need to hack the manifest.xml and write someting like this:
    <HostList>
                <Host Name="IDSN" Version="[7.0,10.9]" />
    </HostList>
    To get it to load in CC 14.
    / Best regards
    Pontus

  • How can I get a detail block to requery after a database change?

    Hi, I have a master/detail form. When the status of the master record changes, I need to update a date in one of the detail records. If I use SQL to update the detail row in the database in the ON-CHANGE trigger of the master block, how can I get the detail block to requery to show the change? When I try doing a go_block from any of the ...UPDATE triggers, it says it is restricted.

    wjpenfold,
    Do you have a "Relationship" defined between your Master and Detail blocks? If so, you simply need to requery your master block and the detail block will automatically be requeried. If you can't use a relationship, then you can use can create a timer in the trigger that updates the database and then in the When-Timer-Expired (WTE) trigger you can go to the detail block and execute a query. For example:
    /* Sample On-Change trigger */
    DECLARE
       timer_id  TIMER;
    BEGIN
    ....your code here that performs the update....
       /* Now create an instance of a timer */
       timer_id := Create_Timer ('upd_detail',1,NO_REPEAT);
    END;
    /* Sample Form Level When-Timer-Expired trigger */
    DECLARE
       timer_id   TIMER;
    BEGIN
       -- Find the timer first
       timer_id := FIND_TIMER('upd_detail');
       IF NOT ID_NULL(timer_id) THEN
          GO_BLOCK('DETAIL_BLOCK');
          Execute_Query;
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How can I get an excel spreadsheet onto the iPad and make changes to it?  I need this for a meeting this afternoon.

    How can I get an excel spreadsheet onto the iPad and make changes to it during my meeting this afternoon?

    I just bought splashtop, you have to have your home computer online,and download the pc version.  I have used it ot watch movies and to "go to work" on my ipad.  It controls the desktop through the ipad.  Whiteboard by splashtop does that and more and is on sale.  The education director at the hospital I work at is using that one.
    Splashtop 4.99 remote desktop(or laptop) control. Whiteboard 9.99 is remote control and more 9.99
    Julie

  • HT5312 How can I get the email for a rescue I'd to change my security questions

    How can I get the email for a rescue I'd to change my security questions

    You can't add or change a rescue email address (which is not the same thing as an alternate email address) until you can answer your questions - if you don't already have one then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551
    When you've got them reset you will then be able to add a rescue email address for potential future use

  • HT1689 I have 0.44$ in my account, and I was trying to change the apple store, but I have to use the credit... However, all applications seem to be 0.99$ (the least) how can I get rid of this 0.44$ so I can change the store?

    I have 0.44$ in my account, and I was trying to change the apple store, but I have to use the credit... However, all applications seem to be 0.99$ (the least) how can I get rid of this 0.44$ so I can change the store?

    Click here and request assistance.
    (90740)

  • Accidentally merged all iPhoto events. How do I get my event data back?

    I accidentally merged my iPhoto events all into one event. I'm using iPhoto 11 on Yosemite. My problem is, my last backup to my external hard drive was in April 2014 (I know, my fault). Is there a way to restore the events? I notice in the metadata there are event files that date up to April 2014. Can I use these to restore the events? I realize I might not be able to get the events from April 2014 onward restored. But is there a way to at least restore the events created prior to April 2014?
    I'm not really sure how all the metadata and backup files work so any help is appreciated.

    Well no one has ever found a way.
    Try rebuild with iPhoto Library manager.
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.

  • Upgraded to ios 7.1 battery drain is significant and have lost my calendar events. how do i get my events back and why am i losing so much power now?

    how do i get my calendar events back and why the power drain after upgrading my operating system to 7.1?

    Thought I'd reply to this seen as no one else has, I am also experiencing very similar problems with my 4s and by the looks of it is it's across all handsets. I've never had any battery issues with my iPhone even 7.0.6 was fine, but since updating to 7.1 the battery is ticking down very fast. I fully charged in the morning and left it in my locker all day at work when I got my hands on it it's gone down to 52% just on its own!!
    I really hope they sort this out fast the irony is 7.1 was supposed to help battery life!

  • How can I get the event triggered in the WDOBEFOREACTION of my View?

    I have a custom WDA inserted into an SAP FPM.
    I need to find out whether the user just hit <Enter> or actually chose an FPM button such as Read Only.
    How could I find out the FPM event in my View?

    In my opinion, you would not get FPM events in your view. FPM events are handled in the controllers method like process_event.

  • How do I get the event / text to show on my calendar?

    In my calendar, when on the day, the text / event is not showing and it used to.  If I click on it, it's still there but I want the event to show at a quick glance.
    How do I get that back?

        Hello DWarmke
    I'm very sorry your having calendar issues. Let's see if we can get this fixed the reminder time may have elapsed. Here's a great link: http://vz.to/1q2k4vJ Try deleting the event and readding.
    Sincerely
    JoeL_VZW
    Follow us on Twitter @VZWSupport

Maybe you are looking for

  • SQL script based on hostname and database name?

    I am trying to write a script that I can run on several unix servers and databases that will do different sql statements based on which server and database it is being run in. Something like: if hostname = 'A' and database name = 'D' then do this els

  • GRIR Clearing ( MR 11)

    While clearing the lines through MR11. There are some lines which shows a message of " Budget exceed". How can we close such lines.

  • [SOLVED]How to get a background in kdm?

    I installed kdeartwork-wallpapers at the same time as kde and still nothing. Is there any fix for this? Last edited by tataraperz (2011-08-06 05:48:44)

  • Best setting for imported audio?

    Apologies in advance if this is an obvious question... I'm a 98-pound FCP weakling.... A local dub house converted some old analog video for us. They delivered the files in muxed MPEG2 format, which seems strange... but even odder, the audio track ap

  • Does the search support Chinese language?

    Does the search support Chinese language? I find that it does not supprt chinese search in the WebHelp created by RoboHelp. The English word is ok? Can it be solved?