LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically setting cursor line styles

Solved!
Go to solution

I'm trying to show door openings and closings on a graph using cursors. I'd like to have a dashed line for an opening and a solid line for the closing of the same color. I can draw the cursors of the same color easily enough by creating an array using the cursor properties (I could also use different colors for each, but that is less ideal). I don't see where line style or line width are options in those properties however. I did find this old post on the topic;

 

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-Line-Width-and-Line-Style-to-Cursor-List-Property...

 

In the 3rd post, he says it can be done but I'm too dense to understand what he is saying need to be done to make it work. Could anyone show me an example of what he means or explain another way to do this?

 

Thanks in advance. 

0 Kudos
Message 1 of 3
(3,064 Views)
Solution
Accepted by topic author SteveC_43

Hi Steve,

 

Jack suggested to first set the ActiveCursor, then set it's line style and width:

check.png

Repeat this for each cursor you want to manipulate.

(Sorry, I'm using German LabVIEW.)

Best regards,
GerdW


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

Ah. I'm an idiot. I wasn't thinking of the ActiveCursor as the graph property. I'll play around with that. For now, I'll mark this as solved.

 

Thanks as always GerdW!

0 Kudos
Message 3 of 3
(3,035 Views)