Instrument control toolbox, problem communicating with instrument
7 views (last 30 days)
Show older comments
I am able to communicate with my instrument (Signal Recovery 7270 DSP Lock-in Amplifier) only 1 out of 2 times. The signal send from fprintf always get to the instrument, but I can read from it only 1 out of 2 time. I am sure the command send to the instrument is right. I am sure that the command get to the instrument because it has a communication monitor where I can read the commands that have been send to it and the answer it will send.
Here is my code:
vu = visa('NI', 'USB0::0x0A2D::0x001B::11117372::0::RAW');
>> fopen(vu)
>> fprintf(vu,'ID')
>> fscanf(vu)
Warning: Unsuccessful read: VISA: Unknown status value 0xBFFF0015
ans =
''
>> fprintf(vu,'ID')
>> fscanf(vu)
ans =
7270
>> fprintf(vu,'VER')
>> fscanf(vu)
Warning: Unsuccessful read: VISA: Unknown status value 0xBFFF0015
ans =
''
>> fprintf(vu,'VER')
>> fscanf(vu)
ans =
2.00
>> fclose(vu)
0 Comments
Accepted Answer
More Answers (1)
Walter Roberson
on 28 Sep 2011
Looks like that is a timeout. See http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/NI-VISA-status-code-not-decoded-on-Linux/td-p/1035064, which recommends updating your drivers.
See Also
Categories
Find more on Downloads in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!