02-26-2010 01:36 PM
Does anybody know what are the risks(if any) of setting the values of a control of a vi programmatically from a different vi?
I'll appreciate the help. Thank you
02-26-2010 01:57 PM - edited 02-26-2010 01:58 PM
1) race conditions - If the VI is itself is writting to that control, that last writter wins.
2) Use value Signalling if the control is read by an Event struture.
3) User Interface is a bottle-neck
4) Data buffers are copied.
I'm sure there are more. Of cocurse if you have access to the source code for those, You can investigate both of those issues.
Ben
02-26-2010 02:48 PM
02-27-2010 01:56 AM
Hi!
There can be no risk when you control all the components of the whole program. In other words, it's o'kay if you're the only who writes the code .
Just keep in mind all the things Ben have mentioned.
And, by the way, setting controls programmatically is what object-oriented programming is about , so just do it!
Enjoy!