LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mutiple Y axis on waveform chart problem

Solved!
Go to solution

I have a simple problem with multiple y axis on a waveform char. I will post the screenshot of the program here. 

govindsankar_1-1747383956370.png

As you can see I am giving values to it using random number generator. But the important thing is not that. The important thing is me trying to set the y axis plot name and ysale maximum and minimum for both plot 0 and plot 1. 

govindsankar_2-1747384103138.png

But as you can see from the picture only plot 1 is changed with my programing. Plot 0 remains the same as in the start. Why is that or how can I update plot 0 to have user defined ymax, ymin and name programmatically.I have also attached the program, just in case, but i doubt its needed, you get the whole thing from the pictures itself.  Thank you. 

 

0 Kudos
Message 1 of 4
(95 Views)
Solution
Accepted by govindsankar

Hi Govindsankar,

 

You forgot to set the active scale before changing the properties of the active scale!

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(85 Views)

I didnt forget, actually I didnt know about this. Even whatever I did, I did using googling and it didnt say about setting active scale. But your solution worked for my program. Thank you. But actually this was done to make corrections to a bigger program with actor framework and there it is still not working. Not sure why. But anyway, I will try something around, and if i cant find the solution I will get back to you. There I am actually creating a method VI for the actor and the VI contains the reference to the waveform by unbundling the actor and using property node i set the properties like you said. And then I create a message out of it and run it using the actors self enqueuer. But somehow its not working. I know the data I have given is not enough. But as I said I will work on it and try to find where I went wrong and if i cant find it, i will come back here on that. Anyway thank you very much for this. 

0 Kudos
Message 3 of 4
(51 Views)

Hi Govindsankar,

 


@govindsankar wrote:

I didnt forget, actually I didnt know about this.


So you did know you need to set the ActivePlot before changing properties for the plots - but you didn't know you need to set the ActiveScale before changing its properties?

Best regards,
GerdW


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