LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Type As Input Parameter

I want to create a VI that has an input wired to the 'data type' parameter of "Read From Binary File" along with the 'data' parameter wired to an output terminal.

How do I specify that the connector can be any type?

Also, how do I specify that the output terminal type must match the input terminal?
0 Kudos
Message 1 of 2
(2,265 Views)
You're asking for a polymorphic control. Unfortunately, one doesn't exist, although it's been requested as a LabVIEW feature before. A variant is the closest we've come. You can, instead, create polymorphic VIs. Essentially you create a version of the VI with each input that you want to support, and then create a polymorphic VI that is basically a shell for each of these VIs. In your regular VIs you place the polymorphic VI, and the one that most closely matches the wired value will be called. You can read more in the LabVIEW Help.
0 Kudos
Message 2 of 2
(2,257 Views)