discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change variable within the python module


From: Marcus Müller
Subject: Re: Change variable within the python module
Date: Thu, 10 Aug 2023 18:03:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

Hi Bob,

the osmosdr source and sink blocks definitely have messaghe input ports, so you *should* use them. The fact that you *want* to "just change a variable" really doesn't help – that's not a recommendable architecture for your program.

Best regards,
Marcus

On 10.08.23 16:39, Bob Wong wrote:
Hello!

I now want to build a timer to calculate the transmission time of Osmocom Sink 
and store it in two variables(minutes and seconds), how can I do that? I search 
the mailing list and find that it is advised to use the message but in this 
case, I cannot use a message since I just want to change the value of a 
variable. And next, I need to send the time value to another python module to 
control whether to transmit it or not at a specific time with a multiply const 
with variable value set 1 or 0. Again, I cannot use message since the module 
doesn't have a port for that. How can I achieve both of them? I search the 
Internet but still couldn't figure out how to achieve that goal. And in the 
attachment is the grc file.

Best Regards,
Bob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]