help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Instrument control script only runs once.... plot stops working.


From: martine1212
Subject: Instrument control script only runs once.... plot stops working.
Date: Tue, 16 Jul 2013 15:05:46 -0700 (PDT)

Not sure what to do about this.
My script to control an HP8510C runs ok the first time, multiple plots,
several generated files are ok.
Everything is closed and cleaned when it exits.

After it finishes the first time, and it runs again... after trying to plot
the second figure....

Calculate, plot and save transimpedance(Zt) (y/n)?? (Enter => n)
Measure, plot and save S21 delay (y/n)?? (Enter => n)
Measure, plot and save S12 delay (y/n)?? (Enter => n)NP_test =  801
error: fputs: invalid stream number = 5
error: called from:
error:   /usr/share/octave/3.6.3/m/plot/__gnuplot_drawnow__.m at line 299,
column 1
error:   /usr/share/octave/3.6.3/m/plot/__gnuplot_drawnow__.m at line 84,
column 16
error:   /usr/share/octave/3.6.3/m/plot/figure.m at line 60, column 7
error:   /home/labuser/Windows_drive/Inst_programs/HP8510C_Spar.m at line
225, column 3 


H1=figure(1);
plot(Frequency/1e9,20*log10(abs(S11M)),'b');
grid on;
xlabel('Frequency (GHz)');
ylabel(['S11 ' filename ' (dB)']);
set(gca,'XMinorTick','on','YMinorTick','on');
print(1, strcat('S11_', filename, '.png'), '-portrait');

#LINE 225 is below..
H2=figure(2);
plot(Frequency/1e9,20*log10(abs(S22M)),'r');
grid on;
xlabel('Frequency (GHz)');
ylabel(['S22 ' filename ' (dB)']);
set(gca,'XMinorTick','on','YMinorTick','on');
print(2, strcat('S22_', filename, '.png'), '-portrait'); 


The only option is to exit octave and run again.... bug???




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Instrument-control-script-only-runs-once-plot-stops-working-tp4655736.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]