LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Outputting multiple variable types from single output vi

Hello,

 

I am trying to make a vi that takes some inputs (they are not too relevant to my problem) and has a single output.

My problem is that I'd like the output variable type to be left unknown until runtime.

 

For example, the vi will decide appropriately when to output an integer, string or double variable type.

 

Furthermore, inside the vi, I need a way to select the appropriate variable type to send, hence I need a way to check the type of a variable (I don't really know how to do that either).

 

 

Can someone give me some advice?

 

Thanks

David

0 Kudos
Message 1 of 2
(2,319 Views)

Data types are determined at compile time.  You cannot have a run-time decision for a data type.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,318 Views)