[casper] 回复: Programming a ROACH2

2016-10-11 Thread lij...@xao.ac.cn
mybe your katcp is too new(0.6?),try to install 0.5.5if you use pip,just run : sudo pip install katcp==0.5.5发自我的华为手机 原始邮件 主题:Re: [casper] Programming a ROACH2发件人:David MacMahon 收件人:Jason Manley 抄送:Casper Lists ,Ryan Monroe I think the intent of exit_fail() is to try to close the con

Re: [casper] Programming a ROACH2

2016-10-11 Thread David MacMahon
I think the intent of exit_fail() is to try to close the connection, ignore any exceptions raised while trying to close the connection, and then re-raise the original exception that happened before exit_fail was called, but I think the implementation is flawed. Here’s the definition of exit_fail

Re: [casper] Programming a ROACH2

2016-10-11 Thread Jason Manley
Some of the earlier scripts had bad error handling. If anything fails before the host object was successfully created, then you get this error because it tries to close the connection before exiting. Jason On 11 Oct 2016, at 16:09, David MacMahon wrote: > >> On Oct 11, 2016, at 06:46, Heyste

Re: [casper] Programming a ROACH2

2016-10-11 Thread David MacMahon
> On Oct 11, 2016, at 06:46, Heystek Grobler wrote: > > Connecting to server 192.168.33.7 on port 7147... FAILURE DETECTED Editorial comments on error handling in tut3.py aside, I think the fact that "FAILURE DETECTED" follows "Connecting to server…" on the same line (i.e. no newline charact

Re: [casper] Programming a ROACH2

2016-10-11 Thread Marc Welz
I can't answer the question directly, there is a C utility which will program fpg files into roach2s, called kcpfpg - it lives on github in ska-ska/katcp_devel - run the toplevel makefile then cd into fpg and there should be the utility regards marc On Tue, Oct 11, 2016 at 12:56 PM, Heystek Gro

Re: [casper] Programming a ROACH2

2016-10-11 Thread Heystek Grobler
Hi I am now trying to do this manually line by line through ipython. Do anyone perhaps know what is the equivalent for the roach2 of the following function? fpga.progdev() a_0=struct.unpack('>1024l',fpga.read('even',1024*4,0)) a_1=struct.unpack('>1024l',fpga.read('odd',1024*4,0)) On Tue, Oct

Re: [casper] Programming a ROACH2

2016-10-11 Thread James Smith
Hello Heystek, Having looked at the tut3 which is on the website, it is using the older corr library, not casperfpga. It also looks as though it's intended for ROACH and not ROACH2, I'm not sure whether that's an issue. I've never used a ROACH2. I was under the impression that it should have been

Re: [casper] Programming a ROACH2

2016-10-11 Thread Heystek Grobler
Hi James Through ipython I can connect to the Roach and upload the .fga file. I can also ping the roach.The problem comes in using the script with the .bof file. I am very new to python but have training in C, C#, Java and Assembly. I run the script as follows: python tut3.py 192.168.33.7 On Tu

Re: [casper] Programming a ROACH2

2016-10-11 Thread James Smith
Hello Heystek, How cognisant are you with Python? Try opening an ipython session and connecting to your ROACH manually, I think you have been able to do that in the past. This error message means that your network can't reach the ROACH for some reason. Regards, James On Tue, Oct 11, 2016 at 12

Re: [casper] Programming a ROACH2

2016-10-11 Thread Heystek Grobler
Hi Everyone After trying all of your suggestions and install a few more packages is works. I get the following error now when I run the tut3.py script for tut3. heystek@heystek-HP-G62-Notebook-PC:~/simulink/heystek_tutorial_3/heystek_tut3$ ./tut3.py 192.168.33.7 tut3.bofConnecting to server 192.1