LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to increment array that contains two clusters whose visibility is controlled by a visible property node and selected by a radio button.

I cannot get a tab into an array. It just goes infront or behind the array. Also, I'm trying to put only one cluster into each tab. Such as you suggested. I'm also trying to do the following: if data is entered in either diode or transistor cluster and the usre goes back to it and want to change it from diode to transistor (or vice versa) they have to erase the data in the other cluster or when they select the new device it automatically erases the data in the other cluster (but only if a new device is selected).

Message Edited by rlg50 on 06-26-2007 10:46 AM

0 Kudos
Message 11 of 14
(921 Views)
I have edited the code some more trying to incorporate the disable functions, which I have gotten to work. I've went further in trying to disable the correct parameters and radio button if the user has data in the other clusters fields. If they have data in a transistor field (except 0), then that field is the only one that should be edited until there are only zeros entered into the fields. Take a look at the attached code. I cannot get it to let me change from transistor to diode. For some reason transistor is always selected. I would like for the default selection to be transistor though.

Message Edited by rlg50 on 06-26-2007 03:09 PM

0 Kudos
Message 12 of 14
(915 Views)
I think that your problem is that you are trying to set different properties to different elements of an array. This WILL NOT work! All elements of an array are identical except for their values. So once you select Transistor and disable Diode, you cannot select Diode in any element of the array.

Also using an OR function on a Double data type may produce unexpected results. Logical functions are well defined on integers, but fractional values may produce results which are difficult to interpret.

Back to your original issue: I think you will need a different structure for the user interface. I would suggest a Device type selector which will bring up the parameters appropriate to that device - not an array - just the parameter controls for one device. (I would use the Visible property rather than Enable). After the user sets the parameters, push a button called Enter to save the parameters into an array. You may want two arrays, one for transitors and another for diodes, or you could use your existing array of clusters.

Also consider using an event structure rather than looping continuously while waiting for the user to do something.

Lynn
0 Kudos
Message 13 of 14
(900 Views)
Here is an example of the modifications I suggested.

Lynn
0 Kudos
Message 14 of 14
(895 Views)