Hello Neil -
Provided you can isolate when to enable this button/user interaction so that you are editing the globals of a valid file, actually changing the value should not be too difficult. For example a quick and dirty approach might be something like:
Dim inc
inc = mCurrentSeqFile.FileGlobalsDefaultValues.GetValNumber("myVal", 0)
'display current val via some textbox
incDisplay.Text = inc
'set new val mCurrentSeqFile.FileGlobalsDefaultValues.SetValNumber "myVal", 0, (inc + 1)
Where FileGlobals.myVal is the variable I am incrementing once per button click event.
The one thing to remember is that the changes you make to this variable won't be saved once execution is finished, so I'm assuming that for every run of the exe
cution you want to be able to start from some known default. Let me know if this answers your question.
--Regards,
Elaine R.
National Instruments
http://www.ni.com/support