LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

x value

How can i get the x value of the normal graph.
0 Kudos
Message 1 of 11
(4,006 Views)
I'm just curious, why posting twice the same stupid question after you've
got a very polite and good answer.

Give details or attach a VI at least ...

p.s.: are you from Caracal ? 🙂

"vlad" wrote in message
news:506500000008000000AD2F0000-1004225886000@exchange.ni.com...
> How can i get the x value of the normal graph.
0 Kudos
Message 2 of 11
(4,006 Views)
Vladimir,

I think the best graph for this purposes is the XY graph, but actually the graph you are going to use is going to depend in which kind of data are you plotting so you may better have a decision on which kind of data you are going to be handling, then you decide which graph is best for this purposes and then we can try to work in to see how to get the Y and X points from it. Also it seems a little confuse for me to know why would you like to get this values out of a graph if for a first instance you have to input this values to it, so you don't have to go through getting values from a graph if you already have them before going into it, makes sense?

However, I attached here an example with an XY graph, it calculates 100 points of a sine wave,
plots it and then it gets the data from the graph in two separate arrays one for the Y values and one for the X values, look for more details inside the example.

Good luck!....

Nestor Sanchez
Applications Engineer
National Instruments
Nestor
Message 3 of 11
(4,006 Views)
Thanks man, but i think the file is in 6.0 format. I am runing 5.1. Is there is a way to get it in 5.1
Thanks again.
0 Kudos
Message 4 of 11
(4,006 Views)
I saw that you have problems opening the VI posted by Nestor. Here are screen captures containing the block diagram and front panel (because I cannot convert it to 5.1 for you (Property node incompatibility)). Just try to do it the same way.
Good luck!
Download All
Message 5 of 11
(4,006 Views)
Thanks man.
0 Kudos
Message 6 of 11
(4,006 Views)
Man i think that in 5.1 the graphXY does not have a property node.
0 Kudos
Message 7 of 11
(4,006 Views)
Vlad,

I apologize for not getting back with the VI saved in 5.1, I'm not in the office these days. But I read your comment on the property node missing in 5.1, well, in 5.1 there were no property nodes, they are called Attribute nodes, but are similar. Right-click over the graph icon in the block diagram and select Create >> Attribute Node. Thanks to the previous enthusiast who helped with the screen shots, we really appreciate this kind of help.

Vlad if you are interested in getting deep knowledge of LabVIEW there are a lot of good books in the market or you can also check our courses page at our Training homepage.

Good luck!...

Nestor Sanchez
Applications Engineer
Na
tional Instruments
Nestor
0 Kudos
Message 8 of 11
(4,006 Views)
No problem man thanks for you help.
0 Kudos
Message 9 of 11
(4,006 Views)
What select item should i use in Atribute node since there is no "Value" selection in there?
Thanks
0 Kudos
Message 10 of 11
(4,006 Views)