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.

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.
Attachments:
Pressure-HighSpeedRT.vi ‏665 KB
Pressure-HighSpeedFPGA.vi ‏680 KB
Pressure-Comp.vi ‏28 KB

Similar Messages

  • Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • Calling 2 FPGA in Real-Time VI

    Im using an sbRIO and I have 2 FPGA in it. I program both to open in real time. FPGA 1 is regarding getting data from analog signal and FPGA 2 is sending PWM. If these 2 are seperated, I have no problem opening them in real time. When I combine them together in a single real time VI, only FPGA 2 is working. FPGA 1, which supposedly shows values in charts is just totally empty! 
    Question is, how do I integrate both FPGAs in a single real time VI? Will combining the codes in FPGA screw up the timing?

    I'm pretty sure the sbRIO cards only have 1 FPGA on them.  So when you load the second FPGA code, the first is being overwritten.  You need to make a single FPGA VI that can handle both functions.  If you post your code, we can give more detailed advice.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Real Time ADC/DAC for SMPS using Labview and USB

    Hello all,
    I have asked the sales department this same question, so here's a two-pronged approach:
    I am reserching a control algorithm for a switch-mode power supply, and so far, the simulations for its performance look good.  Now, the goal is to implement the circuit for experimental data.
    I've seen several NI USB DAQ boxes that appear to have the performance I'm looking for (for example, the USB-6211 would have the resolution and sampling rate that I need).
    The control algorithm uses the following math functions:  add/sub/mult/div/exponent, and derivative/integral.
    My question is this: is Labview "strong" enough to take in four channels of 250Ksps data, crunch the numbers in an equation, and spit out the answer to an analog out channel, all in REAL time?  I'm looking for an analog output rate of ~100kHz.
    Thank you for any suggestions that you have!
    -Rick
    Solved!
    Go to Solution.

    Hey,
    So if you were just trying to perform an input or output then the USB-6211 would certainly be able to handle it because the hardware clock would be handling the input/output, not software. However, what you're wanting to do, basically a feedback system, will require software timing (at least for a USB device) because you'll have to be able to actively specify what the output is. So, for that reason alone, and the fact that you want 100kHz output, this device and USB devices in general won't be an option no matter what software you use, LabVIEW or otherwise. On another note, what you're looking to do sounds more like live updating, not Real-Time, which is more about jitter. Bottom line, for these kinds of requirements, you're going to need to move to an FPGA board, something like the NI PCIe-7841R would work. It's more expensive, but for your requirements, FPGA is going to be the only option and it comes down to bus latency as well as software response time. With FPGA, as is shown in the first diagram of the following document, you're basically closing your software loop through hardware.
    FPGA Fundamentals
    http://www.ni.com/white-paper/6983/en
    --Ryan S.

  • Reference monitor doesn't play simultaneously in real time? How is it used?

    I thought the point is to have two monitors playing back simultaneously for scopes / composite or to send to a secondary feed for clients, similar to video village on set.

    Not sure why you started a new thread on this ..but anyway.
    The reference monitor is not designed or suitable for a secondary feed to external monitors.
    It is used to have two looks at same frame eg a composite and a scope
    or two looks at  different frames eg unganged .  This maybe for a CC and grading comparison.
    It is not absolutely vital that it plays in real time for either of these instances.

  • Can anyone provide me the suitable material for labview fpga &labview real time??

    Message Edited by Sithu on 05-27-2008 04:32 AM

    The following link includes training material for both LabVIEW Real-time and LabVIEW FPGA.
    http://zone.ni.com/devzone/cda/tut/p/id/6929
    If you are new to LabVIEW you should start from the LabVIEW Basics material available at the following link.
    http://cnx.org/content/col10241/latest/
    KostasB
    NIUK Applications Engineering

  • Is vision development module in labview 8.6. sufficient for real-time image acquisition and analysis using a webcam

    Hi, 
    I'm new to labview and trying to develop an eye-tracker using labview 8.6. It has the vision development module and i was wondering if this was sufficient for real-time image acquisition and processing or would i be needing any other software tools.
    Solved!
    Go to Solution.

    Hello, certainly it is possible and sufficient for real-time tracking!
    About eye tracking - if you need an example, you can find the code here:
    https://decibel.ni.com/content/blogs/kl3m3n/2013/10/08/real-time-face-and-eye-detection-in-labview-u...
    The code uses OpenCV functionalities along with the LabView UI (and some other functions like overlay).
    Hope this helps a bit.
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."

  • Please provide real time scenario for when we use object type in PL/SQL.

    Hi Experts,
    When we use this kind of code in PL/SQL block.
    CREATE OR REPLACE TYPE sample_object IS OBJECT
    (id       NUMBER
    ,name     VARCHAR2(30));
    CREATE OR REPLACE TYPE sample_table IS TABLE OF sample_object;I have read some docs ,but I didn't get any information where exactly we use this.
    Please provide one real time scenario with an example.
    How this is different from record.
    Thanks in advance.

    Hi,
    For an example please have a look at this....
    CREATE OR REPLACE TYPE FML_DAT_ITEMS_OBJ AS OBJECT
                      (F_NAME VARCHAR2 (20), L_NAME VARCHAR2 (20));
    CREATE OR REPLACE TYPE FML_DAT_ITEMS_FTAB AS TABLE OF FML_DAT_ITEMS_OBJ;
    CREATE OR REPLACE FUNCTION GET_FML_ITEMS_DAT (PFML_NR IN NUMBER)
       RETURN FML_DAT_ITEMS_FTAB
       PIPELINED
    AS
       OUT_REC   FML_DAT_ITEMS_OBJ;
    BEGIN
       SELECT FML_DAT_ITEMS_OBJ ('peter', 'zwan') INTO OUT_REC FROM DUAL;
       FOR I IN 1 .. PFML_NR
       LOOP
          PIPE ROW (OUT_REC);
       END LOOP;
    END GET_FML_ITEMS_DAT;To view the o/p:
    SELECT * FROM TABLE (get_fml_items_dat (5));
    F_NAME, L_NAME
    peter,zwan
    peter,zwan
    peter,zwan
    peter,zwan
    peter,zwan Refer these links to know more about the topic...
    http://www.oracle-developer.net/display.php?id=207
    http://www.oracle-base.com/articles/misc/pipelined-table-functions.php

  • Can anyone send real time questions which is very useful for interviews?

    Appu

    Hi Gayathri,
    Can you send the mail id or other wise send text mail to <REMOVED>
    i will send u...
    Regards.
    Praveen Kumar.D

  • Using airport express to extend network/stream music

    Hi,
    I just bought an airport express to extend my network throughout my house and stream music to my stereo system in my living room. My time capsule, which is connected to the DSL modem and is the base station, is in one far end of the house, while the airport express is at the other end. It has greatly improved the range of my network and when using my macbook in the front room, it gets full bars, however, the when using airtunes to stream music with iTunes 9 and OS 10.6, the music will cut in and out randomly and I occasionally get unknown error -15000 when trying to connect.
    I played around with the airport express channels (any channel other than 10 will receive an unknown error -15000 automatically,) adjusted the firewall, and adjusted Netbarrier X, my third party security software. I found information in this article:
    http://support.apple.com/kb/TA21538?viewlocale=en_US
    The only thing that works is moving the airport express close to my computer to remove the physical barriers. It plays perfectly then. Is it possible to buy a second airport express and plug it in halfway between my stereo and time capsule to boost the signal to the airport express plugged into my stereo? Will this solve the problem of the music stream cutting in and out every 10-20 seconds?

    Mad Cow wrote:
    I checked and my signal is -87 and noise is -95.
    At the risk of being the bearer of bad news, that's a rather poor signal value. Here is a description of what different ranges of signal-to-noise mean:
    http://discussions.apple.com/thread.jspa?messageID=10329543&start=1
    In the other post, you mentioned interference from other electronics. Could physical barriers be causing interference also?
    Barriers won't cause interference, but they can reduce signal transmission. How far apart are the two units, how many walls are in between, and of what material are those walls made?
    If this is the case, can I add a second airport express between my base station and stereo-attached airport express to boost the signal?
    In theory something like that might work, but I'm not sure that an AirPort Express can act as a "relay" station between a "main" station and a "remote" station. It might require an AirPort Extreme. Perhaps someone else can comment on that possibility.
    Can you relocate your Time Capsule to an different phone outlet? Can you use longer cables between the wall and the modem and/or between the modem and the Time Capsule to move the Time Capsule to the other side of the room to be nearer to your AirPort Express? Can you use a longer audio cable between your AirPort Express and your sound system?
    You may be able to use a pair of Power-Line units
    (http://computer.howstuffworks.com/power-network.htm) to connect your AirPort Express to your Time Capsule via Ethernet.

  • Using Vi server in real time application

    HI
    I am  using PXIe( 4330, 6363 and 4353) devices and I want to have executable file for the calibration program  ( AI,AO verification procedure and so on). So I think is necessary to have 2 programs for each 'verification procedure', one under host (executable file) and one under target (real time application).  in host program (exe file) I used VI server to call Real time application. There are some problems that I am phasing.
    First I can’t select the channels which the reason is abvious because my host program is under my computer not under target, but I do not know what is the solution?
     and second is, error number 7 occurred. which says : the path file is not correct , or the file is removed... 
    As I mentioned my goal is to have an executable file which contains Real Time application. Please specify If there are other ways to do that. I do not know wether the way I am doing is correct or is somethig impossible ?!!!!!!!
    Attachments:
    Analog input verification.png ‏158 KB
    AnalogInputFrontPannel.png ‏181 KB
    Error 7.png ‏148 KB

    Hi 
    there is no specific reason why I call vi dynamically, as I said I try to generate executable file which contains real time application, but before that I need to run host vi too see if it works or not. I did what you advised and I have same error still. I think there must be something wrong with path address and vi server, but I address .rtexe file or target vi to my host and for both I have error. 
    I have attached the projects here.and I have followed this example : 
    http://digital.ni.com/public.nsf/allkb/A7DBA869C000B5AE862570B2007C4170
    BTW , are there some special configuration for Real time application that I might missed ? 
    thanks 
    Attachments:
    PXIe-6363.zip ‏306 KB

  • Using PXI 6541 in real time applicatio​ns

    Hi,
    I want to use PXI 6541 in real time mood, can it be used in real time applications.

    I am using PXI 6541 for data acquisition from an electronic card. Electronic card generates an interrupt signal and PXI acquire data. The interrupt signal is generated 1 KHz. But using my windows XP, I cant acquire data on this rate. The highest rate that I can acquire data is 50 Hz. If I want to acquire data with 1 K Hz, from electronic card using PXI 6541 and using Windows XP,  What Should I do.

  • How to verify RTSJ use linux real time kernel?

    Hi,
    I'm complete newbie into this area and I'm trying out the RTSJ 2.1 beta Linux. I'm using this on Ubuntu with the linux real time kernel. Is there anyway to find out whether the real time kernel is being actually used or in other words is there a way to find out whether RTSJ works fine with the real time kernel on Ubuntu? I see that the programs get compiled and run irrespective of whether I use the real time kernel or the generic kernel.
    Thanks,
    Vidura

    Hi,
    I would assume, like other distributions, that you either boot the real-time kernel or you don't. uname should show you what you are running, but you'd have to ask the Ubuntu folk what you should see for the RT kernel.
    To see if you are benefiting from real-time, you need to run a RTSJ app that tracks deadline misses or measures latency/jitter. Try it on the non-real-time kernel and the real-time one and see what you get. Some of the examples in the "Getting Started" guide should be usable for these purposes.
    David Holmes

  • Real-time Blacklist (RBL) Servers are they worth using?

    Hi, are Real-time Blacklist (RBL) Servers worth using, and if so what's the best once to use?
    Thanks
    - Cameron

    I agree with Joe. Using just Spamhaus is a pretty good approach. Spamhaus is reasonably conservative about blacklisting servers, so it is less likely that you will reject legitimate servers (which can happen with some more aggressive RBLs).
    Also, if you are serious about this, download and carefully follow Pterobyte's "Frontline Defense for Mac OSX Server" <http://osx.topicdesk.com/content/view/38/62/>. By implementing his tutorial, you will be fine tuning your server so that it rejects about 70% - 80% of spam before it reaching your content filter. It increases the efficiency of your setup a great deal.

  • When I use Call Library Function Node in real time, is the DLL loaded once for all or load every time it is called?

    When I use Call Library Function Node in real time, is the DLL loaded once for all or load every time when it is called?
    I have a time critical real time application, in which I use a piece of DLL function developed by C++.  It is OK?  Could any senior developer assure me?
    Thank you in advance.
    Solved!
    Go to Solution.

    qing_shan61 wrote:
    When I use Call Library Function Node in real time, is the DLL loaded once for all or load every time when it is called?
    Once
    qing_shan61 wrote:
    I have a time critical real time application, in which I use a piece of DLL function developed by C++.  It is OK?
    OK
    Be sure that all DLL calls are thread safe (do not perform calls in UI thread).
    Also for real-time application you need real-time OS.
    Andrey.

Maybe you are looking for

  • Keeps asking for voicemail password

    After installing iOS7 for iPhone 5, the system shows a screen that says voicemail password is incorrect. It appears for any function I try to do. How do I get rid of this annoying screen?

  • Configuration of UWL with Abap webdynpro

    Hi, We are doing configuration of UWL with Abap webdynpro. Our purpose to launch Abap webdynpro application , once clicked to a worlitem in UWL iView. we are unable to do due to following errors. We have done in this way. 1.Created ECC system in EP 2

  • Confirm delivery date problem

    Hi SAP gurus I have a problem in Sales order delivery confirmation date. Now lets say I take todays date as required delivery date. but confirmed delivery date comes to be 2 days later. Now for this material Total replenishment time is 0, GR processi

  • Email and fax capabilities

    We are moving from optio to xml publisher. We were able to send the pdf to printer using pasta. I have no clues how to send the output to Email and Fax server. Any pointers in that direction would be appreciated. Thanks in advance, Suman

  • Enviroment to Regression Test

    Hi, We are configurating ChaRM in Solman 7.1 SP8. Ours landscape initial was DES - QAS - PRE - PRD. We had tha plan to do the regression test in PRE production system. But, we have the need of to create and to release the request in PRE production sy