Sign in to follow this  
opticaldynamics

variable value components

Recommended Posts

Hi,

I am using a variable value component to set four global variables used in a sequence. For the expression, I put in the variable name. Action is SET TO, and the channel is the variable name. WHenever I close out of the program and get back in, the variable values are crossed out. WHen I click on them to change them, it won't accept the value until I start the sequence, get the error that parameters are empty (because I didn't put anything in for the global variables), and finally stop the sequence. ONce it is stopped, the red x's dissapear and I can change the values. This isn't a big deal, but is there a way to make this better?

Thanks

Share this post


Link to post
Share on other sites

DAQFactory doesn't assume anything (and shouldn't), so it doesn't assume what your initial values should be. So you either need to initialize the variables when you declare them (which you should do in an Auto-Start Sequence), or use a registry variable to persist across closing DF. Make sure and read about the limitations of registry variables though...

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
Sign in to follow this