An object in OBJ could not be closed or is invalid

Post Reply
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

An object in OBJ could not be closed or is invalid

Post by matlab1 »

An object in OBJ could not be closed or is invalid
matlab1
Site Admin
Posts: 4797
Joined: Thu Dec 15, 2016 9:30 am
Contact:

Re: An object in OBJ could not be closed or is invalid

Post by matlab1 »

If OBJ is an array of interface objects and one of the objects
cannot be disconnected from the instrument, the remaining objects
in the array will be disconnected from the instrument and a warning
will be displayed.

Example:
g = gpib('ni', 0, 2);
fopen(g)
fprintf(g, '*IDN?');
idn = fscanf(g);
fclose(g);
Post Reply

Return to “Serial communication”

Who is online

Users browsing this forum: No registered users and 84 guests