|
From: Qiang J. <jiq...@in...> - 2006-05-16 17:59:32
|
Hi all,
I'm writing a program which solves a system of m differential
equations in C(m is variable). In each step, I should draw m curses in
the same graphic. To realise the real-time update of the graphic, I
thought of use the FIFOs and plot the fifos in each step. The problem is
that I create m FIFOs (I've tried with a fifo and m+1 columns, that
didn't work),and the command gnuplot is:
plot "nameoffifo1" using 1:2 with linespoints,\
"nameoffifo2" using 1:2 with linespoints,\
...
"nameoffifom" using 1:2 with linespoints,\n
The program hangs when it try to write in the second fifo. I guess the
problem is that gnuplot take just the first line in a time, it reads
only the first fifo until the program finishes, so only the first fifo
can work, the others, when i do a fopen, there's a dead lock.
I would like to know if anyone has a solution for this. Thank you.
--
QIANG Jiqing
|