Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-13 Thread Adam Isaacson
Hi Aravind, Great news that you are up and running. The casper-astro/mlib_devel githash tag you are showing me is the latest one and should work fine. You should now try https://github.com/casper-astro/casperfpga and reinstall the same way you did with the ska-sa casperfpga repo and just confirm t

Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-09 Thread Adam Isaacson
Hi Aravind, If you installed the correct casperfpga then I would expect the following: aisaacson@adam-cm:~$ cd work/git_work/ska-sa/ aisaacson@adam-cm:~/work/git_work/ska-sa$ ipython Python 2.7.12 (default, Aug 22 2019, 16:36:40) Type "copyright", "credits" or "license" for more information. IPy

Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-08 Thread Aravind Venkitasubramony
Thanks Adam. I removed all the casper installs as per your instructions and reinstalled casperfpga. I still get the similar error as before. And the version is also showing up as unknown. So I removed the packages in /usr/local/.. as you said, downloaded all the files in the location you had sugg

Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-08 Thread Adam Isaacson
Hi Aravind, You can remove all casperfpga installs by doing the following: 1) cd /usr/local/lib/python2.7/dist-packages 2) sudo rm - rf casper* This will remove all casperfpga installs. The version of casperfpga you read back didn't look right to me. It should not be unknown. Once you install t

Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-08 Thread Aravind Venkitasubramony
The version returned by is '0.0+unknown.202004081054'. Attached are the fpg and the py files. I tried to uninstall casperfpga and reinstall from the version you had provided. But now I get an error while running ipython and typing casperfpga in the terminal NameError

Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-07 Thread Adam Isaacson
Dear Aravind, The slx file looks correct. This issue does look familiar to me - we used to have an issue with the snap shot byte ordering. I am wondering what version of casperfpga you are using? Please do the following in your terminal: 1) ipython 2) import casperfpga 3) casperfpga.__version__

Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-07 Thread Adam Isaacson
Dear Aravind, I have fixed your slx file - see attached. There were a few issues: 1) sw_reg reg_cntrl yellow block bitfield type was not set to boolean 2) your snapshot, adc_in_snap, was not setup correctly. You have to manually add the names in the snapshot fields - double click on the snapshot

Re: [casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-07 Thread Adam Isaacson
Dear Aravind, Did you know there is an existing, working and completed slx file (tut_adc_dac.slx) for this tutorial in: https://github.com/casper-astro/tutorials_devel/tree/master/red_pitaya/tut_adc_dac I would compare that file with your file attached and look for any differences. I am also goi

[casper] Red Pitaya ADC_DAC Interface tutorial reg

2020-04-06 Thread Aravind Venkitasubramony
Hi I followed the tutorial and created the .slx file. While compiling I got these errors from simulink. Matching "From" for "Goto" 'rp_tut2/adc_in_snap/ss/goto_ss_we1' not found [4 similar] Component:Simulink | Category:Block warning Output port 1 of 'rp_tut2/dac/rp_tut2_dac_dac0_data_i_in' i