LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Method (property?) of saving all plot attributes... line width, color, etc

I'm trying to create and recall configration files for plots. Attributes like line width, which plots are visible, line color, etc. There doesn't seem to be a property for all attributes of the plots on a graph, even a property for all the attributes of a single plot. I basically want a property that's a cluster or array of all the items in the right-most menu in the attached image.

 

Is there an easier way to extract this information than creating a property node with an individual line for each attribute?

Xander Cesari
Automotive/Internal Combustion Test Engineer
CLAD certified, mainly focused on data acquisition
Been LabVIEWing for a few years, still a lot to learn
0 Kudos
Message 1 of 9
(4,104 Views)

I think that's your only option. This isn't too hard though.

 

I would suggest the following steps:

  1. Create property node for the top property you want.
  2. Drag down the property node and it should auto-populate all of the properties down one by one.
  3. Drop a Build Cluster node and drag it down so it has as many inputs as the property node, or more.
  4. Highlight both the property node and the bundle
  5. Ctrl+Space, then Ctrl+Shift+W
  6. Repeat for the reading part too.
  7. Should result in something like this:    (Edit: it looks like the error cluster got pulled and written to the second input on the bundle, so you'll just have to manually fix that.

Bundle.PNG

You may or may not know about the quick-drop shortcutsalready, but I posted this detailed set of instructions here in case others in the future are looking for a similar solution.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 2 of 9
(4,082 Views)

James,

 

I forgot that it auto populates in order so that does make it a bit easier. Guess I'll just go ahead with that. The frustrating thing is that this function exists in the Annotation feature! Maybe a feature for future versions of LV.

 

annotation list.jpg

Xander Cesari
Automotive/Internal Combustion Test Engineer
CLAD certified, mainly focused on data acquisition
Been LabVIEWing for a few years, still a lot to learn
Message 3 of 9
(4,070 Views)

Xander,

 

Maybe somebody else will chime in with more information, but I don't think NI spent any time on this feature because it's not a common requirement.

 

Don't forget you will have to separate out the property node parts that are plot specific and create an array of each plot's info after setting the "Active Plot" value.

 

Good luck!

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 9
(4,061 Views)

When this question has been asked before, others have recommended the Property Saver from Konstantin Shifersteyn: http://www.kshif.com/lv/index.html

I have no experience with it, but it's free and the source is provided, so it might be worth a look to see if it will save you some time.

0 Kudos
Message 5 of 9
(4,044 Views)

I'll check that out Nathan. And I apologize if this is a common question, I couldn't find it in search.

Xander Cesari
Automotive/Internal Combustion Test Engineer
CLAD certified, mainly focused on data acquisition
Been LabVIEWing for a few years, still a lot to learn
0 Kudos
Message 6 of 9
(4,040 Views)

I agree that it would be great to have a "plot list" property, similar to the current "cursor list" and "annotation list".

 

(This might also fix this problem, for example. :D)

 

I recommend that you post this as an idea in the LabVIEW idea exchange.

0 Kudos
Message 7 of 9
(4,029 Views)

Ah yes, I've run into that issue today as well! Good idea, I suppose I could. Feels a bit odd to be suggesting LV features when I know how to use so few of them though.

Xander Cesari
Automotive/Internal Combustion Test Engineer
CLAD certified, mainly focused on data acquisition
Been LabVIEWing for a few years, still a lot to learn
0 Kudos
Message 8 of 9
(4,017 Views)
Something else that might make things a bit easier is to think about what properties you really need to save. Especially with graphs, there are a lot of very esoteric properties that are very rarely needed or used.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 9 of 9
(3,986 Views)