Our online shopping is experiencing intermittent service disruptions.
Support teams are actively working on the resolution.
Our online shopping is experiencing intermittent service disruptions.
Support teams are actively working on the resolution.
03-14-2024 06:38 PM
Hi. Im new to Labview. Im trying to get a waveform graph to register info im feeding it but for some reason, I cant get anything to show on the graph. I have to keep it on while loop. Im sure its an easy solution but ive spent hours with no avail. Any info welcome please
03-14-2024 06:42 PM - edited 03-14-2024 06:47 PM
Dataflow dictates that no data can leave the loop until the loop has completed. If you need to display the data, your graph terminal belongs inside the loop. You can built your data in a shift register or feedback node starting with an empty array. (Ultimately, you'll run out of memory if you let it grow forever).
03-14-2024 08:20 PM
Do you understand the difference between a Waveform Chart and a Waveform Graph?
A Chart assumes that single points (plotted as Y) arrive at uniformly-spaced time, represented as evenly-spaced X distances, which is why Charts are usually used to show (like an oscilloscope) data as it is evolving with time (which is why it often is placed inside a While Loop so it "sees" the data points as they are being gathered).
A Graph, on the other hand, plots whatever 2-D X/Y data you give it. While if you choose to provide only "Y" data, LabVIEW will assume that the X values are evenly spaced, as would be the case if they represented "time samples".
I recommend that you create a "data generator" (say, the random-number generator) inside a While loop and wire the output into both a Chart and a Graph. I also recommend you put a 100 ms "Wait (ms)" function inside the loop so you can see the plots "evolve". The first thing you'll notice is that Charts can accept a scalar, while Graphs need an Array. Figure out how to build an Array inside the While loop and run this routine a few times (be sure to run it long enough that the plot "fills" the Chart and see how the Chart and Graph differ when this happens. Stop the While loop and run it again, and notice another difference between Charts and Graphs.
[This illustrates a great "Engineering" way to learn LabVIEW -- build a little circuit and see what it does. Hmm, almost makes you a "scientist", doing an experiment ...]
Bob Schor
03-15-2024 03:27 AM
You accidentally made Plot 0 invisible. Go to the graph properties and make it visible again:
03-17-2024 08:00 AM
Paolo. Thanks a million. Really easy but the time i spent was ridiculous. Really apricate it
03-17-2024 10:38 AM
@EDiddle wrote:
Paolo. Thanks a million. Really easy but the time i spent was ridiculous. Really apricate it
The main problem that the solution took longer than expected was one or more of the following:
Just some general comments. Good luck with your learning progress! 😄