On Thu, Dec 6, 2012, at 08:37 AM, andy pugh wrote: > On 6 December 2012 13:24, Anders Wallin <[email protected]> wrote: > > > 1. Is there a programmatic way in userspace C or Python to read the FIFO > > that sampler writes? > > Yes, you can access the shared memory directly from Python. All you > need is the shared memory key: > SAMPLER_SHMEM_KEY 0x48534130
You probably also need to understand the data structures, as defined here: http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob_plain;f=src/hal/components/streamer.h;hb=HEAD And you might want to look at the existing code that reads data from the FIFO: http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob_plain;f=src/hal/components/sampler_usr.c;hb=HEAD John Kasunich [email protected] ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
