LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make items Invisible

I have an example to program to make items visible and invisble .
 
pls suggest is the method ok or is there any other simpler way to do it.
 
Thanks
0 Kudos
Message 1 of 21
(4,884 Views)
Hi Veeru,

in general your example is ok...

I would encourage you to put exactly same structures outside of loops or case structures, in your case the property nodes. The only difference in the two cases of your example is the math operation, so only this would end up inside the case. Also put some timing functions in (while) loops, even when only made for demonstration purposes!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 21
(4,878 Views)
Here is a slightly optimized version.
  • By putting the property nodes outside the case, you avoid to duplicate them.
  • Don't forget to put a delay into the loop to avoid a 100% CPU usage.

The most efficient way would be to use an event structure.

Message 3 of 21
(4,869 Views)

Thanks Gerdw

 

0 Kudos
Message 4 of 21
(4,868 Views)

Thanks JB

 

0 Kudos
Message 5 of 21
(4,863 Views)
Some minutes to modify the code and I have to notice that GerdW was faster than I. Let's appreciate the similarity of both answers !
0 Kudos
Message 6 of 21
(4,860 Views)
Some minutes to modify the code and I have to notice that GerdW was faster than I. Let's appreciate the similarity of both answers !
0 Kudos
Message 7 of 21
(4,859 Views)

Good Morning all

Another question in the same topic, I have the above program inside an Event structure, the last cluster remains open when i begin the program next time(i mean,if i had made a cluster visible at the 1st run and when i start the program next time the cluster still remains open) i tried to make all the clusters invisible when i start the program each time but i couldn't.

Thanks

 

0 Kudos
Message 8 of 21
(4,815 Views)

Hi Veeru,

one solution could be to hide the control at development time. Where are your problems to hide all elements at startup?

Mike



Message Edited by MikeS81 on 07-02-2008 09:43 AM
0 Kudos
Message 9 of 21
(4,813 Views)

Thanks Mike

I will try and see how it goes

0 Kudos
Message 10 of 21
(4,791 Views)