AnsweredAssumed Answered

ESA-L1500 and matlab problem (newbie)

Question asked by kts on Mar 25, 2011
Latest reply on Apr 7, 2011 by kts
Hi,

I'm having some difficulties getting HP ESA-L1500A to function with matlab. Every time I try to send a new command the instrument resets itself and then executes the command I've sent. I'm probably doing something (OK, probably many things ) wrong but can't really figure this one out...

Code:

inst = gpib('agilent',boardID,instrID);
set(inst,'EOSMode','read&write');
set(inst,'EOSCharCode','LF');
fopen(inst);
fprintf(inst,command);
fclose(inst)
delete(inst)

So I'm creating a new gpib object for all commands and closing it after executing the command. The above works fine with other instruments on the same bus...  

Outcomes