Loginskip to content

Template VI Library Block (v. 1.0)

news/
NXT Repository/Programming/NXT-G/

This “advanced” NXT-G block is released not for users, but for NXT-G block developers. I’ve created this block as a starting point for a “math library” block which I still didn’t manage to get to. Such “libraries” of blocks typically have similar number of input and output terminals, but different functionality in each function. If you use a “Switch” VI you waste a huge amount of memory since all functions are compiled and stored in the final .rbt file, even if you use only one function.

The Template VI Library Block answers this problem. Basically, it allows dynamical reprogramming of the “underlying” VI diagram behind the NXT-G diagram and replacing the “core” SubVI of the block every time the user selects a different function. Adding new functions is very easy - changing the control holding the list of functions and adding the SubVI file is all you have to do! More details on using this block are found in the README file, and inside each VI.

Download the Template VI Library Block here.

Comments/suggestions/bugs can be reported on this topic, or via email to guy@nxtasy.org.