LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA to Real Time using DMA to Host using Network Stream

Hi All,

 

So I am working on a project where I am monitoring various characteristics of a modified diesel engine being driven by a dynamometer. I am trying to log different pressures, temperatures, and engine speed. It basically breaks down into two streams of data acquisition.

 

Fast (125kS/ch/s): 

     In cylinder pressure using an NI 9223

     Engine speed via shaft encoder/MPU using same NI 9223

 

Slow (1kS/ch/s)

     Other pressures (oil, coolant, tank, etc...) using an NI 9205

     Various temperatures using an NI 9213

 

My basic architecture is simultaneous data acquisition on the FPGA for both streams. Each Stream is feed into a separate DMA FIFO where it is fed to the RT side. On the RT side each DMA FIFO is simultaneously read and transferred into two separate network streams where it is fed to the host PC. Then the Host PC does all of the analysis, and logs the data to disk. I had this code working on Thursday with great success, then I tried to package the RT VI as an executable so that it could be deployed to the rio and called pragmatically from the host VI. After trying this approach I was told that we needed to do some testing, so I undid the changes and now the slow stream is not working properly. 

 

Since then I have installed LV2013 and installed NI RIO 13 so that I could have a fresh slate to work with. It didn't help however, and now I'm having issues just working in scan mode and with simple FPGA applications. Does anyone know if there are some settings that I could have messed up either building the executable application or deploying it? Or why the fast acquisition is still working while the slow doesn't, even though they are exactly the same?

 

Sorry to be so scatter brained with this whole issue. I really have no idea how it could be broken considering the fast stream is working and the code is practically identical. Let me know if you need more information. I'll upload my code as well.

0 Kudos
Message 1 of 4
(3,222 Views)

Sorry, I didn't upload the code correctly.

0 Kudos
Message 2 of 4
(3,218 Views)

If you could save the VIs for 2012.

when you installed the NI RIO 2013 did you first uninstalled the previous version. In the past I've had problems when I tried adding components to the RIO and there were some unintented behavior. It's a long shot but If you haven't tried it, uninstall all the software in max and reinstalled the new RIO.

Also what exactly do you mean by not workign properly?

 

Dan,

0 Kudos
Message 3 of 4
(3,208 Views)

Hopefully these files work. 

 

The "fast" stream gives data points every 8us without fail, as that is the scan period of a 125kHz sample rate. The "slow" stream on Thursday was giving out data points every 1ms, however, now it gives out data points in a very sporadic interval. Also, the data that it does give out doesn't make any sense, tick count going in the negative followed by positive direction for example. 

 

I did uninstall all of the old rio drivers before installing the new set as well. Ill give it another shot though. 😕

 

Thanks for the reply.

0 Kudos
Message 4 of 4
(3,200 Views)