03-13-2009 11:51 AM
03-14-2009 07:08 AM
Hello Marc,
I studied your XControl, and not everything is as it should be but some things are noticable:
A the event is correctly registered, you notice this because the FP of the Vi is locked
B You can prevent the locking by right clicking on the 'Register' node and deselect 'Lock fp while processing'
C Somehow the event structure is not triggered, I'll need another look at this but haven't resolved that.
Ton
03-16-2009 05:50 PM
Hello J-M,
I have experienced the same behavior that you have described. I don't have a concrete answer for you at this time, but I am still looking at the program.
03-18-2009 09:51 AM
03-20-2009 02:22 PM - edited 03-20-2009 02:26 PM
Hello J-M,
I think I figured out what was causing the hang in LabVIEW when you moved the cursor. You need to put an Unregister for Events at the output of your Event Structure in the Facade of your Xcontrol. After I did this LabVIEW didn't hang. The values didn't update in your cluster but the hang didn't occur. You might need to do some more coding the case for "Mouse Up".
Let me know if this helps
03-20-2009 03:02 PM
Thanks Jon
I will try this modification during the weekend.
Jean-Marc
03-21-2009 07:55 AM
Jon S. wrote:Hello J-M,
I think I figured out what was causing the hang in LabVIEW when you moved the cursor. You need to put an Unregister for Events at the output of your Event Structure in the Facade of your Xcontrol. After I did this LabVIEW didn't hang. The values didn't update in your cluster but the hang didn't occur. You might need to do some more coding the case for "Mouse Up".
This actually is bad advice.
What it does is unregister the event refnum every time the VI is run, this means that the event only is registered during execution of the XControl.
The fact that the FP gets locked means that there is a valid registration that has the 'Lock FP during processing'==True.
For dynamic events you need to right click on the registration node and deselect that option.
What might work is setting the timeout of the event node to -1 and not stop the while loop. However I am not sure what happens in these cases.
Ton