Ok, i know where is bug :) it is my bad understanding what is offset :) and
what are boundaries. :)

Your sugest : analog.sig_source_c(1,analog.GR_SIN_WAVE, 0.1,1, 0.5+0.75j)

is fine for me, Thank you !!

Greetings



2016-04-30 8:41 GMT+02:00 Marcus Müller <marcus.muel...@ettus.com>:

> Hi Przemek,
>
> I must admit I'm not able to reproduce the issue –
>
> >>> from gnuradio import analog
> >>> analog.sig_source_c(1,analog.GR_SIN_WAVE, 0.1,1,1)
> <gr_block sig_source_c (0)>
>
>
> works just fine,  and the literal 1 is definitively an int. What does
>
> print type(offset_Value)
>
> say in your code?
>
> I guess you might want to use a complex offset? Python's built-in complex
> type works:
>
> analog.sig_source_c(1,analog.GR_SIN_WAVE, 0.1,1, 0.5+0.75j)
>
>
> Best regards,
> Marcus
>
> On 29.04.2016 22:53, Przemek Lewandowski wrote:
>
> Hello :)
>
> I would like to set offset to signal source component in construktor;
> BUT I dont know which type is it in Python ??
>
> signal_source = analog.sig_source_c(sampleRate, analog.GR_SAW_WAVE,
> frequencyCounted, 1/float(rowCounter), *offset_Value*)
>
> *offset_Value - when it is text it is bad*
> *offset_Value - when it is int it is bad*
>
> *so how to initialize offset in complex signal source in python ??*
>
> *Greeting :)*
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing 
> listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to