|
From: | Elmore's |
Subject: | Re: Selector error - "IndexError: output_index must be < noutputs" |
Date: | Fri, 1 Sep 2023 22:27:53 -0400 |
Jim,
I have attached a greatly simplified version of what I am trying to
accomplish. I still get the same error. What am I doing wrong?
Jim
From: Jim
Melton
Sent: Monday, August 28, 2023 12:01 PM
Subject: RE: Selector error - "IndexError: output_index must be <
noutputs" Don’t you need to instantiate “Receive”? --- Jim
Melton
I am attempting
to use a Selector block with 2 outputs. I want to select the output
programmatically. When I run the flowgraph, I get the subject
error. The following is
my abbreviated code which is pertinent to the question interspersed with
explanatory comments: import
Receive Receive is a Hier Block
which I import in to my Python file blocks_selector_0
= Receive.blocks.selector(gr.sizeof_float*1,0,0) Instantiation of blocks_selector_0. The
Selector block is in the Receive Hier Block. blocks_selector_0.set_output_index(0)
I am trying to select the 0
output. This is where the error occurs. 0 is certainly
less than 2 so what is happening? Jim CONFIDENTIALITY NOTICE - SNC EMAIL: This email and any attachments are
confidential, may contain proprietary, protected, or export controlled
information, and are intended for the use of the intended recipients only. Any
review, reliance, distribution, disclosure, or forwarding of this email and/or
attachments outside of Sierra Nevada Corporation (SNC) without express written
approval of the sender, except to the extent required to further properly
approved SNC business purposes, is strictly prohibited. If you are not the
intended recipient of this email, please notify the sender immediately, and
delete all copies without reading, printing, or saving in any manner. --- Thank
You. |
Selector_epy_block_0.py
Description: Binary data
Selector_Test.grc
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |