From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Design Pattern - Many Cast (trying multiple typecasts)

You ALL should find this very useful in the scripting world, where we so often get generic data types and need to attempt multiple casts to specific types to execute specific code

http://lavag.org/topic/13061-try-multiple-type-casts/#entry77999

I look forward to your feedback

0 Kudos
Message 1 of 2
(3,455 Views)

Recently I have tried a nugget of "adaptive save restore".

http://forums.ni.com/t5/LabVIEW/Nugget-Using-control-references/m-p/570756?query.id=1430593

This nugget also uses a similar approach.

Probably the design pattern of many cast will be applicable to lots of applications.

0 Kudos
Message 2 of 2
(2,590 Views)