| Contents | Index |
The 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 ObjectVisibility property is set to off, instrfind and instrreset do not return or delete those objects.
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.
Usage | Any instrument object |
Read only | Never |
Data type | String |
The default value is on.
{on} | Object is visible to instrfind and instrreset |
off | Object is not visible from the command line (except by instrfindall) |
The following statement creates an instrument object with its ObjectVisibility property set to off:
g = gpib('keithley',0,2,'ObjectVisibility','off');
instrfind
ans =
[]However, since the object is in the workspace (g), you can access it.
get(g,'ObjectVisibility') ans = off
instrfind, instrfindall, instrreset

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |