LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Named GOOP Objects

I've tried to do some GOOP in LV 6.02 and I wanted to use Named objects/instances.
It is fairly easy to set the name of an object, but then if I want to read the name of the
object later on, how do I do that?
The private functions "Get Data" and "Get Data to Modify" only return the Data from the Object repository, not the name.
Of course I can in addition call the Object repository using the input method "Get Statistics", but is this the only way to get hold of the name?
I don't want the statistics, I only want the Data and the name in one go.
And I also don't want to store the name as part of the Data as what could be another solution.
GOOP 1.0
0 Kudos
Message 1 of 2
(2,617 Views)

Hello,

This is a very late reply so it is probably not relevant for you but here we go any way.

 

The GetObjectStatus returns the object name from an object reference. But the object data has to be read out separately so it does not fulfill your requirement of data and name in one call. To do better you have to make your own version of GetAtributes to make it return the obj name.

 

I am a bit curious about how you use the named objects sine you have this need. The way I have used named objects I only use the name to get the ref and after that I don't care about the name any more.

Jan
0 Kudos
Message 2 of 2
(2,549 Views)