I want to use a button as the control one in the front panel and use it as indicator one,I mean that the same button can be used as the controlor and the indicator! How can I do? Please tell me experts!Thanks
If I understand correctly your question, you can do so: Make a control of your button. So you can press on it. In the diagram, create a local variable for this button. So you can modify the button value programatically.
Hi, You have to use "local variables" to read and write data to control. To create local variable you have to right click on the control node in the diagram and select Create->Local variable from pop-up menu. The new local variable corresponding to your control will appear. You can change this local variable to write or read mode by right clicking on it (select "Change to write/read). In write mode you can write data to the local, and in read mode you can read data from the local. The local variable is connected with the control on your front panel. So when you write data to the local variable - you write them to the control, and the same thing with reading.