LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically switch waveform chart Y-axis label

Solved!
Go to solution

Hello,

In my application, I'm receiving periodic single point data in string form inside an event structure. This string comprises 3 different parameters namely, pressure, temperature and frequency and I want to dynamically display only one of the parameters based on user selection at run time. I want the data or parameter selected by the user to appear as the waveform chart's y-axis label. The issue I'm having is that, upon user selection, the data changes to the selected parameter but the Y-axis label remains unchanged after the first parameter is displayed on the Y-axis label.

Subsequent user selections only change the data. I have included a section of the front panel and sections of the block diagram code. Any suggestions and recommendations will be appreciated. Thanks in advance!

Front panel

Set_wf_chart_label_4.png

Pressure

Set_wf_chart_label_1.png

Temperature

Set_wf_chart_label_2.png

Frequency

Set_wf_chart_label_3.png

 

0 Kudos
Message 1 of 5
(194 Views)
Solution
Accepted by topic author SolPS

Hi Sol,

 

in your image only one y scale is visible, so why do you want to set labels of 3 different scales?

 

And why is there so much duplicated code when only the label changes?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(165 Views)

Hello GerdW,

Thanks for your response. I took a second look following your comment and I have it working now. Thanks!

 

0 Kudos
Message 3 of 5
(149 Views)

Hi Sol,

 

one more comment:

NEVER delete the label of frontpanel elements, like your graph!

You can hide the label on the frontpanel, but should never do so in the block diagram…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(115 Views)

Hello GerdW,

I was trying to obscure information pertaining to my project before posting my question online but your point is well noted. Thanks again for your response. 

0 Kudos
Message 5 of 5
(96 Views)