One can obtain the number of constellation points by using the syntax: constellation.arity() Replace "constellation" with the ID of the constellation object. This will return 'M' representing the number of distinct symbols 2^n.
Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: discuss-gnuradio-bounces+jtjones49=tntech....@gnu.org <discuss-gnuradio-bounces+jtjones49=tntech....@gnu.org> on behalf of Austen, Jeffrey <jaus...@tntech.edu> Sent: Sunday, October 13, 2024 11:24:47 AM To: discuss-gnuradio@gnu.org <discuss-gnuradio@gnu.org> Subject: Getting constellation size as a variable When using the Constellation Object block in Gnu Radio Companion how can one obtain the size of the constellation, M, or the number of bits per symbol? This value is needed so other blocks, e.g. Pack k Bits, can be adjusted accordingly when the constellation size is changed. A simple example would be "Random Source" producing a binary output, followed by "Pack k Bits" to create symbols, then "Constellation Encoder" to convert the symbols to complex-envelope symbol values. Currently when the constellation size is changed it is necessary to also change an additional variable, the number of bits per symbol (which is needed by the Pack k Bits block). I'd like to be able to get this value from the constellation object.