04-27-2011 07:00 AM
I want to write "You enter the wrong value" to a string control inside a cluster with latch action boolean controls . I would want to write to the local variable, refer to the vi attached, however the latch action of the boolean controls would prevent me from doing so.
I can write to the property node of the string control, however CLD exam guildline say no no!. Add to the trouble, the writing of the string control occurs not in the initialization phase but the continous loop, so I can't cheat a little by writing to the control's property node only in the initialization phase like other people.
Is there some way to bypass this writing to control property node?
04-29-2011 04:24 AM - edited 04-29-2011 04:26 AM
Hi There
I have been fideling a bit with a solution (in LW 2010) to what you had in mind, but I can not see a way around the property node usage when to have latched operation on your boolean control. However in my opinion the reason that the CLD guidelines frown on property usage is that you need to be very mindful when using them as they tend to slow down your application loop time. The way you could do it is to use the point by point subVI called boolean crossing to allow the property node to execute once. I have done this various times and it does not slow down the application.
Hope it help you a bit 😄
Sletten