LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to have XY Graph Interpret Multiple Plots From a While Loop

Solved!
Go to solution

Never mind. I found the version conversion board!!

0 Kudos
Message 11 of 13
(938 Views)

Hi everyone
i'm new to Labview and trying to plot multiple points on XY graph. vi program i've tried to create is attached. what i want is to count on button press and plot a point in format of (count,amplitude) which are on X and Y axis,respectively, just like the second part of program that plots point of two random numbers correctly. problem is the program only shows 2 point, one is (0,0) which I used to initialize an array, and second is final values of count and amplitude.
Hope somebody can help me to solve this problem.
Thank you

0 Kudos
Message 12 of 13
(855 Views)

Hi behnam,

 

problem is the program only shows 2 point, one is (0,0) which I used to initialize an array, and second is final values of count and amplitude.

That's how you programmed it!

In each iteration you initialize the array again - and then you wonder why you cannot store values from previous iterations?

You need to stare the array - which is done using shift registers…

 

And when you use an event structure you should also have an event for your stop button!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 13
(837 Views)