LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array of cluster label

I have an array of clusters that are PID parameters for the NI motion card (one for each axis).
 
I would like to change the label for the array based on the cluster (index) that is being displayed.
 
When I try to do this, I get the error
 
Error 1073 occurred at Property Node (arg 1) in TuneNew.vi
 
Possible reason(s):
LabVIEW:  This property is writable only when the VI is in edit mode, or this method is available only when the VI is in edit mode.
 
How do I change the label?
Is it possible, or do I need to use a workaround of putting up a text string and changing that?
 
Thanks in advance
 
 
 
0 Kudos
Message 1 of 6
(3,295 Views)

Hi jspaarg,

      You only need to tweek your code a bit to make this work!

Instead of displaying the Array label, you want to hide the label, but display the "Caption".  The caption can be changed.Smiley Happy

cheers
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 2 of 6
(3,280 Views)

Thanks!


Worked perfectly for exactly what I wanted.

I haven't tried too much yet, but the other problem that I am having is that I am trying to change the label on the Y Axis of a waveform graph.

It says "Amplitude" by default, and I can't seem to change it.  The only thing that I have tried is a property node -> YScale.UnitLabel.Text.

 

Any other ideas.

All help is appreciated.

 

0 Kudos
Message 3 of 6
(3,265 Views)

Hi,

If you wish to change the label programmatically (during runtime), choose YScale.NameLbl.Text from the graph property node.  However, if you want to do it during edit time, you can simply click on the label itself, and edit it using the "edit text" tool.

Regards,

AG

 

Message 4 of 6
(3,249 Views)

Thanks, NameLbl is exactly what I needed.

I need to change programatically because I use the same graph for different measurements based on other user selections.

Now all I need to do is find out what UnitLabel changes.

 

 

0 Kudos
Message 5 of 6
(3,242 Views)

No Problem.  Whenever you need to find out about a certain property (or anything else as a matter of fact) just Open Context Help (Ctrl+H) and hover over the desired object.  The explanation will appear in the context help window, and will refer you to more help pages if those are necessary.

In the unit label case: "You can associate physical units of measure, such as degrees Fahrenheit or kilometers/second, with any numeric control or indicator that has floating-point representation."

Best of luck!

AG

0 Kudos
Message 6 of 6
(3,222 Views)