From: Wei He on
Hola,
Friends!
I am a rookie in this work, I hope I could have the honor to get some help from you. Thanks in advance!
I need to collect tens of thousands of power traces from Osci, and transmitted them to matlab to make some statistical analysis.
In previous work I just use the pen driver to gather the traces, collecting such a large amount of data is really time-consuming.
So , I plan to make the transmittion automatically. I am rightnow USB to connect Agilent Osci to my PC. The connection is OK. However when I type the fscanf instruction, timeout always occures.

x=visa('agilent','USB0::0x0957::0x1733::MY48260142::INSTR');
fopen(x);
get(x,'status')
A=fscanf(x,'%c',5000)

The following messsage always jump out:

%%%%%%%%%%%%%%%%%%%%%%%%%
Warning: VISA: A timeout occurred
A =
''
%%%%%%%%%%%%%%%%%%%%%%%%%

Can you help me to find the problem?

From: Vinod Cherian on
Wei,

You might find this example useful:

http://www.mathworks.com/matlabcentral/fileexchange/24728-capturing-and-analyzing-segmented-data-using-agilent-oscilloscopes


"Wei He" <Eric.he(a)hotmail.com> wrote in message <hul4kh$r21$1(a)fred.mathworks.com>...
> Hola,
> Friends!
> I am a rookie in this work, I hope I could have the honor to get some help from you. Thanks in advance!
> I need to collect tens of thousands of power traces from Osci, and transmitted them to matlab to make some statistical analysis.
> In previous work I just use the pen driver to gather the traces, collecting such a large amount of data is really time-consuming.
> So , I plan to make the transmittion automatically. I am rightnow USB to connect Agilent Osci to my PC. The connection is OK. However when I type the fscanf instruction, timeout always occures.
>
> x=visa('agilent','USB0::0x0957::0x1733::MY48260142::INSTR');
> fopen(x);
> get(x,'status')
> A=fscanf(x,'%c',5000)
>
> The following messsage always jump out:
>
> %%%%%%%%%%%%%%%%%%%%%%%%%
> Warning: VISA: A timeout occurred
> A =
> ''
> %%%%%%%%%%%%%%%%%%%%%%%%%
>
> Can you help me to find the problem?
>