Could that be that when you press down the slider there is an event occurred that cause you to execute other states in the state machine, so that it never gets to the "call by ref" case in your state machine until you release the mouse? Just guessing... Irene
> ----- Original Message ----- > From: PJ M > To: LABVIEW INFO > Sent: Monday, January 26, 2004 12:15 PM > Subject: [A] Call by Ref & Open VI Ref Question > > > Hi everyone, > > I have a main VI that call a SubVI containing a call > by reference. > The call by ref pass some parameters to the target > VI. > One of the parameter is from a control on the main > VI (UI). As long as I dont hold the control (a > slider), everything is fine. If I do hold the > control, the call by reference does not execute > until I release the mouse (to be more specific the > Open VI reference does not execute). It would not be > a problem if the call by reference was not in a > state machine, (and expected to be called several > time while the user hold the control), the > consequence is that my VI execute only once with the > first value from the control which is always never > the one when the user release the mouse. It might > very well be a know behavior (but until now it has > never been an issue for me). Does it happen because > my SubVI is in the UI thread (because of the call by > ref ? )? Is there a way to prevent this from > happenning (or do I have to redesign my VI around > that behavior ?)? > > Thanks > > PJM > > > -------------------------------------------------------------------------------- > Do you Yahoo!? > Yahoo! SiteBuilder - Free web site building tool. > Try it! ===== Irene He [EMAIL PROTECTED] www.hytekautomation.com www.geocities.com/irene_he
