An equivalent in "C" of what you are really asking for is:
While my program is running, I want to add the statements to define a structure
typedef struct {
float number1;
float number2;
} newstruct;
newstruct Var1;
And use in my program variables typed to this structure:
Var1.number1 = 1.0;
It can't be done (neither in C nor G) since it requires that your program be recompiled to include the new structure and new datanames. Structures and datanames must be known at compile time. When you change/create a label (dataname) in LabVIEW, the VI must be recompiled (at least when this label is used).
Now you still have methods to handle dynamic data structures. First you could use the Config Files VIs. Open the config file, access the data b
y name (Read/Write Keys) Close the config file. There is no need to convert to another structure. Second to have a user interface to dynamic structure, you can take a look at some VIs I posted previously @ http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=50650000000500000025600000&HTHREAD=000024613&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0