Hi Frank, For the same reason, constellation_16qam is not in the current constellation module yet. Unlike 8psk_natural which you have a replacement constellation_8psk, no 16-ary constellation is available in current constellation module.
You can try to modify the cdma_parameter.py by deleting the tcm type 16qam+rate 2/4 convolutional code. Just delete digital.constellation_16qam() in payload_mod, pdir+ awgn2o4_8_ungerboeckc.fsm in fsm, and trellis.fsm(4,4, blabla...) in uncoded_fsm. If I missed anything, please be careful to delete anything related to 16qam and 2/4 cc code. It would be easy. You should be able to run it with two tcm types. Best, Zhe On Thu, Jan 15, 2015 at 6:24 PM, Frank Pinto <frankpint...@yahoo.com> wrote: > I have applied the change, now the error reads: AttributeError: 'module' > object has no attribute 'constellation_16qam' > > > On Thursday, January 15, 2015 3:37 PM, Achilleas Anastasopoulos < > anas...@umich.edu> wrote: > > > OK, great. > > This is due to the fact a recent pull request has not yet been merged into > gnuradio. > SO the constellation module does not have yet the > "constellation_8psk_natural" > constellation. > > There is a simple fix to that: > > please go to your gr-cdma/python directory > and edit the file > cdma_parameters.py > In particular in line 124 change "digital.constellation_8psk_natural" with > "digital.constellation_8psk". > > Now you have to make, sudo make install, sudo ldconfig one more time. > > Once you do that, please open a python session and redo > > >>> from cdma import cdma_parameters as cp > > and let us know what you get. > (if you don't get any errors you are ready to go!) > > > Achilleas > > > > > On Thu, Jan 15, 2015 at 1:25 PM, Frank Pinto <frankpint...@yahoo.com> > wrote: > > The result is: > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/local/lib/python2.7/dist-packages/cdma/__init__.py", line 34, > in <module> > import cdma_parameters > File "/usr/local/lib/python2.7/dist-packages/cdma/cdma_parameters.py", > line 124, in <module> > payload_mod = > [digital.constellation_qpsk(),digital.constellation_8psk_natural(),digital.constellation_16qam()] > AttributeError: 'module' object has no attribute > 'constellation_8psk_natural' > > > > On Thursday, January 15, 2015 1:14 PM, Achilleas Anastasopoulos < > anas...@umich.edu> wrote: > > > Frank, > > Please do the following and report to us what you get. > > Open a python session and write > > >>> from cdma import cdma_parameters as cp > > What is the result of this? > > Achilleas > > > > On Thu, Jan 15, 2015 at 12:12 PM, Frank Pinto <frankpint...@yahoo.com> > wrote: > > Hello Sir, I just tried that and the first the hier block > "amp_var_est_hier.grc gets compiled with no issues. > However the others are producing errors in certain blocks and can > therefore not compile. The error states "name 'cp' is not defined. > And the import box is showing this error "Bad import syntax:import > cdma.cdma_parameters as cp". This is where I am stuck at because it seems > all the other blocks that are producing errors has this 'cp' in it somehow. > > > > > > Sent from Yahoo Mail for iPhone > <https://overview.mail.yahoo.com/?.src=iOS> > > At Jan 15, 2015, 11:57:05 AM, Achilleas Anastasopoulos<'anas...@umich.edu'> > wrote: > Frank, > > you have to follow the procedure in README by compiling ONE file at a > time, > and RELOADING the blocks as you go on, ie, > > Load the hier block "amp_var_est_hier.grc", > Compile it (this little button on GRC that looks like a pyramid, a sphere > and an arrow) > Reload it (this little circle button on GRC) > > Load "cdma_tx_hier.grc", > compile it as before > reload > > > Load "chopper_correlator.grc", > compile > reload > > > etc... > "cdma_rx_hier.grc", "cdma_tx_hier1.grc", "cdma_rx_hier1.grc" and compile > them > > Achilleas > > > On Thu, Jan 15, 2015 at 11:35 AM, Frank Pinto <frankpint...@yahoo.com> > wrote: > > Hello Sir, I have read the readme.md file already. My first issue is > where it states to "load all the hier blocks and compile them". When I > loaded them via the GRC by clicking on "open an existing flowgraph" and > selecting the files, I see that they all are missing some variables, > information, and even blocks, and are shown as red. > I have taken a picture to show you this. I am using version 3.7.5.1 of > GNuRadio by the way > > > > > Sent from Yahoo Mail for iPhone > <https://overview.mail.yahoo.com/?.src=iOS> > > At Jan 15, 2015, 11:29:05 AM, Frank Pinto<'frankpint...@yahoo.com'> wrote: > Sir, I have read the readme.md file. My first issue is where it states > load all the heir blocks and compile them > > > On Thursday, January 15, 2015 11:13 AM, Achilleas Anastasopoulos wrote: > > > There is no such instruction to be executed! > > Please read the README.md file and let us know which one of the detailed > instructions mentioned there you don't know how to execute. > > Achilles > > On Thu, Jan 15, 2015 at 10:52 AM, Frank Pinto <frankpint...@yahoo.com> > wrote: > > Ok. First instruction that I do not know how to execute is the import > variable block that says "import coma.cdma_parameters as cp". What exactly > am I supposed to be replacing in this section. > > > On Wednesday, January 14, 2015 7:08 PM, Frank Pinto < > frankpint...@yahoo.com> wrote: > > > Ok. First instruction that I do not know how to execute is "import > coma.cdma_parameters as cp". What exactly am I supposed to be replacing in > this section > > > On Wednesday, January 14, 2015 6:54 PM, Achilleas Anastasopoulos < > anas...@umich.edu> wrote: > > > Please follow the detailed instructions on the README.md file and > let us know which of these does not work for you > (or which of these instructions you don't know how to execute). > > best > Achilleas > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > > > > > > > > > > > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > -- Zhe Feng Electrical Engineering: System University of Michigan Ann Arbor Tel: 734-834-3188
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio