0

I am using B200 to collect signals in FM band 96.5 MHz in a file using a File sink block.

When I am reading the values in the file, I find that the initial values are all zeros.

       [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ,
         0.        ,  0.        ,  0.        ,  0.        ,  0.        ,
         0.        ,  0.        ,  0.        ,  0.        ,  0.        ,
         0.        ,  0.        ,  0.        ,  0.        ,  0.        ,
        -0.01464888,  0.00244148, -0.01901303,  0.00729392, -0.03125095]

The parameters used are

      vector length :1
      unbuffered    :off
      append file   :overwrite

the code used is as this (I have modified the spectrum sensing code and added two lines as highlighted and deleted few unnecessary lines of codes)

enter image description here Could anyone help why this is occurring? is it expected that the initial values will be zeros?

f=np.memmap("FM_Mar21a", dtype=np.float32) f[0:25] the output is as above. i used memmap because the file was really big with 1 billion samples and showing MemoryError.

Thankyou

MSR
  • 77
  • 1
  • 3
  • 14
  • can you post your whole flowgraph, and how you're reading the file? – Marcus Müller Mar 23 '19 at 10:11
  • `f=np.memmap("FM_Mar21a", dtype=np.float32)` `f[0:25]` the output is as above. i used `memmap` because the file was really big with 1 billion samples and showing MemoryError. – MSR Mar 28 '19 at 11:46
  • I am not using any flowgraph but modifying the python code – MSR Apr 12 '19 at 09:27

0 Answers0