Snap to point the cursor: How can I determine what axes?

I have a chart showing several plots.
Some of the plots use bass-x and left-y axis.
Others use x-top and right-y axis.

I use a snap-to-point mode cursor for select a data point on the ground and display an annotation indicating the x and the y value of the selected point.

How do you determine what a pair of xy axes are associated with the plot, that the cursor is cut?

If I had known that I could use SetCursorAttribute (...) to set the appropriate ATTR_CURSOR_XAXIS and ATTR_CURSOR_XAXIS.

Thank you
Kirk
With the help of Labwindows/CVI 2009

You can get it using:

GetGraphCursorIndex (panelHandle, controlID, cursorID, & plothandle, &index);)
GetPlotAttribute (panelHandle, controlID, plotHandle, ATTR_PLOT_XAXIS, &axis);)

You can compare the value of the variable "axis" with the VAL_BOTTOM_XAXIS and VAL_TOP_XAXIS constants to determine the x axis of the plot.

The corresponding attribute of ATTR_PLOT_YAXIS and VAL_RIGHT_YAXIS, one of the constant VAL_LEFT_YAXIS will help you determine the axis Y, which is associated with the plot.

Tags: NI Software

Similar Questions

  • Snap to point the cursor: how to intercept the event of 'snap '.

    Hi all

    I use a chart control with 1 defined in the snap cursor to point and I'm plotting just a waveform: hang on to the points works great!

    My problem is that I need show the value of point break and it seems that the alignment code runs after the events of the chart.

    So by using the code below, when I left click on the graph, I get the mouse position value and not the point closest to my plot to the position of the mouse.

    I tried with all the events graph, but was not able to discover any event which triggers the cursor was taken to the nearest location.

    int CVICALLBACK GraphGetCursor (int, int int event, control panel,
    void * callbackData, int eventData1, int eventData2)
    {
    switch (event)
    {
    case EVENT_LEFT_CLICK_UP:
    GetGraphCursor (hPanel, arranging, 1, & dX, &dY);)
    break;
    }
    return 0;
    }

    My real solution was to create a timer (50ms) and activate on the event that precedes.
    Then call GetGraphCursor (hPanel, arranging, 1, & dX, dY &) in case EVENT_TIMER_TICK, that occurs after the cursor has been aligned with the nearest point, I get the correct values I was looking for.

    Any suggestion for a more elegant solution?

    Thank you very much

    Sergio

    Hi Sergio,

    have you had a look at the example of graphcursors? It seems to do what you want using the EVENT_COMMIT. This example does not work for you?

  • How can I determine what profile Firefox 5 is currently using?

    How can I determine what profile Firefox 5 is currently using?

    Help > troubleshooting information > profile directory: opens showing the file

    Copy and paste this code in the Code field in the ' tools > error Console " and click on evaluate to see the location of the profile folder.

    alert(Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("ProfD", Components.interfaces.nsIFile).path);
    
  • I want to run an update on my iPod Touch, but I get a warning "it buying things... that have not been transferred to your iTunes library." How can I determine what those are?

    I want to run an update on my iPod Touch, but I get a warning "it buying things... that have not been transferred to your iTunes library." How can I determine what those are? Does he want me back up my Touch before update?

    Just sync or backup and they will go to the iTunes library.

  • How can I determine what my passwords for my laptop?

    My laptop passwords.

    How can I determine what my passwords for my laptop?

    I'm only guessing, but I think that it includes the administrator password, or possibly a password for the computer itself.

    I'm a bit lost here. Transmit everything you think.

    I tried changing the settings on THE ADMINISTRATOR ACCOUNT.  I tried several times but without success. I can't even to appear administrator account.

    Jeff

    Oh, a separation of thought here.  I hope you better treat that you have treated others.  I don't appreciate someone implying that I am "breaking into any computer.  Microsoft makes it easy for me..., you just made me angry.

    First of all, please cite what anyone in my message that was humiliating or derogatory.  I'll gladly apologize for it.  I am sure that you will find nothing, however.

    By reflect, if you use a method to access a PC that bypasses the password, you're violating in this computer, if it's yours.  It is a fact, but it is not an insult.  Not where I "talked down" for you.

    I also noticed that despite your not like my answer, you nevertheless marked as the answer, it is in this context.

  • How can I determine what NETWORK card for vShere driver?

    I want download the driver of NETWORK card adapter: Marvell 8001 that is integrated on the motherboard for vShere.

    I checked that the kernel has been 2.6.18 - 128.ESX. But, I don't know what Linux is, for example, Red Hat or anything else. So, how do I determine what NETWORK card for her driver and where I ca nget it?

    Thank you!

    George

    Just thought I'd provide the link to the HCL.   http://www.VMware.com/resources/compatibility/

    If you have found this device or any other useful post please consider the use of buttons useful/correct to award points

  • How can I determine what text encoding uses a database?

    Hello

    How can I determine the text in multibyte encoding (UTF8, UTF16, etc) who uses a database? I guess I can query a system table, but I was not able to determine that.

    Thank you.

    Bob
    SQL> select * from nls_database_parameters where parameter like '%SET%';
    
    PARAMETER                      VALUE
    ------------------------------ ----------------------------------------
    NLS_CHARACTERSET               WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET         AL16UTF16
    
  • When turning on my computer, the screen is black and I can see only the cursor, how can I fix it? Help, please.

    I think I have a virus or a virus that I was invited then in a different line of pop ups for unwanted ads and many ads of anti-virus indicating that I had the virus.  Last night my computer worked but when I turned on the screen shows my windows option then turns black with only the cursor visible.  I can access the Task Manager by simultaneously pressing Ctrl-alt-delete, but I'm not too handy with computers.  Any help would be greatly appreciated.

    Thank you.

    Sandra

    If you can open the Task Manager try to manually open the desktop computer

    In the list of running tasks, type "explorer" (without the quotes) and run it.

    Which starts the desktop computer?

    If not boot in safe mode and try to load a restore point from before you had the problem.

  • How can you determine what version of PHP is on the cold fusion Server

    I'm trying to find out which version of PHP is on my cold fusion server, how can I do this? ColdFusion comes with PHP?

    In the C:\Windows folder, locate the file named php.ini and open it in Notepad.

    I answered myself. Maybe it can help someone else.

  • How can I determine what digital data was issued last with the regeneration?

    Is there a way to determine the last digital data output if you are running a quick revival and regeneration?  Right now I use a digital channel not used by the channel with the same clock that I use for other data capture. It works very well and I know that the data I receive are correct, but there is something wrong with burning a channel for that. The data I am regenerating changes several times during the trial for counting samples to determine where I was in the buffer would make my code more complex and the chances of a mistake to increase.

    I have a mixture of material that I use for a cDAQ-9172, a box of series M and a PXI-1033 USB.

    Hello Tom,

    There is absolutely something wrong with having to use one of your channels to monitor what you're out, however, it's the best we can right now.  The problem is, when you set a buffer until the release, the access card to this memory stream location it will regulate.  It's speed leaving and overall card design.  There is no way back on the material for do what you are looking for and no software to interact directly with the location of the buffer.

  • How can I determine what files given File Record Segments Point to?

    I'm under NTFS, and I have a volume of 2 TB with a lot of files that it contains.  Fortunately, I cloned the entire volume to another volume of 2 TB on occasion (using WinDD, basically an exact bit-by-bit image of the entire 2 TB).  Unfortunately, the volume, I used to work failed, and my last clone was old enough.  To remedy this, I switched to Linux and ddrescue to get as many recovered defective disc I have.  When I finally gave up the recovery (after weeks, but it seemed that it would take years to get a lot more value), I stayed with 1.3MiB evil space in two or three sections of the volume, especially in the 1kiB sections (generally there was 2 bad sectors, followed by a number of sectors well followed by 2 more bad sectors etc.).  The volume had clusters of 64 Kio, which left still potentially a lot of corruption.  After all this, I took the volume newly cloned (from bad disk) back to windows and ran chkdsk.  He finds 1 segment of corrupted file, 336 segments of the orphan file and 440 bad index entries.  So he deleted all those (which included about 6 files that moved to the chkdsk finds the file, the rest was individual files which are now gone).  I do not know what files have disappeared, but I know that most of the lost files are probably on my good old clone of the volume.  Comparing volumes per-folder basis, would be a nightmare, and I suppose cannot easily use a tool (or find a free) because of the number of changes that have not been saved.  I have the registered chkdsk log so I can sort through this.  Can someone tell me a good way to know what files the segments to record file deleted perpendicularly on the volume where they have not been removed?  For example, here are two chkdsk log records:

    Delete a corrupt file record segment 1107859.

    Delete a 1069930 an orphan file record segment.

    Since I know specifically what segment to save file, I need to look on the good clone, can I somehow extract file information about the MFT file segment numbers?

    Notice that I must not use XP to do, which is be where the volume has been created and repaired.

    Well, I finally had the chance to try some Linux ntfs-based utilities.  I'm not sure they are NTFS - 3g, important or ntfsutils, but all those who have a favorite linux distribution should be able to fire and get the information I needed easily.  The numbers are numbers of inodes, and two orders were very useful.  It has provided what I need:

    ntfscluster - I

    It included the full path to the file in question and very little information.  This command has provided a lot of information that I didn't need:

    NTFSInfo-i

    He did not provide the path, but provide the number of inode in the directory parent, so you can reverse engineer the path using this command again and again.

  • How can I determine what keyring is verified by Thuderbird at startup?

    Since the last update, when I opened Thuderbird a black box comes in asking me to authorize the creation of a new key named 'unknown '. That took place after that of previous boxes that says that a program requests access to a set of keys named 'unknown '. Demand for a new key named "unknown, after I display the name of"Mail".»

    The initial problem was that alleged program was unknown and I didn't know what was in 'unknow' set of n keys. To all, I knew that the source of the black box was a computer hacker or malware, etc., that is trying to access my friend, mail Server or the msystem in general.

    My response has been to deny approval until demand previously standard for the pawword requested to access the e-mail server. I enter the password and my mail downloads.

    Assuming that the black box is the result of installation Thuderbird 31.0 and the blackbox is Thuderbird from the new way of asking my password for the mail server, how can I force Thunderbird to ask rather access "Mail", then "unknown"?

    Frankly do not identify the request for access to a key named 'unknown' seems a violation of the security of good practice. A user must know what it is before you take the steps requested by the black box.

    So, today I learned out there is what is called keyring. It's pf Gnome which is the default value of the gui for Ubuntu part.

    I also learned there is an add-on which allows Thunderbird to integrate with it. https://addons.Mozilla.org/en-us/Thunderbird/addon/GNOME-Keyring-integration/

    Thunderbird has its own password manager.

  • How can I determine what version of Firefox that I and where do I go to for updates.

    Yahoo 'suggests' switch to Firefox 8. How do I know what version I have currently (there not 'Internet Options' under Tools) and where I go to find the updates down according to Yahoo?

    Help > about Firefox = the version number is there.

    In addition, you can type Subject: support in the Bat location and press ENTER, to get more information about your installation of Firefox.

  • How can I determine what my CURRENT profile, because the Profile Manager shows 3 and all the questions and answers are ambiguous on this issue. THX.?

    Yes, I see ambiguity. I have also some old Save profiles of boards and I have 3 profiles showing under the Profile Manager. The folder under "%APPDATA%\Mozilla\Firefox\Profiles\" shows 2 of them, but how DO I know WHICH is my current profile? So far, I have been unable to navigate up a clear answer. THX.

    You seem to have created a profile in the Profiles folder and not as you should be in an empty folder.

    You already clicked the button Choose a folder and specified the profiles folder in the profile folder?

    You must always specify an empty folder and new for the profile if you really want to create one profile other than suggest Firefox (you can change the file extension part after the '. ': for example the default user-> my < name >)

    It would be preferable to cleaning the Profiles folder and delete all the files except the file profiles.ini and the default and files 'default user', although you might want to move to another location and start from scratch. If necessary, you can retrieve data from one of the two folders.

  • How can you determine what the user watch calendar view (month, week, day, list) the calendar of CSS (5.0)

    We run Apex 5.0.1.00.06 and I would like to add a region to a page, if the user displays the LIST of the CSS calendar view. I can't understand how to determine which view the user displays currently. Is it possible to determine to create a condition to show another region in they are on a particular view?

    BillH104 wrote:

    We run Apex 5.0.1.00.06 and I would like to add a region to a page, if the user displays the LIST of the CSS calendar view. I can't understand how to determine which view the user displays currently. Is it possible to determine to create a condition to show another region in they are on a particular view?

    This can be achieved using some dynamic measurements, to hide the region if the calendar is the display month view when loading the page and to show/hide the region when you click the list/month selector.

    Add a static region ID to region calendar for use in jQuery selectors.

    Name: See the region list - load

    Event: Loading the page

    Condition: Expression of JavaScript

    Value:$('#static-region-id .fc-month-view').length > 0

    Real Action

    Action: Hide

    Selection type: Region

    Region:

    Nom : See the region list - click

    Event: Click

    Selection type: jQuery Selector

    jQuery Selector:.fc-button-group button

    Condition: Expression of JavaScript

    Value:$(this.triggeringElement).hasClass('fc-list-button')

    Real Action

    Action: Show

    Selection type: Region

    Region:


    Action of false

    Action: Hide

    Selection type: Region

    Region:

Maybe you are looking for