return value from an object
Owen
Posts: 100
Is it possible in spin to get a return value from an object? or does this only work between methods in a single object? i'm trying to return the number of steps a motor takes from one object and use it in the toplevel object but cant seem to get it to work.
thanks,
Owen
thanks,
Owen
Comments
PUB Toplevel
value := Obj_X
No toplevel objetc:
PUB Obj_X : x
a:= y
return a
Or
x:= a
Owen
Mike
Try this link.