"Error using icinterface/fopen Unsuccessful open: GPIB: KEYSIGHT: The specified board is not installed or configured properly."

11 次查看(过去 30 天)
When trying to run my code, I keep getting: "Error using icinterface/fopen Unsuccessful open: GPIB: KEYSIGHT: The specified board is not installed or configured properly." However when I use the resourceList = visadevlist function, Matlab recognizes all devices connected to it. Any incite?

回答(1 个)

akshatsood
akshatsood 2023-8-30
Hi Etienne,
I understand that you are facing difficulty in setting up communication of your hardware with MATLAB. In reference to the question, you have used "visadevlist" function and confirmed that MATLAB recognizes all the connected devices. Irrespective of that, when you run your code, you receive an error pertaining to instrument configuration.
As per my understanding, here are the possible workarounds that could be helpful in resolving the error.
  • Leverage instrfind which reads instrument objects from the memory to MATLAB workspace. You can pass a struct S to the function as in instrfind(S) which has field as the Property Name and the corresponding field value as the Property Value to perform a more accurate search. Refer to the sample code below
g = gpib('ni',0,2); % creating a GPIB object
g.EOSCharCode = 'CR';
fopen(g)
% passing struct to instrfind to search for instrument using property values
instrfind({'Type','EOSCharCode'},{'gpib','CR'});
  • Try validating the instrument object you are creating in your code using the isvalid function.
  • Use instrreset to disconnect and deletes all instrument objects. Re-run the code to establish communication with the instrument.
  • If the above steps do not work, try restarting the MATLAB session.
If the issue persists, could you please help me with the code and the instrument specification to further investigate and assist you better.
I hope this helps.

类别

Help CenterFile Exchange 中查找有关 Instrument Control Toolbox 的更多信息

标签

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by