TheNovice Posted December 20, 2018 Share Posted December 20, 2018 Hi, Is there any way we can Thaw and Freeze graph using code. Eg.: component.graph.Freeze() and component.graph.Thaw() Thanks. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted December 20, 2018 Share Posted December 20, 2018 Yes, but it is a variable not a function: component.myGraph.YAxisFrozen = 0 will unfreeze the Y axis. Set to 1 to freeze it. There is a corresponding X version. Quote Link to comment Share on other sites More sharing options...
TheNovice Posted December 20, 2018 Author Share Posted December 20, 2018 Perfect, Thanks for the quick reply. Quote Link to comment Share on other sites More sharing options...
Eliosito Posted May 11, 2020 Share Posted May 11, 2020 Hello, I tried to use this funtion but I don´t know where I use a Quick Sequence but don´t work and I use a Sequience but doesen´t work too I create a Vchannel. While (1) If (v.Grafico1 == 0) (component.mygraph_1.YAxisFrozen=0) else (component.mygraph_1.YAxisFrozen = 1) Endif EndWhile Can healp me? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted May 11, 2020 Share Posted May 11, 2020 You can't put the assignment in parenthesis, so: (component.mygraph_1.YAxisFrozen=0) is invalid. The correct syntax is: component.mygraph_1.YAxisFrozen=0 Also note that you have an infinite while() loop with no delay. I would strongly suggest adding a delay(1) or even delay(0.1) before the endwhile. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.