ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform YScale name

Solved!
Go to solution

I'm surprised I was able to log on - my last login was probably 10 years ago, which might tell you how often I program LabVIEW.

I am trying to pass a waveform graph in and out of sub VIs, while keeping the YScale name. I have set the Plot Name via the NI_ChannelName attribute, and that passes in and out of sub VIs along with the waveform data.

The only way I have found to set the YScale name is with a property node using the YScale.NameLbl.Text property. This does not pass in or out of a sub VI. I have had to send a refnum for the waveform graph into the VI where I am setting the YScale name. I want there to be a waveform attribute that sets the YScale name, but I haven't found one. Maybe the refnums and property nodes are the proper answer - it just feels clumsy to me.

Is there a way to set the YScale name and have it persistent through sub VIs, without using refnums and property nodes?

I am using LabVIEW 2010 - hopefully that doesn't inhibit troubleshooting too badly.

Attached is a very simplified example of what I want to do. Run the Waveform1.vi. I want the waveform in waveform2.vi to have the same YScale name.

Download All
0 Kudos
Message 1 of 4
(1,029 Views)

The best documentation on available attributes for the Set Waveform Attribute Function was on the NI help page for that function.

RogerK_0-1716331791581.png

I tried NI_LineNames and NI_UnitDescription, but they didn't have any visible effect.

0 Kudos
Message 2 of 4
(1,017 Views)
Solution
Accepted by topic author RogerK

Of course you can always create your own attributes, but you need to unwrap them later.

 

altenbach_0-1716345812605.png

 

0 Kudos
Message 3 of 4
(980 Views)

That seems clean enough. I wish I would have made that leap - I certainly got close to it. Thanks.

0 Kudos
Message 4 of 4
(955 Views)