[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Sending data to gnuradio
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] Sending data to gnuradio |
Date: |
Fri, 16 Jul 2010 09:45:43 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Thu, Jul 15, 2010 at 11:07:05AM -0400, Garrett Wenger wrote:
> I am trying to use a use a file source block to read data from a fifo so that
> eventually I can process data sent by another computer.
> I wrote a simple c program to write data to the fifo and I have verified that
> it works, but I don't see any output on gnuradio's scope when I try to send
> data through.
> I've read through the file source block source code and from that my guess is
> that this is because when I initially start the program, the pipe is empty so
> the file source block continuously returns 0's.
Hi Garrett,
I've used gr_file_descriptor_ to successfully read/write to pipes. As
long as the pipe is empty, though, there should be no zeros. Are you
sure you're actually seeing zeros, and the whole thing is not stalling?
Cheers
MB
--
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)
Dipl.-Ing. Martin Braun
Research Associate
Kaiserstraße 12
Building 05.01
76131 Karlsruhe
Phone: +49 721 608-3790
Fax: +49 721 608-6071
www.cel.kit.edu
KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association
pgpoqSOfdWd4B.pgp
Description: PGP signature