Re: [casper] FW: How to use snap?

2009-06-01 Thread Wan.Cheng
HI Glenn: Thanks for your great help. By the way, what's the offset when I read from snap_bram? 1 or 4? Thanks Wan From: G Jones [mailto:glenn.calt...@gmail.com] Sent: Wednesday, 27 May 2009 11:31 AM To: Cheng, Wan (ATNF, Marsfield) Cc: casper@lists.berkeley.ed

Re: [casper] FW: How to use snap?

2009-06-01 Thread G Jones
Wan, I think that depends on how your programming language of choice treats the file. For example, in C if you just open the file, you can read out one byte at a time, or you could read 4 bytes at a time and cast it as a 32 bit integer. Glenn On Mon, Jun 1, 2009 at 5:05 PM, wrote: > HI Glenn: >

Re: [casper] FW: How to use snap?

2009-06-01 Thread Wan.Cheng
Hi Glenn: Thanks for your quick answer. Now I could read ADC data from Roach through the snap_bram. But unfortunately, it seems that the data I read is not right. I am using the tcpborphserver at port 7147.The command is wordread. Do you have some experience with Roach? Thanks Wan __