[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Python enabler block not working
From: |
Abdul Samad/TE R&D/NRTC |
Subject: |
[Discuss-gnuradio] Python enabler block not working |
Date: |
Tue, 28 Nov 2017 06:24:18 +0000 |
Hi
I am trying to make a python block that would act as an enabler between audio
source and audio sink such that whenever I hit space from my keyboard the
transmission begins and should stop after re hitting again. For starters I
tried to start the transmission using just only one space hit but even this
seems to be failing.I am using python block module from gnuradio. I get the
following errors on my report panel. The source code of the block and the GRC
screenshot is also attached.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gnuradio/gr/gateway.py", line 55, in
eval
try: self._callback()
File "/usr/lib/python2.7/dist-packages/gnuradio/gr/gateway.py", line 160, in
__gr_block_handle
) for i in self.__out_indexes],
TypeError: in method 'block_gw_message_type_work_args_return_value_set',
argument 2 of type 'int'
thread[thread-per-block[1]: <block Embedded Python Block (1)>]: SWIG director
method error. Error detected when calling 'feval_ll.eval'
If anybody figure out the problem or its probable solution please let me know
Regards
Abdul Samad
epy_block_1.py
Description: epy_block_1.py
Screenshot from 2017-11-28 11-12-37.png
Description: Screenshot from 2017-11-28 11-12-37.png
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] Python enabler block not working,
Abdul Samad/TE R&D/NRTC <=