LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you update an intensity plot one element at a time?

I would like to use an intensity plot (or other control) to plot data collected from A/D channels. How do you get the Intensity plot to update one element at a time vs. row by row? Tips and suggestions greatly appreciated!
0 Kudos
Message 1 of 2
(2,590 Views)
> I would like to use an intensity plot (or other control) to plot data
> collected from A/D channels. How do you get the Intensity plot to
> update one element at a time vs. row by row? Tips and suggestions
> greatly appreciated!
>

You will need to use the intensity graph and keep the buffer yourself.
Init the data with background values and start filling then in using
Replace Array subset. Presumably you are in a loop. Recirculate the
data in a shift register adding new data each iteration and plotting the
array to the intensity graph.

Once you get to the horizontal edge, you need to decide if you split the
data to get rid of the first row and append a new background row to the
end making a strip chart, or do you clear the array and start over from

the initial edge again making a scope chart, or do you mod the index
with the buffer size and erase a row at a time in advance making a sweep
chart.

To update the scales, you don't have to change the data. Just write to
the Offset property each time you scroll and it will relabel the data
with 0 mapping to the offset value.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,590 Views)