Filtering and saving data simultaneously on FPGA (NI 9223)

Hi, I'm trying to use the NI 9223 Module to save my measured data and to filter it simultaneously. The example I use is "Ni 9223 User-Controlled IO Sampling". I'm able to write the data into the FIFOs at the desired sampling rate, but I can't figure out how to filter the data at the same time. The filtered data should not go into the FIFO, but back to our PLC. Also I only save the data after a trigger, but need to filter all the time.
I already tried writing the data into local variables. But since I get an "overwrite" error, I think this is not fast enough. I attached the Host and FPGA file. MAybe someone as an idea for this problem.
Regards
Annika
Attachments:
NI 9223 User-Controlled IO Sampling (Host).vi ‏306 KB
NI 9223_test_2.vi ‏242 KB

I attached the project with it's SubVI's. I hope I did not forget anything since the project look pretty messy. This is my first time working with LabView and I haven't figured out how to get organized.
I'm using the cRio 9075  with four modules: 9411, 9223, 9263 and 9474.
When  I  start the programm from the Host I can see that my Trigger works, and as soon as the data aquision starts I get the overwrite error.
Attachments:
NI 9223.zip ‏1662 KB

Similar Messages

  • Different values beetween front page and saved data

    Hello,
    I have problems to saved data correctly. I acquire data with Labview 6.0 and a counter/timer card. These data appear on my front page. But when I save them in a table file, their format is modified, rounded.
    For exemple: on my front page values are 20.675 , 21.012 and in my saved file these values are 20.750 and 21.000, even if I checked all the numbers format in the diagram, and declare them in extended precision.
    Where is my mistake ?
    Thank you for your help

    Hello shadok,
    that's strange :-)
    Try this simple example. If this works, then something with your data is wrong...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Test_Save.vi ‏12 KB

  • I cannot use my voice calls and cellular data simultaneously. Is there any fox for it?

    I recently updated mu iphone 4s and now i am not able to use my cellular data and voice calls simultaneously. I am in a great fix. Is there any solution to it?

    Hi Apple ...(you are not),
    Welcome to the Support Communities!
    There are a couple of places where the Apple ID is used, so the first thing I would suggest is to go to the appleid.apple.com website and make sure everything is up to date there.   Then, sign out of your iTunes Store Account and sign back in with the correct Apple ID and password.   Finally, look at the settings for your Computer Administrator account and make sure that is correct as well.   I'm including a few articles for you that explain this information in more detail.
    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/HT5621?viewlocale=en_US
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796?viewlocale=en_US&locale=en_US
    This is the information on how to confirm or change your User Admin account for the computer itself.
    OS X Mavericks: If you forget your login password
    http://support.apple.com/kb/PH14120?viewlocale=en_US
    I hope this information helps ...
    - Judy

  • Question about iphone apps and saved data.

    So let's say I'm playing a game from the app store on my iphone and I beat it. Now I want to buy a new game but I don't have enough space to keep them both on my phone. So I delete the old one from my phone knowing it will still be on my mac. Then I play the new game and beat it and I start wanting to play that old game again. So I put the old one back on my phone and I lost everything I did before. Why? Is there a way I can take an app off my iphone without losing all the saved data?

    Here's how it works (from page 179 of the iPhone iOS4 User Guide).  You can delete apps you install from the App Store. If you delete an app, data associated with the app is no longer available to iPhone, unless you reinstall the app and restore its data from a backup.
    You can reinstall an app and restore its data as long as you backed up iPhone with iTunes on your computer. (If you try to delete an app that hasn’t been backed up to your computer, an alert appears.) To retrieve the app data, you must restore iPhone from a backup containing the data.
    To restore from a backup, see page 257 of the iPhone iOS4 User Guide

  • Promblem about inheritance and saving data

    I have Product class (super class) and Kitchen class (sub class). When I want to create a Kitchen object and write it to a *.txt file. However the error occurs: "java.lang.NullPointerException". What is going wrong? Please help. Thanks
    Product class
    public Product(int aProductID, String aProductName, String aOriginalCountry,
                        double aWeight, double aPrice, String aProductCategory,
                        String aInputDate, String aExpiryDate, double aVatPrice,
                        String aManufacturerName, String aManufacturerAddress,
                        String aWarranty)
        productID = aProductID;
        productName = aProductName;
        originalCountry = aOriginalCountry;
        weight = aWeight;
        price = aPrice;
        productCategory = aProductCategory;
        inputDate = aInputDate;
        expiryDate = aExpiryDate;
        vatPrice = aVatPrice;
        manufacturerName = aManufacturerName;
        manufacturerAddress = aManufacturerAddress;
        warranty = aWarranty;
      }Kitchen class
    public Kitchen(int aProductID, String aProductName, String aOriginalCountry,
                         double aWeight,
                         double aPrice, String aProductCategory,
                         String aInputDate, String aExpiryDate, double aVatPrice,
                         String aManufacturerName, String aManufacturerAddress,
                         String aWarranty)
       super(aProductID, aProductName, aOriginalCountry, aWeight, aPrice,
               aProductCategory, aInputDate, aExpiryDate, aVatPrice,
             aManufacturerName, aManufacturerAddress, aWarranty);
    }The method that write the method to text file
    public void writeInfo()
        try{
          PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter
          ("C:\\Documents and Settings\\Charles\\My Documents\\Kitchen.txt", true)));
          out.println();
          out.write(Integer.toString(productID));
          out.write("  ");
          out.write(productName);
          // More data to write...
          out.flush();
          out.close();
         catch(IOException ex)
            ex.printStackTrace();
    }

    This is the Product Class
    package supermarket;
    import java.io.*;
    import javax.swing.*;
    public class Product {
      // Declare variables
      protected int productID;
      protected String productName;
      protected String originalCountry;
      protected double weight;
      protected double price;
      protected String productCategory;
      protected String inputDate;
      protected String expiryDate;
      protected double vatPrice;
      protected String manufacturerName;
      protected String manufacturerAddress;
      protected String warranty;
      protected double originalPrice;
      protected double calculatedVATPrice;
      public Product() {
        productID = 0;
        productName = "";
        originalCountry = "";
        weight = 0.0;
        price = 0.0;
        vatPrice = 0.0;
        manufacturerName = "";
        manufacturerAddress = "";
        warranty = "YES";
      public Product(int aProductID, String aProductName, String aOriginalCountry,
                           double aWeight, double aPrice, String aProductCategory,
                           String aInputDate, String aExpiryDate, double aVatPrice,
                           String aManufacturerName, String aManufacturerAddress,
                           String aWarranty)
        productID = aProductID;
        productName = aProductName;
        originalCountry = aOriginalCountry;
        weight = aWeight;
        price = aPrice;
        productCategory = aProductCategory;
        inputDate = aInputDate;
        expiryDate = aExpiryDate;
        vatPrice = aVatPrice;
        manufacturerName = aManufacturerName;
        manufacturerAddress = aManufacturerAddress;
        warranty = aWarranty;
      public void writeInfo()
        try{
        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter
        ("C:\\Documents and Settings\\Charles\\My Documents\\testing.txt", true)));
        out.println();
        out.write(Integer.toString(productID));
        out.write("  ");
        out.write(productName);
        out.write("  ");
        out.write(originalCountry);
        out.write("  ");
       // and more data to save...
        out.flush();
        out.close();
        catch(IOException ex)
         ex.printStackTrace();
    public void displayInfo(JLabel D1)
        try
          BufferedReader in = new BufferedReader(new FileReader
          ("C:\\Documents and Settings\\Charles\\My Documents\\testing.txt"));
          String fromAll = in.readLine();
          D1.setText(fromAll);
        catch(IOException ex)
        ex.printStackTrace();
    }This is the Kitchen class
    package supermarket;
    import supermarket.Product;
    import java.io.*;
    import javax.swing.*;
    public class Kitchen extends Product{
          private int productID;
          private String productName;
          private String originalCountry;
          private double weight;
          private double price;
          private String productCategory;
          private String inputDate;
          private String expiryDate;
          private double vatPrice;
          private String manufacturerName;
          private String manufacturerAddress;
          private String warranty;
          private double originalPrice;
          private double calculatedVATPrice;
         public Kitchen() {
         super();
      // The constructor is not working......
      public Kitchen(int aProductID, String aProductName, String aOriginalCountry,
                          double aWeight, double aPrice, String aProductCategory,
                         String aInputDate, String aExpiryDate, double aVatPrice,
                         String aManufacturerName, String aManufacturerAddress, String aWarranty)
       super(aProductID, aProductName, aOriginalCountry, aWeight, aPrice,
                aProductCategory, aInputDate, aExpiryDate, aVatPrice,
                aManufacturerName, aManufacturerAddress, aWarranty);
    public void writeInfo()
        try{
          PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter
         ("C:\\Documents and Settings\\Charles\\My Documents\\Kitchen.txt", true)));
          out.println();
          out.write(Integer.toString(productID));
          out.write("  ");
          out.write(productName);
          out.write("  ");
          out.write(originalCountry);
          // and more data to save...
          out.flush();
          out.close();
    catch(IOException ex)
      ex.printStackTrace();
    public void displayInfo(JLabel E1)
       try
         BufferedReader in = new BufferedReader(new FileReader
        ("C:\\Documents and Settings\\Charles\\My Documents\\Kitchen.txt"));
         String fromAll = in.readLine();
         E1.setText(fromAll);
       catch(IOException ex)
         ex.printStackTrace();
    }Is this look better? Please help. Thanks

  • Filtering and passing data to destination in Xcelsius

    Hi friend,
    I wanted to know the logic to implement a scenario in Xcelsius. Lets say I am having Year,Company and Revenue data in Xcelsius.
    Year--Company--
    Revenue
    2002--Company1--
    1000
    2003--Company1--
    2000
    2004--Company1--
    3000
    2002--Company2--
    1000
    2003--Company2--
    2000
    2004--Company2--
    3000
    2002--Company3--
    1000
    2003--Company3--
    2000
    2004--Company3--
    3000
    I will map the values of year to a combo box with insertion type = "Filter" so that only unique entries can be flowed to combo box. When user will select a entry then that year value will be flown to a destination.
    What I want is when user selects lets say 2003 in combo box then 
    2003--Company1--
    2000
    2003--Company2--
    2000
    2003--Company3--
    2000
    All data of 2003 should go to a destination where I can map this to a Bar chart.
    What should be the approach.
    Thanks,
    Gaurav

    Hi Gaurav,
    Filter combo box wroks on unique row only.To get multiple entries in Destination you need to pull the data in row wise,
    Like in your case,
    If user selects 2003you could have designed like,
                 company1    company2    company3
    2003    1000                 2000             3000
    now select this as a Source whenever user will click on 2003 FilTER combo box will take whole rowas asource and can fill it in your destination which will gain remap to your chart,
    I have tried the same thing,
    Hope it helps you,
    Thank you,

  • Measuremen​t, visualizat​ion and saving data in parallel: Performanc​e question

    Hello,
    I have written an application with 3 loops running in parallel.
    The first loop does only measure and analyze measurement values from a DAQmx device (3 analog input signals from 3 sensors with 1000 Hz).
    The second loop does only do the visualization with a graph per sensor continously. The data will be sent from the first loop through a queue.
    The third loop only saves the data to a file after a measurement has finished. The data will be sent at the end of a measurement from the first loop, too.
    There are 3 measurements running asynchronous.
    That means it could be that only one sensor will be read, but it also could be that 3 sensors will be read. The duration of each measurement phase and the beginning/end is asynchronous.
    Now I have the following problem:
    Measurement 1 starts
    A short time later measurement 2 starts
    Measurement 2 will end, the measurement values will be saved into a binary file
    Measurement 1 is still running but the visualization of measurement 1 stops for about 1 second during the saving process. After the data is saved, the visualization runs normally again (no data is lost because of the queue).
    Why does tha graph stop its visualization during the saving process (I have a dual core cpu)?
    How can I do this in a way, the user does not see any lags?
    It all works fine but the "interrups" look very unprofessional.
    Regards
    Matthias

    Hello,
    I'm using the producer/consumer pattern.
    Maybe it could be, that the dll calls I'm using for saving will interrupt the whole program: http://lavag.org/files/file/212-sqlite-labview/
    When I use the LabVIEW File-I/O vis all is fine. But when I use these database vis my application will lag.
    Any ideas why this is so? Could it be that the dll calls freeze the application during the saving process (LabVIEW 2011)?
    Here are thze dll settings:
    Attachments:
    dll_settings.PNG ‏50 KB

  • High sample rate data acquisition using DAQ and saving data continuously. Also I would like to chunck data into a new file in every 32M

    Hi: 
      I am very new to LabView, so I need some help to come up with an idea that can help me save data continuously in real time. Also I don't want the file to be too big, so I would like to crete a new file in every 32 mega bytes, and clear the previous buffer. Now I have this code can save voltage data to TDMS file, and the sample rate is 2m Hz, so the volume of data increase very fast, and my computer only have 2G ram, so the computer will freeze after 10 seconds I start to collect data. I need some advise from you briliant people.
    Thanks very much I really appreciate that. 
    Solved!
    Go to Solution.
    Attachments:
    hispeedisplayandstorage.vi ‏33 KB

    I am a huge proponent of the Producer/Consumer architecture.  But this is the place I advise against it.  The DAQmx Configure Logging does all of it for you!
    Note: You will want to use a Chart instead of a graph here.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    hispeedisplayandstorage_BD.png ‏36 KB

  • Issue in mail trigerring and saving data in backend(HCM Processes and Forms

    Friends,
         I am facing problem in workflow with HCM... Tell me what is the use of TS17900100 Process form.. After this TS17900100 task i have email step that telling 'Data has been updated successfully' but i haven't wriiten any activity after TS17900100 . with the process form, is it possible to save data in backend..

    Hi,
    This task does the automatic update if the config is designed to do so in backend. Else it will just modify the 'procstat' variable and depending on that you can proceed further. Let me know what exactly error you are facing.
    Thanks & Regards,
    Manas

  • PDF flyer with attached Data Form  how do i upload pdf and submit data simultaneously?

    Scenerio user downloads pdf flyer template with attached data form. user customizes flyer and fills out form. user clicks on custom "Submit" button to send form data to php form.
    On submit, how can i upload the pdf flyer to our server AND still send the form data to php form?
    maybe the local file(pdf) address is sent to the php form along with the form data, then i can use php to upload the file automatically.
    any sugguestion???

    Hi Mr AP,
    are you trying to do this in Reader or in Acrobat? If you're using Reader it won't work unless the form is reader-extended by either LC Reader Extensions on the server or by running it through Acrobat manually and extend the capabilities of the form for reader users (careful - the license of the latter is limited to 500 form recipients).
    If you did try it in Reader with a non-extended form the behaviour you'd see is that it just won't work, so that might be your issue.
    Cheers
    Kai

  • Read Instrument Value and Saving Data

    Hi Everyone,
    I have DSOX3014A Oscilloscope and  33521AQ Function / Arbitrary Waveform Generator . I want to make program that read oscilloscope and waveform generator data and send to tax file.
    What should ı do ?
    Thank for your time and attention.
    Solved!
    Go to Solution.

    I am really beginner.I never tried something so far.I have oscilloscope and arb generator. Also ı have piezoelectric bender(been attach) actuator resonance impedance.I connected oscilloscope and arb waveform generator to my computer. I want to record oscilloscope and arb waveform generator's data to tex file.
    Actually ı don't have impedance analyzer therefore ı calculate piezo bender's resonance impedance this way.
    Seem http://www.ni.com/try-labview/instrument-control/    first video but ı have to convert data to tex file. 
    What should ı do? 
    Thank You for your attention.
    Attachments:
    20150203_231732_Richtone(HDR).jpg ‏840 KB
    Capture.PNG ‏970 KB

  • ITunes 9 - Home Sharing Settings and Saved Game Data?

    The new "Home Sharing Settings" feature to automatically transfer applications from one home computer to another is great. However, it seems like there is a huge omission with this feature if you can't transfer your game settings and saved data when you use this option as a way to change computers to sync an iTouch or iPhone.
    Here's my scenario: originally had iTunes on a Windows PC to purchase and sync up my iTouch. Recently bought another iMac and want to use it as my "master" computer to sync up my iTouch. Used the Home Sharing Settings feature to quickly copy all of my songs (with ratings) and apps from the PC to the Mac. Everything great so far.
    Purchased a few more apps in the iTunes store on the iMac. Plugged in the iTouch to copy the new apps, but of course it wants to delete everything and start over (to be expected I guess). But with that I assume all of my saved game data in my 50+ apps will be lost!
    Any suggestions?

    UPDATE: I've now authorized my laptop with my fiance's itunes account and my personal iTunes account, this is key.
    I'm now able to transfer songs from either her laptop or my iMac (where my music is stored for now) as long as the current logged-in Home Sharing account is active. So it's basically like logging into an ftp server, only one connection allowed at a time.
    So just turn off Home Sharing and then turn it back on again, re-enter the other systems iTunes account info and there you go, you can transfer from that one now. Of course this would be simpler if you were just merging two computers/accounts instead of adding in a 3rd laptop like my experiment. You should just have to make sure all computers involved (up to 5) are authorized for all the iTunes accounts involved.
    And yes using the settings button with in the home sharing window, you should be able to automatically sync any new purchases from the current shared account, music, movies, apps, etc.

  • How to open Excel Template save it under a different name and then write and save data to it at regualar intervals

    I have an excel template that I have created. I am opening that template, saving it under a different name, and then writing and saving data to that excel sheet at regular intervals. It is giving me an error 5, I understand what this means and I am trying to work around it.  However after too many hours spent trying to figure it out, I have asked for any help or input. I have attached an example vi, not the actual one since it is very involved.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Power Cycle Test 3.0 Excel Save Testing.vi ‏18 KB

    This snippet encapsulates most of the previous suggestions, and adds a few of my own.
    The first code shows one (simplified) way of building the output file name.  It incorporates the Build Path function to combine Report File Path with the file name (don't need initial "\"), builds the File Name with Format into String, getting the Time part of the name from Format Date/Time String.  I also use Build Path to get the Template path.  Inside the For Loop, another Format into String gets the data that is placed in the 10 Excel cells.  We don't write anything yet -- we're only filling in the cells in the WorkSheet (think of how you use Excel -- you could, but probably don't, save the WorkBook after every cell entry, you wait until you are all done and then do a Save, followed by closing Excel).  Finally, when we are done, we save the file using the output name we want to use, then close Excel (which disposes of the Report Object).  If we want to generate another report, with another (time-based) name, we can put this code into a sub-VI and simply call it again.
    Don't worry if you don't have LabVIEW 2014 (which was used to save this snippet) -- most of the code comes from the original that you posted, so it should be a pretty simple edit to change that code to match this.
    Bob Schor

  • Filtering and Find by Date : not very intuitive

    Lightroom is a fantastic program fast, stable, easy to use, and generally very intuitive although I am finding the Library Filter in 2.0 to be a step backwards from the search facility in LR1.4. Here are the issues:
    (1) Filtering the Library to find photos between dates used to be easy in the LR1.4 Find panel just type in the from and to date or use the slider or the handy drop down showing last week or last year. But in 2.0 I get two choices of date display: Flat (too long and cumbersome) or hierarchical. Hierarchical is my preferred view but it is not possible to replicate LR1.4 behaviour by filtering between dates: shift clicking between two specific dates in hierarchical view includes too much in the return.
    (2) In the keywords column of the Metadata Library Filter, if you highlight two keywords by shift clicking then you it returns keyword 1 OR keyword 2 surely it should be AND? So if I want to find photos with keyword monochrome and keyword landscape it is not possible in the Metadata Library Filter. The answer is to use the Text Library Filter but Im just surprised it doesnt work in the Metadata filter.
    (3) Another way of keyword filtering is the little arrow next to the number in the Keyword List on the right panel of Library. But that cannot be used in conjunction with the Library Filter - its just one or the other. And if you shift click to highlight two keywords in this panel it is just filters by the last keyword to be highlighted, not both.
    (4) When I switch between folders the last filter used in that folder is retained even on a new Lightroom session. Surely switching to a new folder should either retain the current filter or switch the filter off completely.
    None of these are bugs its done by design. Its not major I know, because all of these issues have work arounds its just that everything else in LR is so intuitive, and some of these issues are a bit of a step backwards from 1.4.

    (1) Use Ctrl/Cmd Click to select the dates
    (2) Selecting keywords within a column is OR selecting keywords across multiple columns is AND. You can configure the panel for up to 8 keyword columns and this can be saved for future use. Again, using Ctrl/Cmd click on individual keywords within or across multiple columns allows you refine the filter.
    (3) The arrow was for Quick filtering of single selection keywords.
    (4) The behaviour is as designed and resulted from all the pi...g and moaning that took place during the life of 1.x. Folk wanted local filters, not the global system that was present in Lr1.x. By default and assuming you haven't already filtered a folder it will be set to None. However, your choice is sticky, so having filtered a folder once it will continue to use that filter until you change it to something else.

  • How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance

    How can I stop music and movies from being automatically deleted from my phone and saved on the cloud? I've just tried to watch a movie on my 2 hour commute, but yet AGAIN it has been removed. I do NOT want to spank all of my data allowance downloading it again, especially because (believe it or not) I added it to my phone because that's precisely where I wanted it!! Any help much appreciated

    FYI I had to put this link into firefox to reply - because **** back safari just wouldn't register my clicks to any of the links on the post... Despite reloadeing and even restarting my computer. Totally annoying and a massive pain in the ***.
    But in terms of my initial query; thanks for responding. But no, this is NOT the cause of the problem. I have auto sync and sync over wifi activated, but have also selected manually manage music and videos. Plus, all of my music and videos are on my macbook, absolutely all of it, so if it my phone was syncing with my macbook everything would still be on the phone. Life would be peachy if my phone jsut copied everything that was on my macbook, but unfortuantely it keeps deleting tracks for no apparent reason.
    Any thoughts greatly welcomed, because at the moment i can only conclude that my iphone is crap.

Maybe you are looking for