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

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

  • 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

  • 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

  • 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

  • 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

  • How do I delete diagnostic and usage data on my iPad 3 please

    Hi, I am very new to iPad/Apple (sorry), have been operating with Windows for so long now, and have recently bought a new iPad 3 Wi Fi Cellular.
    I was wondering around my iPad yesterday and noticed under > Settings > General > About > Diagnostics and Usage Data > Data - pages of apps
    I had downloaded and tried out etc, and than deleted those apps - no longer using them, but all this information is still on my Data page.
    Could you please tell me please how to delete all this data, I have tried unsuccessfully. I have deleted a great many apps, but the data is still there - I would  like to know how to clear or delete the diagnostic and usage data please?
    The other question I have is that all this data must be taking up kb/mb/space on my iPad.
    Thank you so much for your help and advice ~ greatly appreciated.

    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • 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.

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • When and how to update the "saved data" in report ?

    Hi,
    The BO version is "BusinessObjects Enterprise 12.0"
    The case is that, some reports are uploaded withe saved data. while viewing the reports, the reports return the old data.
    How to view the update data while click the "View" in CMC/InfoView ?
    I have tried to schedule it , then can see the update data in "View the latest instance".
    Is there any approach to refresh/update the saved data in the report ?
    Thanks and regards,
    Forest
    Edited by: Forest lin on Dec 5, 2008 12:12 PM

    Hello Forest lin,
    I recommend to post this query to the [BusinessObjects Enterprise Administration|BI Platform; forum.
    This forum is dedicated to topics related to administration and configuration of BusinessObjects Enterprise, BusinessObjects Edge, and Crystal Reports Server.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all BOE Administration queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    When creating a fillable form and saving it as a pdf, the default color of the data fields is a light blue. How do I change the color to something else that will copy better, e.g. a light yellow?

    It's probably the fields highlight color of the application, which you can change via Edit - Preferences - Forms.

Maybe you are looking for

  • Problem in using swing application

    hi friends, iam developed a swing gui in that iam going to give server port number and number of clients handled by the server.Then i press submit button.The action am writed for the submit button is my server program reads the configuration details

  • Is there a way to see who uses a database?

    I'm wondering if there is a way to do some kind of audit in SQL Server, so I can see who is logging into a database that I setup.  One client has the credentials that they need, and that's just fine.  I'm just curious to know if somewhere along the l

  • Indesign CSS crashes when placing a Word document

    I can place images and other file types fine. but have been unable to place word documents, I save, save as, save as an older version of word. It is just appears to be loading, but becomes 'not responding' and I have to shut it down through task mana

  • EXPDP is too slow even though the value of cursor_sharing changed to EXACT.

    Hi We are having a 10g standarad edition database (10.2.0.4) on Solaris 5 which is RAC with ASM. Infact we are planning to migrate it to LINUX x86-64 and to 11.2.0.3. The database size is around 1.3 TB. We are planning to go with an expdp backup and

  • NSM 3.0.4 Agent Not Starting

    Hi, I've just installed NSM 3.0.4 Agents (from the 3.0.4 iso) on OES11 (with all updates), and the agent is failing to start properly. Here's what nsmagentd.log says: 01 2012-07-09 16:57:44 3600 0 8001 1408 7f180acb5700 Initializing Logger, re-openin