LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

use graph cursors to highlight an area

It can be an easy question, or a difficult one, I don't know:

is there any cursor property (i.e. fill to left, to right, to to, to bottom) that can be used to fill some graph areas?

I've been trying to have the same behavior like the graph in SignalExpress (highlight an area with blue color) - see attachment

 

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 1 of 5
(2,902 Views)

It is not straight forward and will require code to implement. What can be done is to use two additional plots to work from where you can set one to fill above and the other to fill below.

 

The two added plots would consist of the same data as the plot in question but only for the time period of interest. All value before and after should be "NaN" (not a number so that those points do not plot ant points).

 

Readjust the data sets in those two plots any time the cursors move.

 

I hope that helps,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 5
(2,893 Views)

This workaround seems OK, but it requires too much code...

I think that NI used a smarter way in SignalExpress...

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 3 of 5
(2,889 Views)

@vix wrote:

This workaround seems OK, but it requires too much code...

I think that NI used a smarter way in SignalExpress...


 

I watch for better solutions.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 5
(2,887 Views)

Has someone from NI some ideas that require less code?

Vix
-------------------------------------------
In claris non fit interpretatio

-------------------------------------------
Using LV from 7
Using LW/CVI from 6.0
0 Kudos
Message 5 of 5
(2,855 Views)