On 11/27/2012 05:30 PM, Ryan Monroe wrote:
I'm trying to read/write to ROACH registers and shared_memory elements directly from C. I can read registers correctly, but writing seems to have no effect. Can anyone who has a bit more experience show me what I'm doing wrong? Thanks!
I ran into this too. Have a look at the register length after you have tried to write to it. It was thought that in my case it was because I was tunneling to the ROACH PC. Maybe it's more basic.

Tom

(read command which works)
result = send_rpc_katcl(l, 5000, KATCP_FLAG_FIRST | KATCP_FLAG_STRING , "?write", KATCP_FLAG_STRING, regName, KATCP_FLAG_STRING, "0", KATCP_FLAG_LAST|KATCP_FLAG_ULONG, 0,NULL);

(write command which fails quietly)
result = send_rpc_katcl(l, 5000, KATCP_FLAG_FIRST | KATCP_FLAG_STRING , "?write", KATCP_FLAG_STRING, regName, KATCP_FLAG_STRING, "0", KATCP_FLAG_LAST|KATCP_FLAG_ULONG, 0,NULL);


--Ryan Monroe



Reply via email to