discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Parameter block: No Boolean type?


From: Josh Blum
Subject: Re: [Discuss-gnuradio] Parameter block: No Boolean type?
Date: Fri, 10 May 2013 13:22:20 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5


On 05/10/2013 01:14 PM, Monahan-Mitchell, Tim wrote:
> I have a File Sink Block, which takes a boolean input (Unbuffered).
> 
> I wanted to feed the file sink's Ubuffered value from a Parameter block, but 
> it does not support Boolean?

grep for xml files with <type>bool</type>, many blocks use this, but the
GRC validates the type, so its expecting actually type bool so True or
False. So if you have something like an integer, you can put
bool(my_int_var) in the param box.

-josh

> 
> Any other sensible type I try from the Parameterr Block choices (like String 
> or Int), GRC says the value of '0' is invalid for type bool.
> 
> Is there a trick to doing this to get around this apparent limitation? Or I 
> must be missing something.
> 
> I'm using a parameter block so I can specify the Unbuffered value on the 
> command line.
> 
> Using GRC, v3.6.4.1 .
> 
> Thanks in advance,
> Tim
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 



reply via email to

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