Monday, September 20, 2021

Re: Generate flowgraphs from command line

Excellent, thanks Vasil.

Do you know if there is a way to get this tool to output a hierarchical block to the local folder?  It seems they always get generated to ${HOME}/.grc_gnuradio/

On Mon, Sep 20, 2021 at 8:32 AM Vasil Velichkov <vvvelichkov@gmail.com> wrote:
Hi Jameson,

On 20/09/2021 15.23, Jameson Collins wrote:
> Is there a command line method of converting .grc files to .py files?

You can use `grcc` to compile/convert flowgraphs fom the command line.

$ grcc --help
usage: grcc [-h] [-o DIR] [-u] [-r] GRC_FILE [GRC_FILE ...]

Compile a GRC file (.grc) into a GNU Radio Python program and run it.

positional arguments:
  GRC_FILE              .grc file to compile

optional arguments:
  -h, --help            show this help message and exit
  -o DIR, --output DIR  Output directory for compiled program [default=.]
  -u, --user-lib-dir    Output to default hier_block library (overwrites -o)
  -r, --run             Run the program after compiling [default=False]


Regards,
Vasil

No comments:

Post a Comment