Current state:
To create and destroy a DVR, its data type must be statically specified on the diagram:
In case we want to abstract the data type for the creation and destruction of the DVR, we have to use workarounds like using a DVR of a variant:
The problem is that it sacrifices data access efficiency for the sake of DVR creation/destruction genericity.
Idea:
Provide a way to create and destroy a DVR with a data type defined at runtime.
The "Create" node would take a variant for the its data type and output a U32 representing the reinterpreted strictly-typed reference.
The "Destroy" node would take the U32 and give back a variant containing the last value.
We could either have new nodes in the "Memory Control" palette, or just a new right-click option "✔Generic" on the existing nodes:
It would allow to manage the creation and destruction of DVRs generically (reducing boilerplate code), while still having DVRs of strict types (improving efficiency compared to a DVR of a variant).
Example usage:
1. A malleable VI for batch creation of DVRs specified in a cluster of DVRs:
2. Separation of data type definition and DVR instantiation:
Regards,
Raphaël.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.