Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

USE OF Type cast function ?

can any one explain the use of type cast function with help of example please i am not able to understand the explaination given in ni.com site

0 Kudos
Message 1 of 5
(6,378 Views)

LabVIEW provides a function called Type Cast, which allows data to pass through it unchanged while the type of the wire changes. Please refer to the given link which elaborates on the type cast function with required instances.


http://zone.ni.com/reference/en-XX/help/371361H-01/glang/type_cast/

 

In case of any clarifications needed, do revert.

Regards,

Sahil Singla
Applications Engineer | National Instruments

(Give Kudos to good Answers and Mark it as a Solution if your problem is Solved)
0 Kudos
Message 2 of 5
(6,257 Views)

Type cast pretty much does what Sahil indicated, it changes the data type without changing the data (to the best of its abilities). Converting between data in different structures and of different sizes can result in strange behavior but the concept is still the same. Was there a specific question about how it works?

Austin
Staff Software Engineer
NI
0 Kudos
Message 4 of 5
(3,613 Views)

I think this shed more light on this special function. Similarly recently I saw a really rare example. A Hello World obtained in a strange way, using the Type Cast function.

Download All
0 Kudos
Message 5 of 5
(3,575 Views)