Kevin, I am eternally grateful. thank you for help, it wasnt so obvious - I mean that expression "[[chooser == i for i in xrange(3)]]"
2015-10-04 16:35 GMT+02:00 Kevin Reid <kpr...@switchb.org>: > On Oct 4, 2015, at 6:02, Przemek Lewandowski <przelew...@gmail.com> wrote: > > > Thank you Kevin for reply. > > > > I have created small system with "multiply matrix" block. And it works > good, BUT I dont how to change it during runtime :) there is input "set A" > - but I dont know how to set it from gui ?? all i know is that input is > async > > Don't use the message port, just the regular GRC dataflow stuff. That is, > you enter for the matrix value a Python expression depending on the GUI > block's value, and GRC takes care of updating it when needed. > > Here's a simple demo. The QT GUI Chooser block produces a numeric index, > and we specify a 1-by-n matrix which will have exactly one nonzero value at > that index: > > [[chooser == i for i in xrange(3)]] > > > > > -- > Kevin Reid <http://switchb.org/kpreid/> > > >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio