TheNovice

Thaw and Freeze Graph using code

Recommended Posts

Hi,

Is there any way we can Thaw and Freeze graph using code.

Eg.: component.graph.Freeze() and component.graph.Thaw()

 

Thanks.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now