05-13-2013 12:24 AM
I have 1 Led in Front Panel, when I click on that, it will change the state. This should not happen for me. How to disable this one. Here the property of Led should be Control not Indicator.
Thanks & Regards,
Harish G.
Solved! Go to Solution.
05-13-2013 12:35 AM
Can you post your VI in 2011 format. Its easy to give solution from there
05-13-2013 12:37 AM
In edit mode, you can change controls as well as indicators.
In run mode, only controls can be changed from the front panel, indicators cannot be operated.
(You can change a control into an indicator and vice versa in edit mode by right-clicking on the terminal. Overuse of local variables sometimes blurs the distinction between controls and indicators.
Your post is very confusing and it is not clear what you actually expect. Can you attach a small example VI that shows the problem?
05-13-2013 01:03 AM
Please see this. The Default Led Event is when u click on it. I t will change the state. I don't want that.
05-13-2013 01:35 AM
@HarishG wrote:
Please see this. The Default Led Event is when u click on it. I t will change the state. I don't want that.
You need to show us the code, not a picture of the front panel. Please attach the VI and explain how you operate it.
05-13-2013 01:40 AM
Then why you are using LED ?
05-13-2013 01:40 AM
As sir said, Please post your VI
05-13-2013 01:54 AM
Hi altenbach,
See i attached the VI file.
1. u hv to run TempVI, then click on boolen LED
2. Another window QuitVI will come, then press Quit to close.
3. Now the LED is changed the state of that. (if boolen LED is ON then it became OFF & vise versa when u click. I dont want this one The boolean LED should not change its state when u click).
Thanks & Regards,
Harish G.
05-13-2013 02:05 AM - edited 05-13-2013 02:07 AM
Your LED is a control. Make it an indicator instead (right-click the terminal...change to indicator).
Of course if it is an indicator you can no longer use a value change event. You could use a mouse down event instead.
Why is it a LED? In the simplest case you could just color the ON and OFF state the same dark green.... 🙂
05-13-2013 02:22 AM
I want Led only, it is acting as indicator, but it is control when we click on that, we go to another window, there we will see status of some things & we will come back.
Don't think too much, I want basic thing only, when we click ON LED should not change the state. How to do this?(LED should be Control).
Thanks & Regards,
Harish. G