LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot values continuously

Hello,

 

I want the values from the array to be plotted continuously until the program quits.

 

I tried with a while loop and did not work, as you may see in the code, I want to start at -30 then go to -10 until -80 and repeat again -10 to -80 until the operator quits the program. Thanks in advance for your reply. 

LabVIEW Intermediate I level!
Message 1 of 14
(4,084 Views)

Bebeto wrote:

 I want to start at -30 then go to -10 until -80 and repeat again -10 to -80 until the operator quits the program.


 

So why is the first array element zero? Maybe you want to delete that one. Otherwise, try something as follows.

 

 

 

(just drag the image to your block diagram and run it :D).

 

 

Message Edited by altenbach on 11-17-2009 09:22 AM
Message 2 of 14
(4,077 Views)

Hello Altenbach!

 

Thanks for your reply, I am having problems finding that waveform chart vi and also the first number I set it up to 0 since it does a funny slope when the zero is not present.

 

Can you please let me know where I can find the waveform chart, thanks. 

LabVIEW Intermediate I level!
0 Kudos
Message 3 of 14
(4,057 Views)
nevermind I found it, let me check it out
LabVIEW Intermediate I level!
0 Kudos
Message 4 of 14
(4,053 Views)

Hello Altenbach,

 

What will I need to do to display it on a xy graph or like I had it in my original code, with the Plot XY. I am also intereseted in showing the steps.

 

 

LabVIEW Intermediate I level!
0 Kudos
Message 5 of 14
(4,046 Views)
also after a certain cycle it goes back to 0,-30,-10 .... instead of just doing the 0,-30 at then beginning ...
LabVIEW Intermediate I level!
0 Kudos
Message 6 of 14
(4,042 Views)

For the sake of history, this started here.

 


Bebeto wrote:
What will I need to do to display it on a xy graph or like I had it in my original code, with the Plot XY. I am also intereseted in showing the steps.

In the final example that I showed you, the array of points is created as XY pairs. If you just connect the wire that goes to the Plot XY to an XY graph you get an XY graph with the steps. 

 

0 Kudos
Message 7 of 14
(4,031 Views)

Hello smercurio,

 

that is correct, however, I want to be able to plot the values over and over and display them over time also. In other words, that example does plot with the steps but it does not move nor repeat the values unless I write them in the array

LabVIEW Intermediate I level!
0 Kudos
Message 8 of 14
(4,009 Views)
Then it sounds like you want an XY Chart. This does not exist in LabVIEW, but you can make one with an internal buffer. The Express XY Graph uses an internal buffer, but it's got the annoying dynamic data input. Alternatively, you can take a look at the "XY Chart" example that ships with LabVIEW.
0 Kudos
Message 9 of 14
(3,974 Views)

Then in other words if I want to have a continuous graph I need to use a waveform chart and if I want to be able to plot with I need to use a Plot XY, but there is no such thing as a continuous graph that plots with steps?

 

 

LabVIEW Intermediate I level!
0 Kudos
Message 10 of 14
(3,948 Views)