07-18-2018 10:38 AM
Hi all,
i have a problem with some controls and indicators i just click right and i press show control or indicator but when i run the VI they hide again .
Any help please
Thanks
07-18-2018 10:42 AM
This means there is something in your code that actively hides them (e.g. property nodes). Since you did not show us any code, we cannot tell. If you can't figure it out, attach your VI and tell us which controls are giving you trouble.
07-18-2018 10:43 AM
Please share the VI
07-26-2018 06:04 AM
Hi ,
sorry i can't share the VI it's confidential but i check my property nodes and it's visible for all controls so any other ideas please to this problem .
PS : i'm using these controls in a event case as value change
thanks
07-26-2018 10:54 AM - edited 07-26-2018 10:55 AM
In your picture, you are setting all these Visible properties to TRUE manually, which implies that you are setting them explicitly to FALSE somewhere else. I don't have a Magic 8-ball like some people here, but I'm willing to make a guess that sometimes that comparison is FALSE and stays that way so they never become visible again.
For all I know, the code that sets them to FALSE is inside the case structure, itself. But I'll never know, because you just uploaded a picture and not the VI.
07-26-2018 11:29 AM - edited 07-26-2018 11:30 AM
thanks for the response ,this is the subVI
07-26-2018 11:42 AM - edited 07-26-2018 11:45 AM
Thanks for showing us your code. It really helps! Unfortunately, I don't think there's anything really wrong with it programmatically. You should look at the various evaluations you use to determine which case fires for each case structure. Maybe one or more are incorrect, or maybe the incoming data to be evaluated is not what you are expecting.
It's not going to be easy. I wrestle with this kind of stuff from time to time, and there's no substitute for getting your hands dirty digging into the code. It seems that the code is pretty well organized, from what I can see, so hopefully it's not so daunting a task.
07-26-2018 11:57 AM
@ahmedkochbati92 wrote:
thanks for the response ,this is the subVI
Does that breakpoint fire?
Set a breakpoint on the entire VI so that you can watch it execute. If it is being invoked from someplace in your code that you do not expect...
Please note that when a VI hits a breakpoint the "Font Dialog Dropdown" turns into a call chain indicator that you can use to figure where the VI is being called from in the application.
Ben
07-26-2018 12:13 PM
@Ben wrote:
@ahmedkochbati92 wrote:
thanks for the response ,this is the subVI
Does that breakpoint fire?
Set a breakpoint on the entire VI so that you can watch it execute. If it is being invoked from someplace in your code that you do not expect...
Please note that when a VI hits a breakpoint the "Font Dialog Dropdown" turns into a call chain indicator that you can use to figure where the VI is being called from in the application.
Ben
Really!!? I never knew that!!! Thanks for the insight. 🙂
07-26-2018 12:18 PM - edited 07-26-2018 12:18 PM
? it posted to the wrong place