I have a labview application that uses FPGA to read analog signals on all six input channels of a sbRIO-9607 board. The FPGA program passes the data through a DMA FIFO to a host program which calls a custom C function through a shared .so library. I am currently using the C function to write the data to CSV files and store them on an external hard disk drive. I need to replace this with a shared memory mechanism so that I can write the data (preferably in CSV files) to some location on the main memory from where another custom C program running on the Linux RT can fetch it. I read about tmpfs storage and hence tried to write directly to /dev/shm. But this caused the RT target to be disconnected from my host computer and stopped the program almost as soon as it started. I could not find any reliable instructions online for setting up a shared memory location on the Linux RT which would work for my case. Any inputs on how to approach this would be much appreciated.
↧