LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to a string control in a cluster of latch action boolean controls

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.

 

ScreenHunter_07 Apr. 27 19.57.jpgScreenHunter_06 Apr. 27 19.57.jpg

 

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? 

 

ScreenHunter_08 Apr. 27 20.02.jpg

 

 

0 Kudos
Message 1 of 2
(2,786 Views)

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.

 

latchInCluster.JPG

 

Hope it help you a bit 😄

 

Sletten

Message 2 of 2
(2,760 Views)