suddenly invalid RSRCNAME specified visa accessing usb port

5 views (last 30 days)
Mike on 1 Apr 2013
For some reason, suddenly a function I've been using a long time no longer is working on a particular PC. It was 2 PCs, but some how, I was able to fix them both, now one of them is acting up again. I use ni-VISA to access a temperature logger on a USB port, I get back an empty answer. It would normally provide a list of the ports attributes and work correctly. The code is working fine on other machines. I've tried different hardware for the logger, which has not made any difference. I tried this logger hardware on other machines and it didn't fix it. THis is the error message:
"Invalid RSRCNAME specified. Type 'instrhelp visa' for more information" Not sure why it would give that message.
for countPort = 1:10;
port = ['COM', num2str(countPort)];
% OPSens = serial(port);
OPSens = visa('ni',port);
%OPSens.terminator = 10;%linefeed (LF) character (ASCII hexadecimal <0x0A>)
serialUnitID = query(OPSens, 'SYST:IDN?');
Andrew Fowler
Andrew Fowler on 2 Jul 2013
Did you manage to get this problem solved? I'm having a similar issue with a GPIB-USB-HS adapter from national instruments.

Sign in to comment.

Answers (1)

Vinod on 24 Apr 2013
I'd recommend contacting technical support.

Community Treasure Hunt

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

Start Hunting!