Closed dshimaoka closed 2 years ago
To trigger a digital signal at a desired condition, I wish to access a private property (fracFrameCntr) inside an eScript.
fracFrameCntr
One way to do this is to change this property to GetAccess = public and SetAccess = private.
GetAccess = public
SetAccess = private
Another way is to make a function like below:
methods (Access = public) function v = getFracFrameCntr(o) v = o.fracFrameCntr; end
Which way is more preferable?
For this purpose (public read access only) just changing the property GetAccess/SetAccess is the right way to do it.
thanks for the suggestion. A new pull request will soon follow.
To trigger a digital signal at a desired condition, I wish to access a private property (
fracFrameCntr
) inside an eScript.One way to do this is to change this property to
GetAccess = public
andSetAccess = private
.Another way is to make a function like below:
Which way is more preferable?