LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop a while cicle at a graphic's certain axe value ?

Good evening y'all.

I have an 1D array of points that I've plotted and the graph has as axes x= time, y=amplitude.

I would like to stop a while cicle when x= certain value. 

I'm not able to find a function which allows me to separate/headline x from the graph and do the comparison with de "=" comparator.

any suggestions? Thank you in advance

0 Kudos
Message 1 of 4
(842 Views)

Are you trying to say "Cycle" or "Circle"?  "cicle" is not a word.

 

Either way, it sounds like you actually mean a "While loop", is this correct?

 

I also don't know what you mean by "headline".

 

Are you looking to stop at a certain time value (like, after 1 minute) or after a certain amount of data points?

 

Can you post the VI that you have so far?  Maybe that will help make sense of it.

0 Kudos
Message 2 of 4
(820 Views)

When you attach your code, we can easily "see" what you are doing, even if you cannot explain it using proper LabVIEW vocabulary.  For example, LabVIEW has both charts and graphs.  Charts don't have "x components" per se, rather they are typically plots of sampled data, often from a DAQ device which hands you "samples" of, say, 1000 points acquired at 1 kHz.  Here the "X axis" is really "time", and you often don't plot it a point at a time.  Of course, if you are plotting a point at a time, and you know the spacing between the points, you can simply accumulate the evolving x-component and stop the While loop when X >= max X.

 

We look forward to seeing your code.  Please make sure you attach at least a LabVIEW .vi file that shows the While Loop, the graph/chart (whichever it is), and gives us some clue how the data points are being generated (or acquired).

 

Bob Schor

0 Kudos
Message 3 of 4
(785 Views)

A graph is a passive indicator and has no control over the data it receives. You need to do the math upstream with the data in the wire.

 

Once you attach your VI and explain the requirements in detail, we can give more specific advice.

0 Kudos
Message 4 of 4
(769 Views)