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)
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
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).

More Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2013b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!