LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i control graph with two inputs?

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

 

0 Kudos
Message 1 of 6
(3,116 Views)

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

0 Kudos
Message 2 of 6
(3,107 Views)

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. 🙂

0 Kudos
Message 3 of 6
(3,104 Views)

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

0 Kudos
Message 4 of 6
(3,059 Views)

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

 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

Message Edited by Krisna Wisnu on 11-19-2008 08:19 PM
Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
Download All
0 Kudos
Message 5 of 6
(3,031 Views)

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.

 http://forums.ni.com/ni/attachments/ni/170/369842/1/Bundle.PNG

Hope it helps!
Sincerely,



Krisna Wisnu

Message Edited by Krisna Wisnu on 11-19-2008 08:34 PM
Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
0 Kudos
Message 6 of 6
(3,026 Views)