discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] File Sink - Question


From: Ellie White
Subject: Re: [Discuss-gnuradio] File Sink - Question
Date: Sat, 25 Feb 2017 16:19:06 +0000

Great! I doubled the backslashes, and it seems to be working now. Thank you very much!

 

Ellie

 

From: address@hidden [mailto:address@hidden On Behalf Of Kevin Reid
Sent: Saturday, February 25, 2017 11:14 AM
To: Ellie White <address@hidden>
Cc: address@hidden
Subject: Re: [Discuss-gnuradio] File Sink - Question

 

On Sat, Feb 25, 2017 at 8:09 AM, Ellie White <address@hidden> wrote:

    self.blocks_file_sink_0 = blocks.file_sink(gr.sizeof_float*512, "C:\Users\Ellie\fm_data.dat", False)

 

Your problem is here. Those backslashes need to be escaped in the string literal.

 

Since this code was generated by GRC then this would seem to be a bug in GRC, unless it's really intended to accept backslash escapes inside an un-quoted string in which case you need to double all the backslashes or just use forward slashes.


reply via email to

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