User Tools

Site Tools


tuto_fpga_pico

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
tuto_fpga_pico [2017/08/22 14:23] – migrate from scenario.desc to scenario.yaml mimberttuto_fpga_pico [2017/11/15 16:22] – [Edit the .grc file] onicolas
Line 20: Line 20:
  
  
-Let's back to the idea of sending a constant number to the PicoSDR and see if we get it back. First thing to do is to add a ''Constant Source'' block (with Int as Output Type, and whatever-you-want as the constant) (block can be found in category ''Waveform Generator''), and connect it to ''RTDEX Sink''. Now, how can we check that we receive the right number ? We could send it to a file and then check the file, but this ain't funny. Instead of this, we're gonna use a super cool new type of block added to GNURadio lately (As I am writing this tutorial). I'm talking about ''Python Block''. With this block, you can create a custom block, with its associated python code easily, without going through an OOT module. +Let'get back to the idea of sending a constant number to the PicoSDR and see if we get it back. First thing to do is to add a ''Constant Source'' block (with Int as Output Type, and whatever-you-want as the constant) (block can be found in category ''Waveform Generator''), and connect it to ''RTDEX Sink''. Now, how can we check that we receive the right number ? We could send it to a file and then check the file, but this ain't funny. Instead of this, we're gonna use a super cool new type of block added to GNURadio lately (As I am writing this tutorial). I'm talking about ''Python Block''. With this block, you can create a custom block, with its associated python code easily, without going through an OOT module. 
  
 Add a Python Block (from category ''Misc''), open it, and click on 'Open in Editor'. You can now edit the python code behind the block, and as soon as you save it, changes are repercuted to the block in GRC. You can either write your own code comparing two inputs or use mine : Add a Python Block (from category ''Misc''), open it, and click on 'Open in Editor'. You can now edit the python code behind the block, and as soon as you save it, changes are repercuted to the block in GRC. You can either write your own code comparing two inputs or use mine :
Line 27: Line 27:
 Embedded Python Blocks: Embedded Python Blocks:
  
-Each this file is saved, GRC will instantiate the first class it finds to get +Each time this file is saved, GRC will instantiate the first class it finds to get 
-ports and parameters of your block. The arguments to __init__  will be the+the ports and parameters of your block. The arguments to __init__  will be the
 parameters. All of them are required to have default values! parameters. All of them are required to have default values!
 """ """
tuto_fpga_pico.txt · Last modified: 2017/11/15 16:22 by onicolas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki