Prev: Solving Coupled equation of ode-pde in matlab
Next: sets of subsets generated by 'permpos.m' --- looping?
From: Wei He on 8 Jun 2010 06:05 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 9 Jun 2010 13:52
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? > |