05-16-2025 03:31 AM
I have a simple problem with multiple y axis on a waveform char. I will post the screenshot of the program here.
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.
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.
Solved! Go to Solution.
05-16-2025 03:42 AM - edited 05-16-2025 03:43 AM
05-16-2025 04:56 AM
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.
05-16-2025 05:35 AM
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?