I'm using message strobe to send the data in the Message PMt parameter I used:
pmt.cons(pmt.make_dict(), pmt.make_u8vector(8,0x42 )) then comes my block, and to read the output i'm using Message Debug block. 2016-01-06 10:55 GMT-05:00 Marcus Müller <marcus.muel...@ettus.com>: > Hi Gabriel, > > do you know what kind of PMT VECT is? pmt_t is a container, and might > contain a lot of different things. > Is it a pmt::vector, or a pmt::uniform_vector, or a list, or something > else? > > For an overview, I'd like to point you to the polymorphic types page in > the GNU Radio manual [1]. > > Best regards, > Marcus > > [1] https://gnuradio.org/doc/doxygen/page_pmt.html > > > On 06.01.2016 16:10, Gabriel Pechiarovich wrote: > > Hi, I've been working in oot modules in gnuradio for a while, but recently > I've been trying to program blocks who can handle messages. > > I've extracted the input data and replicated it at the output, like this: > > pmt::pmt_t META = pmt::car(PDU); > pmt::pmt_t VECT = pmt::cdr(PDU); > std::cout << "Vect: " << VECT<< '\n'; > message_port_pub(pmt::mp("out_pdu"), pmt::cons(META, VECT)); > > But I can't understand how to handle VECT, I want to change the VECT > values; add some values, basicaly operate this VECT. > > If anyone can help me I'll be gratefull. > > -- > Gabriel Pechiarovich Salas > > > > _______________________________________________ > 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 > > -- Gabriel Pechiarovich Salas Red Dragon Games Designers and game developers
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio