Unpacked_to_packed gives me only zeros

Hi List,
I’m using a line link this in a script:

self.pack = gr.unpacked_to_packed_ss(1, gr.GR_LSB_FIRST)

It’s give me only a sequence of zero, but I don’t mind why!
Any suggestion?

Davide A.

web: http://www.davideanastasia.com/
email: [email protected]

Davide A. wrote:

Hi List,
I’m using a line link this in a script:

self.pack = gr.unpacked_to_packed_ss(1, gr.GR_LSB_FIRST)

It’s give me only a sequence of zero, but I don’t mind why!
Any suggestion?

What’s the previous block? Is it binary? Are you using the wrong
endianness? For most apps here I use gr.GR_MSB_FIRST:

    self.demodulator = gmsk_demod(self, samples_per_symbol)
    self.packer = gr.unpacked_to_packed_bb(1, gr.GR_MSB_FIRST)
    self.connect (self.demodulator, self.packer)

    (x86 architecture)

-Dan

Il giorno lun, 16/04/2007 alle 07.48 -0700, Dan H. ha scritto:

    self.demodulator = gmsk_demod(self, samples_per_symbol)
    self.packer = gr.unpacked_to_packed_bb(1, gr.GR_MSB_FIRST)
    self.connect (self.demodulator, self.packer)

Thank you very much. It works now! :slight_smile:
Regards,

Davide A.

web: http://www.davideanastasia.com/
email: [email protected]