LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
JackDunaway

Add Line Width and Line Style to Cursor List Property

Status: New

This LV typedef for the Waveform Graph property Cursor List is missing Line Width and Line Style! This is probably a solution to the mystery behind another post Show Attributes Selections I made earlier today. In order to completely define our Cursor List properly with one Property Node, those two elements must be part of this public typedef.

 

CursorListProperty.png

4 Comments
JackDunaway
Trusted Enthusiast
Same for the Annotations List property.
JackDunaway
Trusted Enthusiast

As another note, Line Style and Line Width can be set programatically, but each adjustment requires setting Active Cursor then the property. In other words, to set the Line Width and Line Style for x number of cursors, I must make 3x property node calls.

 

But you can't even set these two properties programmatically on Annotations.

JackDunaway
Trusted Enthusiast

Another comment: I would prefer a typedef on the cluster, rather than a typedef on the array of that cluster. I have found it a better programming practice to not typedef an array, but instead the array type.

 

For instance, here's the current method. The typedef'd array is on top, and I dynamically build each annotation, then Auto-Index them out of the loop and into the Annotation List property. I have two problems: I need to index the typedef to get a single element as the basis each annotation, and I have a coercion dot on the Property Node because the array is not typedef'd anymore:

 

AnnotationArrayTypedef.png

 

If the "Annotation" cluster were typedef'd rather than the "Annotation List" array of clusters, the code would be cleaner:

 

AnnotationClusterTypedef.png

 

The reason I bring this up is important: it is the segway into the new typedef. The old Annotation List (and Cursor List) array typedefs should be held onto for a year or two then deprecated, and the new typedef'd cluster should be phased in.

BYeske
Member

Ok, So after finding out for myself that the annotations could not be programmatically Set for the Line width, I was very disappointed.   It kinda seems like a bug to not have this feature in the property list.  Now after working with annotations, and not being able to set the line width, I have to figure a work around.

Ben Yeske