01-13-2016 05:17 AM
Firstly I make a while loop with a certain condition to stop it. (my vi example is stop until a random number generator generate a 0)
Then, after every loop, I wanna create a waveform graph (like creating a random generated array with 10 elements)
Solved! Go to Solution.
01-13-2016 06:09 AM - edited 01-13-2016 06:09 AM
Hi ying,
there is no graph, array or waveform in your VI…
- Execution of program parts are ordered by DATAFLOW: when you want to execute something after your while loop you need to enforce dataflow.
- What's the problem with creating a new plot (or: new plot data) in each iteration of your (to be programmed) main loop?
01-13-2016 12:16 PM
Thanks for your replay!
if I change the case like this:
i want to create an array with 10 random generated elements inside a while loop, and the while loop will stop in certain condition.
if I wanna create a new line within the same waveform graph when every time finish a while loop, so how can I make it?
01-13-2016 12:23 PM
Hi ying,
if I wanna create a new line within the same waveform graph when every time finish a while loop, so how can I make it?
You need to add a new plot to your graph data. The context help of the graph shows you how you need to format the data!
(LabVIEW also comes with example VIs, there are some that explain charts and graphs.)
i want to create an array with 10 random generated elements inside a while loop, and the while loop will stop in certain condition.
Just do it!
01-13-2016 12:26 PM
Hi Ying88827,
I made you a VI, All the explanation are in comment.
Regards.
01-13-2016 12:30 PM
Thank you so much!
01-13-2016 12:31 PM
U're welcome