This morning I ran into an unexpected (for me) limitation of XControls. If you send data too rapidly to the ControlTerminal of an instance of an XControl, some of it (sometimes most of it) won't get sent. Apparently if you send data to an XControl while it's still processing the previous data, the new data will be discarded. I did find a workaround though: If you write to the Value property of the XControl, data will always be passed (I suspect that this is because a property node can wait, but a ControlTerminal can't). Attached is a Progress Bar XControl; it's supposed to advance the bar every time something is written to it (but it doesn't work correctly of you send data too fast). My kludgy solution is to have it put up an annoying warning if you run a VI with Progress Bar's ControlTerminal wired to anything. I would appreciate it if anyone could think of a cleaner solution.
↧