Control access to instrument object
ObjectVisibility property provides
a way for application developers to prevent end-user access to the
instrument objects created by their application. When an object's
is set to
instrreset do not return or delete
Objects that are not visible are still valid. If you have access to the object (for example, from within the file that creates it), then you can set and get its properties and pass it to any function that operates on instrument objects.
Any instrument object
Default value is enclosed in braces (
Object is visible to
Object is not visible from the command line (except by
The following statement creates an instrument object with its
g = gpib('mcc',0,2,'ObjectVisibility','off'); instrfind ans = 
However, since the object is in the workspace (
you can access it.
g.ObjectVisibility ans = off