Why do I receive an error "GPIB: NI: GPIB board is not Controller-In-Charge and is not properly addressing itself" when working with Instrument Control Toolbox?
13 views (last 30 days)
Show older comments
MathWorks Support Team
on 18 Mar 2015
Answered: MathWorks Support Team
on 18 Mar 2015
I am trying to work with GPIB instruments through an NI board. Defining and opening the connection appears to work fine:
g = gpib('ni', 0, 0);
fopen(g);
But when I try to send a command the the device:
fprintf(g,'SOMECOMMAND');
I receive an error: ERROR: Error using icinterface/fprintf (line 147) GPIB: NI: GPIB board is not Controller-In-Charge and is not properly addressing itself.
Accepted Answer
MathWorks Support Team
on 18 Mar 2015
This error is usually an indication that there is a conflict between primary addresses of the GPIB board and the instrument which you are trying to communicate with. Please configure your GPIB board to work with primary address 0 and the instrument to use any free primary address other than 0 (e.g. 1).
0 Comments
More Answers (0)
See Also
Categories
Find more on Instrument Control Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!