Scatter chart: get the value of the label XYcursor

Measurement Studio Visual Studio Professional 2012 2013 using,.

On a scatter chart, it is possible to get the value of the actual label for a xycursor?

For example, my label displays a date-time on the X axis format, it looks like: [04: 35:49; 0,27101]

It is possible to get this value? For example, if I want to display in a TextBox?

I am able to get the xycursor. Which and xycursorYposition but not what I want.

Thanks for any help!

Here is a solution to my question:

{

Get xy cursor index of the point in plot
int index = xyCursor1.GetCurrentIndex ();

Get values at that time (in the plot)
Double x;
Double y;
scatterGraph.Plots [0]. GetDataPoint (index, ByRef x, y);

X value to the DateTime format & convert to the format of the time
DateTime t = (DateTime) NationalInstruments.DataConverter.Convert (x, typeof (DateTime));

string time = t.ToString("hh:mm:ss");

}

It is also possible for which xycursor and convert it in the same way.

Tags: NI Software

Similar Questions

  • Symbol of victory-box.  Can not get the Label AutoSize

    Hello

    I'm following the instructions on a tutorial on how to get the label on the 'Win'-> Checkbox symbol on automatic size:

    For example: I changed the label on the "Quantity" box, but it goes down.  I double click to align with the symbol-editing window.  I double-click on the text box and the top right blue square seems hollow (which is supposed to signify his now automatic resizing mode?), but when I go back to the main window.  The Word will not auto-size of the 'quantity '.

    The default value for symbols is "fixed" size 9indicated by the "Cube" at the top right in the text editing Mode.

    Just double-click, this little cube and it will return to a cicrle, which means that you have activated just this block of text for "Auto size". In other worlds, the limits of the block will be "conform to the / auto size" to the width of the text that it houses.

    h

  • How to get the label of the COM ports?

    If I go to System Manager, I got this information:

    But if I use the resource to find VISA, I get this:

    Is it possible to get the label?

    Try this:

    The list:

    (I have a special virtual TCPIP COM port on my machine, which gives error thats why the first element of the indicator table is empty for me)

  • Get the label name XControl leave XControl

    Hi all

    Is it possible to get in the name of the label of an XControl placed on a front panel from inside the XControl?

    I want to put some labels in the façade XControl name assigned to the XControl on a façade.

    Thank you

    So, you want a conscious XControl self-esteem?

    This will do.  Take the refnum in your state 'container' and follow these steps

    Shane.

  • get the label from a selection of radio in a box of radio buttons

    I use a control of radio buttons, with four selections of radio in there.  I understand that this is an enumerated type, so the value is a 'number '.  When wire you this control to a statement button, the case is automatically generated with the selections radio labels.  Is there a way to capture the label of the button that was chosen?    I'm using LabVIEW 8.0 for this project.  Thanks in advance for your time.

    Hi bj,.

    Just use a FormatIntoString with the format specifier '%s '...

  • is it possible to get the label of any variable as a string?

    After all I have label indicator (or other) is there a function that reads the label and returns a string?

    Code and attached image (I use 8.2)

    First of all, the reference is a control - it is plugged into the connector pane.

    This will work only for numeric values.  I found a way to run generic references, but I still do and it is probably too much work, unless you really need.  There might be an easier way...

    When you this Subvi VI another, would connect you a reference to the object that you want as the label to the input terminal.

    Let me know how it goes...

  • I can't get the labels to print an entire page of the same label he will only print four. Help

    I try to print a full page of labels, all the same. I did in the past, but now it will only print 4. How can I get to print an entire page?

    Thank you for your help.

    Hello

    1. What is the brand and model of your printer?

    2. what applications printer do you use?

    I suggest you to change the print settings and check if the problem persists:

    Reference: To set the properties of the printer

    Hope the helps of information.

  • height to get the label to determine it's belonging to a category

    I had something like this:


    var myClass:myClass = new MyClass;
    addChild (myClass.showLabel);

    Then, within this class, there is this code:


    public class myClass {}
    private var myLabel:Label;
    private var myCanvas:Canvas;
    public function myClass() {}

    myCanvas = new canvas;
    myCanvas.width = 30;
    myCanvas.height = 30;
    myCanvas.x = 30;
    myCanvas.y = 30;

    myLabel is new label;.
    myCanvas.addChild (myLabel);
    }

    public function showLabel (): Web {}
    MyLabel.set_Text = "example";
    myLabel.y = myCanvas.height/2 - myLabel.height/2;
    return myCanvas
    }

    When debugging I see that "myLabel.height" = 0. I don't know how to find it is the final height. I tried to use myCanvas.validateNow () myLabel.y in deciding, but it did not work.

    Hi lbarim,

    Try myLabel.measuredHeight instead of myLabel.height...

    Also write myLabel.validateNow (); as well as myCanvas.validateNow ();

    Note: myLabel.validateNow (); may not be entirely necessary... However try it once... you can get with myLabel.measuredHeight to...

    If this post answers your question or assistance, please mark it as such.

    Thank you

    Jean Claude Chari

  • How to get the label of the image?

    In accordance with common rules, I want to put all my as2 code in the first frame of a layer named 'code '.

    Then there was this question: how to implement that "certain actions when a given (better by using"image tag "not" frame index number") is entered to take ' in the 'framework of code' using as2.

    I can call to mind, listen to the message of frame entry of the current MC it's how can I check if the current entered image is the image specified?

    Any solution to this problem is welcome!

    Thanks in advance!

    Here is an example of what I mentioned in my first post:

    var labelA:Array = ["framelabel 1", "label 2", etc.];

    var frameA:Array = [];

    Preloader code

    function loadCompleteF() {}

    for (var i: Number = 0; i<>

    this.gotoAndStop (labelA [i]);

    frameA.push (this._currentframe);

    }

    startAppF();

    }

    //

  • How to get the value of the label tag XML.

    To get the label for the page element I use under the piece of code. But the same code does not work for the inline xml tag.

    PMString TestUtility::GetScriptLabel (UIDRef pageItemRef, PMString key)

    {

    PMString labelValue;

    labelValue.SetTranslatable (false);

    InterfacePtr < IScript > iscript (pageItemRef, IScript::kDefaultIID);

    If (iscript)

    {

    If (key is 'default')

    {

    labelValue = iscript-> GetTag();

    }

    on the other

    {

    labelValue = iscript-> then (key);

    }

    }

    Return labelValue;

    }

    Please suggest something.

    The following function should do the job:

    PMString GetXMLTagLabel(IDocument* doc, WideString& tagName) {
        PMString label("");
    
        if(!doc)
          return label;
    
        InterfacePtr tagList(doc->GetDocWorkSpace(), UseDefaultIID());
        if(tagList)
        {
            UID tagUID  = tagList->GetTag(tagName);
            UIDRef tagRef = UIDRef(::GetDataBase(doc), tagUID); 
    
            InterfacePtr script(tagRef, UseDefaultIID());
            if(script) {
                 label.Append(script->GetTag());
            }
       }
       return label;
    }
    
  • Get the value of an enum as a Variant text

    I want to use a group of settings with which sent to another application via DDE link.  The label of each control of the cluster is sent with the value as text.  Using an array of references to the command I get the Label.Text property for each control in the cluster.  The value is presented as a Variant, so I have to convert the data into a string according to the type of data.  I got this connected to a business structure that could convert to a string data type and the data type of the ClassName property.  It works very well for the (trivial) chain, Digital and the ring but I cannot work out how to get the string value of an Enum.  I would have thought that it would be possible that the string value is a part of the data as shown but the picture indicator of variants.

    I would appreciate help with this.

    The attached vi show what I've got so far.  The desired output array is a dummy control to show what I want to get this VI

    Ken

    Hi Ken,

    See the vi changed please. If that's not enough, please also see the «OpenG» vi´s

    Mike

  • Cluster containing the label the button Get?

    In view of the reference to a button in a cluster control, how can I get the label of the cluster containing (parent)?

    More information on the task at hand:

    I have a pair of buttons ('read' and 'write') within a cluster, what I repeated in rows and then wrapped in another cluster for convenience of layout. I now want to manage the events of each button, grouped by lines and columns, as in the photo (also attached VI):

    My goal is to have a case of "read" event and one case of event "write", and according to what rank button is pressed, the code will be the index of an array of data for reading and writing. I know I could write separate events for each, or change the labels for each button to "Read button 0", ' Read button 1 "," read "button 2", but this is just an illustrative example for a much larger grid of buttons and other controls, and it is prohibitively expensive to turn on each of the labels, modify them, and then hide each of the labels.»»

    If this is not possible, I am open to other ways to address this problem that don't involve not copy paste cases of event for each line (since it is also prohibitive for the frequency at which cases are changed).

    Thanks in advance,

    Arthur

    You can use the node property of the object button called "holder".  What it does is return a reference to the object owner of this button, in this case the cluster.  Then you can convert this reference to a more specific class of the cluster.  Then use a property node to read the label.text.

  • How can I get the names of control within nested groups? RT

    I decided it was cool to have nested clusters. For example, all of the analog data, I read in my review is in a single cluster, which consists of categorical clusters (IE 'pressure', 'temperature', etc.). Now is the time to save data in the .tdms file, and it would be really handy generate a pair of paintings in this cluster 'root' containing all the digital control labels and their data.

    I found this thread, http://forums.ni.com/t5/LabVIEW/Is-there-a-quot-Get-Cluster-Names-quot-VI/td-p/666555, that uses a property node to retrieve the control labels in the root certification cluster. It's great, but I only get the labels of nested (and none of their items) clusters.

    My lab-fu is not strong enough to find an elegant solution for this. I can brute force of unbundling and indicators, then using the property noted separately on them... but I think there must be a better way!

    The attached VI is my best effort to solve this. It works, but I fear that it is not the best code for the following reasons:

    1. am I really allowed to point to elements of the façade at RT will be deployed this Subvi in one executable startup?

    2. If the Subvi is in a loop, what should I do instead of 'build array' in order to avoid the memory use? All examples use it I read so much about how I shouldn't... and what the functional alternative?

    Thanks a lot for your time!

    Here's a version that uses the variant screws, will take care of any level of nesting and work on RT. The use of Delete of table and table to build is not too efficient, but should not be a problem if you only run this once when the program starts. If you use the Type Cast to convert a cluster in a table as shown here, all numerical values should have the same representation (IE do not mix single and double-precision floating points, or integers (ints) and floating point values), otherwise you will get weird data without warning or error.

    Also, your original code had a displacement uninitialized register. Pay attention to that - if you were to run this code twice, the second time that the table of data labels would be twice longer as it should be, because the shift register would be initially contains the values in the first round.

  • Alignment of the label to mobileiconitemrenderer

    I have a custom element rendered for a list in an application to run on android and finds it difficult to get the label ' ' to align in the Center.

    The code is;

    override public function set data(value:Object):void {}

    If (value! = null) { }

    Super.Data = value;

    setStyle("fontSize",18);

    If (value.assigned) { }

    Label = "[ASSIGNED YOU]."

    setStyle ("textAlign", "Center");

    }

    else {

    setStyle ("color", 0xFFFF00);

    Label = "[PRESS TO ACQUIRE]."

    }

    height = 150;

    iconWidth = 75;

    iconHeight = 75;

    iconFunction = getIcon;

    messageFunction = getMessage;

    }

    }

    The colors and the fontsize appear to work well, but the label remains aligned to the left. I also tried to set the alignment in the list that is the owner of the converter.   Any ideas?

    It looks like you use a preview version very soon.  MobileIconItemRenderer has been renamed to IconItemRenderer, and it seems to work for me, the final version of Flex 4.5:

    one

    two

    three

    override public function set data(value:Object):void {}

    Super.Data = value;

    If (! data)

    return;

    If (data == 'two') {}

    setStyle ("'textAlign","Center");

    }

    }

    ]]>

  • Get the smart tag list of business rules

    Hello

    Do you know how I can get the label of active lists in business rules?

    The label is the name of a dimension member in another dimension, and I want to use this label to fix this other dimension.

    Best regards
    Rodrigo

    Hello

    To do this, I use a CDF that reads relational database planning where SmartLists labels are stored. Then I just use @MEMBER (@MyCDF (mycdf parameters)) in TROUBLE.

Maybe you are looking for

  • Photosmart C5150

    Recently purchased Windows Surface (RT of Windows).  The printer was working fine.  This weekend I plugged an extension of router and now the printer does not work and I get a message that the printer is offline.  Another section States the PCL is no

  • Could not open file xls without first opening xcel

    I used Xcel 2007 on XP for a number of years, then suddenly, I can't open a xlsfile Explorer or desktop and so on, I can only open the file open Xcel and select the file while in the Xcel - how can I fix?

  • HP Laser Color CM1312nfiMFP

    The printer does not work, but there is that some start noise, the display is always white, there is no LED anywhere, anytime and the scanner does not work. Woul you please give me help.  Thank you

  • How to remove from the list of friends in MSN Messenger?

    I HAVE FRIENDS ON MY MSN I KNOW, BUT ARE NOT FRIENDS.  HOW CAN I REMOVE THEM?  I WOULD LIKE TO PUT OTHER FRIENDS 'REAL' INSTEAD

  • Alienware 15 warranty

    I was wondering just what about laptops Alienware 15. Recently I bought only one comes with a hard drive, if I want to open the rear port and install an ssd M2 it void my warranty? Will also install another OS and dual boot with Linux Sub my warranty