[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
issue with Drawnow
From: |
Cleyderman Guerrero |
Subject: |
issue with Drawnow |
Date: |
Mon, 27 Aug 2018 11:15:12 -0500 (CDT) |
Hello Team,
I have the following issue when I execute my script. My script once worked
fine it, now, I have this issue.
This is my script:
*clear all;
close all;
clc;
l1 = line (nan, nan, 'Color', 'r', 'LineWidth', 2);
ylim ([-.1 5.1]);
N = 1000;
fs=500;
xlim ([0 (N-1)/fs]);
grid
Stop = 1;
uicontrol('Style', 'Pushbutton', 'String', 'Stop', ...
'Callback', 'Stop = 0;');
y1 = zeros (N, 1);
t1 = linspace (0, (N-1)/fs, N);
%t2 = linspace (0, (2*N-1)/fs, 2*N);
fl = '/home/pi/Desktop/adc0832/val.txt';
dl1 = ' ';
tic
while Stop
if toc > inv(fs)
tic
var = load ('/home/pi/Desktop/adc0832/val.txt');
%var = dlmread(fl, dl1);
%d=var.data;
%m=mean(d);
y1 = shift (y1, -1);
y1(end) = var;
%test = conv(y2, cos(2*pi*2*t1));
set (l1, 'XData', t1, 'YData', y1);
drawnow
end
end
close all
clear all
clc*
And the output is this:
No protocol specified
octave: unable to open X11 DISPLAY
octave: disabling GUI features
No protocol specified
No protocol specified
gnuplot: unable to open display ':10.0'
gnuplot: X11 aborted.
error: __go_draw_figure__: unknown object class, uicontrol
error: called from
__go_draw_figure__ at line 187 column 13
__gnuplot_drawnow__ at line 86 column 5
adquisicionygraficacion.m at line 39 column 9
No protocol specified
gnuplot: unable to open display ':10.0'
gnuplot: X11 aborted.
gnuplot> nset obj 1;
^
line 0: invalid command
could somebody help me with this?
Best regards,
Cleyderman Guerrero
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
- issue with Drawnow,
Cleyderman Guerrero <=