|
From: | Sakthivel Velumani |
Subject: | Re: [Discuss-gnuradio] Filter output float to complex |
Date: | Fri, 5 Jan 2018 14:33:37 +0100 |
Hi Sakthivel,
this will be impossible to answer without you sharing your code,
instead of just this pseudocode, alongside with the actual meaning of
"it crashes". Does it segfault without a message? does it give a python
error? A C++ exception?
Best regards,
Marcus
> ______________________________
On Fri, 2018-01-05 at 10:53 +0100, Sakthivel Velumani wrote:
> Hi all,
>
> I am writing a block which takes in complex samples and performs
> filtering and other operations on real and imag part separately and
> then combines them to output as complex. When I combine two
> fir_filter_fff outputs like -
>
> out[i].real(filterObject.filter(<some_float_input>);
> out[i].imag(filterObject.filter(<some_float_input>);
>
> the flowgraph crashes. But when I do something like -
>
> out[i].real(<some_float_value>);
> out[i].imag(<some_float_value>);
>
> it runs fine with the specified output value. So I guess the problem
> is with the output of fir_filter_fff. In the documentation, its
> return type is float and I also tried type casting to (float) before
> passing to out[i].real(). Does anyone have a clue where the problem
> would be?
>
> Best regards,
> Sakthivel
_________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |