I have a problem with a GPIB object opening in Matlab. I?m using two instruments, TTi Arbitrary Waveform Generator and LeCroy Waverunner scope, for repetitive measurements (I give a pulse with the TTi and acquire the waveform from the scope). Everything works fine but after many successful maeasurements, e.g. 80000 repetitions (that last more than 9h) I get the error:
Error using icinterface/fopen (line 83) Unsuccessful open: GPIB: NI: The specified board is not installed or configured properly.
Error in get_wave_from_scope (line 17) fopen(g)
where get_wave_from_scope is a function for data transfer from the scope to computer. When this happens I can?t control the two instruments anymore and to do so I have to restart Matlab. The statements instrreset or clear all aren?t of any help. I implemented a control loop including the try/catch statement too, putting fopen in try, but once the above-mentioned error occurs the loop repeats to infinity.
Is there a command similar to instrreset that can clear all GPIB connections after the error occurs and put Matlab in a state as if it was restarted? What actually happens with GPIB connections when Matlab is restared?
I use Windows 7 Professional, OS 64 bit; Matlab R2011b