Hi Cristian,
On 06/29/2017 08:29 PM, Cristian Rodríguez wrote: > Thanks for your answer Marcus. > > > > 2017-06-28 5:52 GMT-05:00 Marcus Müller <[email protected] > <mailto:[email protected]>>: > > Hi Cristian, > > the sending of values from within work() is really just a one > liner (and I think you'd do it right – just send a > pmt::from_double() using msg_port_pub) so you'd just write a block > for that. > > It is not clear for me how the common inputs work (I mean the not PMT > type). > > It has a buffer, and save the incoming values in a buffer, and later > when the work() function is called use all this values until the > buffer is empty? I've kind of wrote a blog entry about that: https://www.gnuradio.org/blog/buffers/ > > I'm going to build the block, and i tell you how it is going. > > > > Anyway, your flow graph is probably misbehaving because you set > the throttle rate to 1. That means that when the trottle is > presented with N samples on the input buffer, it will wait N seconds. > > N depends on the scheduling of this flow graph, but might > typically be something like 1024, which in turn means that your > flow graph starts, Signal source generates N items, Throttle gets > called with N items, and then just sleeps for N seconds – that's > nearly 20 min for N=1024 – before Complex to Mag gets 1024 items, > processes them (likely all at once, though it's perfectly free to > first process any number smaller than N, and be repeatedly > called), and so on. > > I set that parameter in several values, that screenshot had that > value, but i used a lot and always the flowgraph failed. That's not a parameter you can set! > > Thanks in advance. > > Best regards, > > Cristian > > > Best regards, > > Marcus > > > On 28.06.2017 06:06, Cristian Rodríguez wrote: >> Hi all. >> >> I'm implementing this flowgraph. >> >> Imágenes integradas 1 >> >> I want to calculate the power in the antenna, which is set as >> float and later convert it to a PMT type. I don't know if it is >> possible. >> >> I tried to build the above flowgraph, My idea was to convert the >> float type to a tagged stream and later it in PMT type. Though >> the flowgraph can do that, it is not working as I expected. >> >> What blocks could you recommend me to do this conversion? >> >> In C++ word i want to: >> >> float x=output_of_Moving average. >> pmt::cons(pmt::PMT_NIL, pmt::from_float(x)) >> >> >> Thanks a lot. >> >> Best regards, >> >> Cristian >> >> >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> [email protected] <mailto:[email protected]> >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> <https://lists.gnu.org/mailman/listinfo/discuss-gnuradio> > _______________________________________________ Discuss-gnuradio > mailing list [email protected] > <mailto:[email protected]> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > <https://lists.gnu.org/mailman/listinfo/discuss-gnuradio> >
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
