brainmort Posted December 12, 2010 Report Share Posted December 12, 2010 Hi, I'm trying to create an indicator via XControl, and I'm getting a huge rising delay between the indicator's reaction and the input. It seems to me that the XControl's events accumulate in some kind of an event queue and are handled one after another in parallel to all the other program code. So if the XControl refreshes slowly (and that is my case), the queue starts rising and so does the delay. The best solution in that case would be locking that queue size to some small value so that the indicator handles only those events it has time for. Other solution would be to make all the other code wait for the indicator to process all it's events, but that's an extremely bad plan up to me... I'd like to know if my surmise is correct and if it is possible to do what I've described, or by any other means remove the delay. Thanks in advance Quote Link to comment
Olivier Jourdan Posted December 13, 2010 Report Share Posted December 13, 2010 Hello, Have you read this post : ? However, I've never noticed refresh delay on XControl. Can you replace your XControl by an "simple" indicator and look at the behavior ? Is it the same or is thi fix the issue ? Regards Quote Link to comment
jgcode Posted December 13, 2010 Report Share Posted December 13, 2010 Have you read this post : http://lavag.org/top...9794#entry79794 ? As a followup to that topic - I have lodged this with NI Support and am still waiting to hear back. Quote Link to comment
brainmort Posted December 16, 2010 Author Report Share Posted December 16, 2010 The same XControl was created on two different computers. All the actions were strictly the same. One gives the delay, the other doesn't. It was tested on both computers. It's also notable that the vi files from those two XControls have different size, though seem identical when loaded. Magic. The only difference is the LabVIEW version: one is 8.5.0, the other 8.5.1. Quote Link to comment
Olivier Jourdan Posted December 17, 2010 Report Share Posted December 17, 2010 The one working right is the one done in 8.5.1 ? Quote Link to comment
brainmort Posted December 17, 2010 Author Report Share Posted December 17, 2010 Yes. I've looked through the change log for 8.5.1, and there is plenty of fixes connected to XControl. So, this is most likely a bug, and I just need to create the controls under 8.5.1 and then use it in 8.5. Or transfer to 8.5.1. Anyway, thanks for your concern! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.