06-19-2013 12:52 PM
I need help with with clusters. I have constucted a Vi that tells you how old you would be on other planets. The problem im haveing how to make my outputs into a cluster.
I have attactch the VI
06-19-2013 01:03 PM
I see you are already using the Unbundle By Name. Give a good look at the Bundle and the Bundle By Name functions.
06-19-2013 01:11 PM
I dont think im useing it right. im not 100% on how to use the function
06-19-2013 01:20 PM - edited 06-19-2013 01:21 PM
You are close.
To use the bundle by name you have to supply a template cluster at the middle terminal.
If you do not need/ want a template then just use bundle.
See examples:
http://digital.ni.com/public.nsf/allkb/3B95DA3AF77A609786256960005B8720
06-19-2013 01:46 PM - edited 06-19-2013 02:00 PM
There were code that could be moded for efficiency....
06-19-2013 02:04 PM
Apok, you don't need the unbundle and rebundle the planet name inside of the Inplace Element Structure. It will keep it for you. That is the point of INPLACE.
06-19-2013 02:32 PM - edited 06-19-2013 02:45 PM
@crossrulz wrote:
Apok, you don't need the unbundle and rebundle the planet name inside of the Inplace Element Structure. It will keep it for you. That is the point of INPLACE.
your right on the little details ..brain fart
06-20-2013 12:37 PM
And Pluto is no longer a planet.
06-20-2013 12:55 PM
@apok wrote:
@crossrulz wrote:
Apok, you don't need the unbundle and rebundle the planet name inside of the Inplace Element Structure. It will keep it for you. That is the point of INPLACE.
your right on the little details ..brain fart
Time for a bit of LabVIEW Trivia.
In LabVIEW 2009 that Inplace Element Structure helped to keep code like this from creating data copies.
Therefore the IPE improved performance of the unbundle operate bundle snip at the small cost of adding an additional synchronization boundry on the structure.
Since then the compiler has continued to improve and several optomizations have been added. Since at least 2011 the optomizer will operate on this snip inplace in most cases (overall code complexity may prevent optomization) The result being the same benifit to perfomance without the extra synchronization boundry and yes, better performance without the IPE.