LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Block diagram for multiple text boxes

Thanks RavensFan.  So I would wire the front panel button to the top input connector.  But what would I wire to the other input connector?

0 Kudos
Message 11 of 17
(942 Views)

Aalenox,

 

Actually, I do have other stuff in the main VI, although I could easily incorporate your approach into what I have now.  Ideally, I'd like to use a subVI if only because I think it would be useful for future projects.

 

Thank you, though, for taking the time to put together that example.  I didn't know you could combine references into an array like that.

0 Kudos
Message 12 of 17
(934 Views)

@dan.laks wrote:

  I didn't know you could combine references into an array like that.


As a general rule, if something has a wire out - you can toss it in to an array 🙂

0 Kudos
Message 13 of 17
(928 Views)

RavensFan,


Oh, I think I get it. The two inputs are the button itself and a reference to the button.  Is that correct?

0 Kudos
Message 14 of 17
(926 Views)
0 Kudos
Message 15 of 17
(924 Views)

@dan.laks wrote:

RavensFan,


Oh, I think I get it. The two inputs are the button itself and a reference to the button.  Is that correct?



Yes.  The reference on the button so that the subVI knows what control to work with for the property nodes.  I also set it to wire up the boolean directly to pass in the value.  Your VI had a value property node, which could have worked, but because of the latching action of the boolean, the data type for value was variant rather than a boolean.  So I figured it would be easier to just pass in the value rather than dealing with a conversion of the variant data type.

0 Kudos
Message 16 of 17
(919 Views)

Ah, I was wondering about the variant data type.  I didn't think it had to do with the type of button (latching vs non-latching).  Thanks for the explanation.

0 Kudos
Message 17 of 17
(916 Views)