LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically plot multiple annotations (points) on waveform graph

Solved!
Go to solution

Using: LabVIEW 2011

 

I have a VI that displays a graph of the time-domain signal from an accelerometer, and a second graph that displays the FFT of that signal. I want a button that places an annotation (a point labelled with incremental values) at the peak of the FFT signal each time the button is pressed, and for each annotation to remain on the graph (The experimental rig is an unbalanced rotor with variable speed, so I want to plot the variation in peak as the rotor speed increases).

 

So far I have mananged to plot points with incremental values, but each time I click my 'plot' button* the previous annotation disappears (i.e. only one remains on the graph at a time), and I just can't figure out how to correct that. I have attached my VI, I feel I must be close but any further help would be appreciated.

 

 

* Which is currently 'latch until released' and has to be held down for one complete iteration of the VI. If I can get the rest working I will fix this later.

 

 

FFT Peak Plot 1.jpg

 

FFT Peak Plot 2.jpg

0 Kudos
Message 1 of 4
(3,241 Views)

Anyone?

0 Kudos
Message 2 of 4
(3,190 Views)
Solution
Accepted by topic author zaq

Hi zaq,

 

what happens when you use BuildArray instead of ReplaceArraySubset in the case structure?

I guess you want to append new annotations instead of replacing the one you have…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(3,178 Views)

Ah, I knew it must have been so simple but it's always the thing you don't think of! Thanks very much.

0 Kudos
Message 4 of 4
(3,128 Views)