04-25-2008 06:45 AM
04-25-2008 06:55 AM
04-25-2008 08:18 AM
Hi,
If new objects are created it is because you call a VI called XX_Create.vi (where XX is the class name) which in turn calls XX_New.vi to create a new object. Or perhaps you call XX_New.vi directly in some method (VI).
To read data from an object you can add a new method like XX_GetAddress.vi. In the block diagram of this method you use the utility VI called XX_GetAttributes.vi. It returns all data of the object in the cluster and you just unbundle it and wire the address field into an indicator.
To write data you follow the same scenario, for example XX_SetAddress.vi, and use the utility VIs XX_GetAttributes toModify.vi and XX_SetModifiedAttributes.vi to change the object data. The object reference must be wired into all these VIs.
The names of the utility VIs I have described above are valid for GOOP architectures where Endevo has been involved. So it is valid for GOOP 1, 2 and 3. If you are using OpenG or some other the names may differ but the general scenario is the same.
Also, if you are using named objects you need to use the XX_New.vi to get the object reference from the name. The XX_New.vi as a "method" input, which is an enum. One selection of this enum is "look up existing". Use this selection to get the object reference from the object name.
Jan
Endevo