Determine whether instrument objects are valid
out = isvalid(obj)
An instrument object or array of instrument objects.
A logical array.
out = isvalid(obj) returns
the logical array
out, which contains a 0 where
the elements of
obj are invalid instrument objects
and a 1 where the elements of
obj are valid instrument
Suppose you create the following two GPIB objects:
g1 = gpib('ni',0,1); g2 = gpib('ni',0,2);
g2 becomes invalid after it is deleted.
isvalid verifies that
g2 is invalid.
garray = [g1 g2]; isvalid(garray) ans = 1 0