My Variable Start With Zero Value


Recommended Posts

Hi

 

I use global value in my sequence. I use math conversion

but when I close the program and open again all is start from zero. I wante safe my last value. if start my global variable with ziro when I close the program and open again all variables start with zero. but if I do not use variable with zero I get this "message some variable was ampty"

 please help me

Link to comment
Share on other sites

You can use a registry variable, but the registry has become unreliable due to security changes in newer versions of Windows.  You can also create a file to persist your globals, but this requires some scripting.  A way I've seen people do, and have subsequently used myself sometimes is to create a Test channel with a history and Persist of 1.  Make the Test channel D to A, and give each one you create a unique channel #.  Then you can do:

 

myChannel = 4

 

and it will assign that value.  Note that doing it this way is slightly slower than a regular global, but unless you are using it in a loop it probably won't matter.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.