Re: PT GUI SINK (name)
You entered Test, but I think you needed to enter “Test” (with quotes) as I think this is a string. Kind Regards, Nik (Sent from a mobile device) > On 12 Apr 2021, at 12:47, alberto.alle...@alice.it wrote: > > > Hi to all! > Today i have another question.. > > I have created a small spectrum analyzer and it work fine. > > But, in the QT GUI SINK, at "Name" field i have writted "Test".but when i > execute in the windows "Test" don't appear ... why ? > > Screenshot attacched > > Tnx > Alberto > > > >
Help with understanding message pair to var
Hello All, I am writing a block that decodes metadata from an incoming stream and I would like the decoded metadata to be available to other downstream blocks. The best way to do this (I think) is to use the message passing functionality, My ultimate aim is to receive multiple metadata values via a single message from a c++ block and then to create a custom Python block which will parse the received message and set multiple variables. For reference I have been looking at the "message pair to var" block, but I am having trouble understanding exactly how the block updates the runtime variable. I think it has something to do with the callback line (self.callback(new_val)) here: https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/python/blocks/msg_pair_to_var.py and the template make statement here: https://github.com/gnuradio/gnuradio/blob/main/gr-blocks/grc/blocks_msg_pair_to_var.block.yml. However, I am not 100% certain. Would someone be kind enough to explain to me exactly how the variable is set so I can determine how to write similar code that will update multiple variables. Thanks in advance! Kind Regards, Nik
Re: Changing a QT GUI Range variable from a custom block
If you can send a message from a custom block this might work: https://wiki.gnuradio.org/index.php/Message_Pair_to_Var I have done this before in C++ but not in Python. On Sun, 16 Apr 2023, 13:53 DİREN ERDEM AYDIN, wrote: > Guys, > > Any idea? sorry for bothering you again.. > > On Thu, Apr 13, 2023 at 12:03 AM DİREN ERDEM AYDIN > wrote: > >> Dear all, >> >> I want to ask you that is it possible to change a QT GUI Range or Chooser >> variable from a custom python block? >> >> I have inserted the flowgraph below. I can track the GUI variables by >> giving their IDs to a constant source, which is then connected to the >> python block. However, I would also like to adjust LO >> frequency (lo_freq) in the custom block, I can define one more output but >> have no idea how that output will affect the QT GUI Range variable.. >> >> Regards, >> dea >> > > -- > *Yasal Uyarı: MEF ÜNİVERSİTESİ bu mesajın içeriği ile ilgili hiçbir yasal > sorumluluk taşımaz.* > *Legal Disclaimer: MEF UNIVERSITY does not accept any legal liability or > responsibility for the content of this message.* >