Hi all,
one method of checking the default value is to take a copy of the control value as it has come in, and then perform a re-initialise to default method on the original control. You can then compare - if they're the same then it's a default (though it might be a coincidence that you wired a value into the sub.vi that matched - maybe it's something NI could add in a future release - a property of a control to say it got it's data elsewhere). This method makes sure that you're not going to run into a block diagram / front panel mismatch if you ever update the program (i.e. you set a control's default value, then you have to remember to change the constant on the block diagram too.
It's a little more cumbersome - I use a sub.vi to do the che
cking. Because the data isn't important, you can do the comparison based on the variant data.
The attached files are in LabVIEW 6.1.
Just my 2 cents worth.
S.
// it takes almost no time to rate an answer