NI GPIB device connected shown in connection expert but not in visadevlist

조회 수: 9 (최근 30일)
Akshayaa Pandiyan
Akshayaa Pandiyan 2022년 7월 25일
편집: Harimurali 2024년 3월 20일
Hi, I have a couple of devices connected through NI GBIP and the devices are online in Keysight connection expert. But when I try to list them using visadevlist, I have the following warning no matter the Timeout:
Unable to find any VISA resources during the specified timeout period. Open the vendor's control software to search for available VISA resources.
Related documentation
The keysight connection expert setting is checked using these steps. Knowing the IP address, when I tried to create a GPIB object in MATLAB some devices show the following error:
>> visadev(['GPIB1::5::INSTR'])
Resource string is invalid or resource was not found.
See related documentation for troubleshooting steps.
but the same IP works for visa()
>> visa('agilent', ['GPIB1::5::INSTR']);
Warning: visa will be removed in a future release. Use visadev instead.
As I mentioned, some devices are working with visadev and some wont.
MATLAB release: 2022a Update 3
Is this a bug in the toolbox or am I missing something?

답변 (1개)

Harimurali
Harimurali 2024년 3월 19일
편집: Harimurali 2024년 3월 20일
Hi Akshayaa,
This is a known issue with MATLAB R2022a Update 3 and previous versions. Refer to the following bug report for detailed information about the issue: https://www.mathworks.com/support/bugreports/details/2617725
The fix for this is to use R2022b, R2022a Update 4, or future versions of MATLAB.
If this does not fix the issue, one can get this error if the specified VISA resource is not valid, or the instrument is not connected. Refer to connection error troubleshooting page:

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by