05-21-2024 05:29 PM
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.
Solved! Go to Solution.
05-21-2024 05:50 PM
The best documentation on available attributes for the Set Waveform Attribute Function was on the NI help page for that function.
I tried NI_LineNames and NI_UnitDescription, but they didn't have any visible effect.
05-21-2024 09:44 PM
Of course you can always create your own attributes, but you need to unwrap them later.
05-22-2024 10:28 AM
That seems clean enough. I wish I would have made that leap - I certainly got close to it. Thanks.