09-03-2023 09:36 AM
the waveform graph when acquire data moves the previous data towards right making whole data to display in reverse. i want to make the data display from left to right not right to left of display pane. can anyone help with this
09-03-2023 10:42 AM
As a first step, attach your VI. (preferably use "save for previous", 2020 or lower).
09-03-2023 10:44 AM
Please see the response I just made to your Post "XY Graph", where I try to explain to you the difference between a Graph and a Chart (you want to be using a Chart).
You should also (probably) learn what a "Waveform" means in LabVIEW -- it is a data-type that NI "invented" to simplify the storage of sampled data. I assume you know about Arrays in LabVIEW -- are you also familiar with the data type called a "Cluster"? It is a way of grouping (named) elements that can describe a single "organization" of data.
In particular, a Waveform Cluster has the following components: a TimeStamp (t0) representing the time of the first sample in the Waveform, the sampling interval (dt), expressed in seconds, a fixed-size Array (Y) of data, and an optional variant (attributes) you can use as you see fit.
Try this example (very very simple, to illustrate a simple point).
You should be able to re-create this for yourself. But it is also a LabVIEW Snippet, so if you open LabVIEW, right-click the image, and drag it to a blank Block Diagram, it should "populate" it with LabVIEW code. Some things to note: make the chart fairly wide -- you want to fit 1000 points in. Also, right-click the Chart (on the Block Diagram), choose Properties, go to Scales, and set the X-Axis to 0 Minimum and 1000 Maximum (otherwise it will use a default of 0 to 100, and you'll see the plot start "moving to the left" as it plots the latest 100 points).
Bob Schor