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

Link to comment
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...

Link to comment
Share on other sites

Archived

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