08-13-2008 08:49 AM
08-13-2008 02:04 PM - edited 08-13-2008 02:05 PM
Hi BME genuis,
the type def is to define a structure. If you often use this structure in your code you can make a typedef of it. If you want to change the typedef, add a new control or remove some controls, make it in the typedef and all other places where you use this strucutre will automatically be updated. You don´t need a blockdiagram for it, because there is no logic in it, you only define the "type"
. See also this link for more information http://http://digital.ni.com/public.nsf/allkb/453C79FC3BFABAF28625653F00789312.
If you use global variables, i recommend to not use them, but if you do, you can insert your values there. If your read the global in your main vi, then you should get the values from the global. You don´t need a blockdiagram in a global because it only stores the values. If you use typedefs, i recommend to not insert the values in a constant of the typedef, because if you update your strucutre you can lose your valuse.
Hope it helps.
Mike