10-13-2006 02:41 PM
10-13-2006 06:24 PM
Right click on the property node and select Change All to Write. The little black arrow on the right side will move to the left side, and you can send a value to it.
Labview does not allow local variables for latching switches. Right click on the boolean control and select Mechanical Action - one of the non-latch types, like Switch when Pressed. You will have to put code to make it False again once a user has clicked on it. Create a local variable of the control. Then you can wire a False constant to it. If you look at my examples, you will see that I do this at the beginning of the code to reset the button.
10-16-2006 09:59 AM
10-16-2006 11:03 AM
10-17-2006 09:44 AM
10-17-2006 10:53 AM - edited 10-17-2006 10:53 AM
Make an array of the 60 control/indicator labels. Put the code to find the reference in a For Loop. Wire the array of labels into the For Loop with indexing enabled. This will make the For loop execute as many times as there are elements in the array. Wire the reference found to the For Loop right edge with indexing enabled. Now you will have an array of all references to your controls. You can use Search Array to find the index number of a label in the label array, and use this index number to get the proper reference from the reference array for writing to a value node. See picture. Be sure to enable indexing only at places shown.

Message Edited by tbob on 10-17-2006 09:55 AM
10-17-2006 02:39 PM
10-17-2006 05:52 PM
You really need to learn how to use the Help files to find answers on how these functions work. I cannot take the time to continue to write your code for you, I have work to do also. But I will answer your questions this time:
Read Circle: This is an array constant, found on Array palette. Drop an empty array on block diagram. Then drop an empty string constant (found on String palette) into the Array constant (literally inside the box). Expand the array by dragging the outermost handles (point to lower edge, you will see the handles). Type in all your labels one at a time. Read the help files on Arrays and Array Constants.
Blue Circle: Whenever you need to reference a control/indicator, use the Search 1D array and wire in the label name. They all can be placed anywhere you need to access the controls/indicators. Notice the output is a numeric. It is the index number of the position of this label inside the array of labels created in the red circle. This index is always wired into the Index Array function so you can get the right reference (teal wire). The reference always wires to a property node (value). So for each subvi control/indicator you need to read or write to, you need a Search 1D Array, an Index Array, and a property node. Read help files on Array functions and Property Nodes.
Green Circle: This is a Variant to Data function. Put in a variant (Value property nodes of References are always a variant because labview doesn't know what data type to expect). Since you know what data type it is, wire a like data type into the top of this function. It doesn't matter what the value is, just as long as the data type is the same as the control/indicator type. For a boolean, wire in a True or False constant. For a string, wire in an empty string, etc... For an enum or a ring or such, create a constant where the actual control is located, cut and paste the constant to the top of the Variant to Data function. Read help files on Variant functions.
In each of these cases, you can get answers from the help files.