11-18-2008 12:45 AM
Hi,
i would like to ask you about the graph with two inputs
Normally, if i just give one input, they generate the graph with this input(y) vs time(x).
But now i would like to get the graph with my two inputs in x axis and y axis .
i want to control both of two axis. How could i do for it ?
i attached the file that i try to use "Build XY graph" to control both x and y axis with random number .
It can run but i don't know how come the graph show nothing. .
Actually , it have to show something like wavefrom continuously. am i right?
Could you tell me a way to solve it ?
>>>
what i want to get is ..
in Graph,
for x axis , ditance (always increases)
for y axis , vibration (vary)
>>>
Thank you so much for your time . I am looking forward your kindly reply.
With Respect,
Su
11-18-2008 01:42 AM
Hi Su,
you don´t need the express vi´s. You can use a bundle function to connect two array to your xy graph. One array for x and the other one for y.
Hope it helps.
Mike
11-18-2008 01:57 AM
NI9233 wrote:It can run but i don't know how come the graph show nothing. .
Actually , it have to show something like wavefrom continuously. am i right?
Could you tell me a way to solve it ?
RIght-click the"Built XY graph" express VI and uncheck "clear data on each call". Without that, it will only show one point, but since you graph is configured to only show lines, it cannot show the data.
(You know, we have a +1 primitive that could replace your formula node 🐵
Of course as long as the x values are equally spaced, you only need a waveform graph. 🙂
11-18-2008 10:20 PM
Hi Mike,
i don't get what you mean ? Could you show me as VI to understand clearly ?
Thank you so much. I am looking forward your kindly reply.
With Respect,
Su
11-19-2008 08:15 PM - edited 11-19-2008 08:19 PM
Hi NI9233,
Mind me to interrupt, I am just helping Mike to explain what he meant to you, refer to the graph:
Picture 1:
Double click on Build XY Graph, uncheck the clear data on each call
Picture 2 and 3:
Change your formula node into +1 Basic Function in Functions Pallette.
Hope that helps!
PS: I am sorry for the size of the image, seems I made a mistakes when I saved the picture.
Sincerely,
Krisna Wisnu
11-19-2008 08:34 PM - edited 11-19-2008 08:34 PM
Hi,
I think I missunderstood the questions. I am sorry for that, here I tried to explains what Mike is trying to say, apparently, my previous post is for altenbach comment.
Hope it helps!
Sincerely,
Krisna Wisnu