with an average of streaming data

I take analog measurements on a module SCXI 1102C through a PXI for LV2009. I'm running the DaqMx Read 1 d Waveform to 100 samples per second in a while loop that runs every 45-50 MS, it means that I get about 5 data points per while the loop iteration. Even if the program is windows-based, it has a good amount of determinism built in. I now have to make a decision based on an average of 15 samples, preferably 25-50.

I can't slow down the while loop down because there are other channels in data that must trigger some things at the fastest rate possible in windows. I can live with the latency of 50 to 100 ms for the latter, but not the 500 ms I would get if I slowed the loop down to this new task.

Are the only two options that I came to use five registers with shift on the while loop, but I really don't like this idea. Or open the TDMS file while I write these data and read the seconde.25 block that I need a way to make a decision. Also seems to be a bad idea.

A third option, in my opinion, would be to place a Subvi who writes this string to five different functional space and constantly updates their creation of a buffer running. It seems not a bad idea, I just don't know how to implement it yet.

Any option obviously better that I'm missing?

There are two different methods that can be used. If the loop of writing runs more slowly that the loop of the acquisition, then the functional global is to keep a number of samples in it anyway. This allows more data work on when an average.

The other is to use a moving average. I have attached a VI that does this. It's a global functional on its own.

Rob

Tags: NI Software

Similar Questions

  • With an average of meter data

    I have a double precision scalar value to a DAC that represents the current measured in a domestic wind turbine application. This value is harvested in a home made circuit that has a little 'noise problem '.  This noise cause fluctuations in the value of more or less 20%, which appears visually in the gauge of the output of my VI as earthquake of the needle.  The value of the DAC is read and displayed 3 times per second.  I thought that there must be a way to display a moving average of the signal on the last bed N or N seconds that would moderate the noise and the hand shake a little.  Tried to play with the built in RMS VI but the data entry type is table and I scalar double-precision. I'm REALLY new to Labview and swimming with ideas of what must certainly be possible but work always on absorbing the incredibly array of features that this software has.

    Thoughts appreciated.

    You can use Point-by-Point screws.

  • With an average of the data output.

    Hello

    I am a new user of Labview. I need to write a labview program that will average my output in a single data data.

    Basically I have an XY graph which results in a table and the idea is to average the data points.

    This is the kind of program that I use.

    Thank you

    Mutah

    Hi Nicole,.

    You can index the table and use the average function (within the mathematics - probability and statistics). Then, you will get the average value of each table. If you want to see the averages in a table, then you can combine average values in a table again...

    Hope this help out you

  • with an average of 5 minutes of data - is no way

    I need average 5 minutes worth of data, save this average and then again on the next 5 minutes of data, with an average of this data block.  I tried to use the average function pt-pt in LabVIEW, but who seems to take an average continuous market, I do not want.  I probably read data once every 0.1 seconds, so I can not used stacked registers at offset, because it would be not very economical. I thought to build a table, but I don't know how to remove all the data at a time on average to it in an efficient manner, and more I'm stuck on the concept of re - create the table/clear the Board after five minutes of data has been collected, averaged and recorded.

    Does anyone have a suggestion?  I would really appreciate any advice or suggestions on how to go about it.

    Keep a running total in a shift register.  When your 5 minutes have expired, divide the sum by the number of samples taken, the sum to zero and start over.

  • With an average of data points

    Hello

    My setup is run by labview and wishes to reduce the noise associated with my data by taking more medium.

    I would like to have the medium-sized data points and taking the average of them and save only the average at the same time the experience is

    instance. For example. My experience is voltage vs field. For each field, I want three readings of voltage and the software must calculate the average, then

    Enroll in the average in the data file. The reason why I do not repeat the measurement, it is that it would take some time to do it this way.

    Can you advise how to do this with labview.

    Thank you very much

    Hi Alain,

    Take a look at the attached vi. I think that this will solve your problem. It takes the average of the 3 simultaneous values of an array of random number and saves it in the txt file that you need.

    Kind regards

    Amine31

    (Bravo to give good answers, mark it as a solution if your problem is Sloved)

  • Covered wagon with an average of analog voltages DAQmx

    I searched through screws, I can't seem to find something that will automatically average numbers of boxcar fed into it. I am trying to create a feature of my software that will allow the dynamic configuration of the car covered with an average of some inputs. I would like to avoid hard-coding tables which are filled/rotation etc etc.. Any help is appreciated

    Thank you

    If you use a Functional Global to store the values and call that VI of two different screws, you will access the same data. You could use two Global in the functional shift registers and use a selector to place / extract data from / to the appropriate shift register. Only VI call access one commune VI at the time, so one of the caller of the screw will be 'blocked' until the first caller is done. This does not usually work for data acquisition applications high speed.

    You might consider using named queues instead of functioning overall. You might be interested in this thread on the forums of LAVA that deals with boxcar implimentations. You create a queue for each data stream and can perform functions such as "preview" queue to get all items without actually removing them from the queue. If you use a LabVIEW 8.6, there is a new feature called with loss of queues. You set an upper limit on the size of the queue and "lossy enqueue" allows to add items at the end of the queue. If the queue fills up, then the oldest data element will be lost.

  • With an average of a spectral waveform and view / save

    Hello world!

    I am currently on a University project that consists on the use of Labview to obtain data and spectra of atmospheric plasmas using a spectrometer Ocean Optics HR4000.

    After not not using Labview for almost a year, I managed to get most of my knowledge back and I managed to display the spectral waveform, that I expect to get. However, as this is a fairly simple design I get a lot of noise and I would on average it for a graphic display more smooth.

    I looked into a lot of messages from the forum, but I couldn't really find what I was looking for.

    I also had a problem when you try to save the data and Spectra: I can't find anything in the directory of my VI.

    In the attachment you will find the current VI I'm trying.

    Thanks in advance for your answers!

    Jeremy

    I wrote an example for you below. This is an excerpt from VI, so you can drag the .png in your diagram and it becomes code. Pretend that everything in the green box is your Subvi spectrum acquisition.

    -Place the Subvi in a loop to run as many times as you like on average there

    -Out of the loop For is a table 2D with individual spectra on the lines

    -Transpose output, so individual spectra on the columns

    -Enter the table another loop to take the average rank by rank (with an average of different Spectra togeter).

    -Output is 1 d spectra average table

  • Taking the average of the data in real time

    Hi all experts!
    I am a new Member in labview. I have a "stupid" question that takes a lot of my time. Please help me.: mansad:
    The problem is that the way to take the average of the data in real time. For examples, firstly take averages of 100 samples and then then wait 100 samples and averaging them and so on...
    In any case, thank you very much! : manhappy:

    Hello

    Maybe this will help you...

    Kind regards...

  • Event ID: 7024 with error message: "the Windows Firewall service stopped with the error service specific data are invalid.

    Original title: cannot start Service Windows Firewall: Error Code 13

    Hello.

    Anyway, the Action Center has begun randomly telling me that the Windows Firewall is disabled. When I try to start or return to the default settings, it tells me that it is not able to do.

    I went to Services and Windows Firewall is set to automatic, but it is not started. I try to start it and it tells me that it is not able to do the same. The error code is 13.

    I am an administrator.

    MalwareBytes did find and delete a virus named "Disable.SecurityCenter", but after removing that I am still unable to start the Service.

    Can someone help with this problem?

    Edit: The journal ID is 7024 and description:

    "The Windows Firewall service stopped with the error service specific data are not valid... '. ».

    Hello, Connor

    You can try to perform a system restore to before that the problem started. For instructions on how to proceed, see the following ink: System Restore: frequently asked questions

    You can also try running a SFC scan to check (and repair) system corrupt/modified files. To do this, go to start, all programs, accessories, click with the right button on command prompt and choose Run as administrator. In the command prompt, type the following command and press ENTER: SFC/scannow

    David
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • Server error blackBerry Smartphones with a total loss of data

    January 1, my torch met a server error.  I bring periodically and do not think that writing the code, I remember there was a.  The phone has not answered a few attempts to restart, then I put down and returned to it in ten minutes.  The phone has restarted and now displays "Please register your blackberry" or something like that.  Obviously, a bad sign!

    I lost all data and settings.  I didn't know what a big deal, he would be seen has just adopted this smart phone a few months ago.  It seems that all is lost and there is no way to recover whatever it is, I never made a backup.  I had been deceived into believing that AT & T or RIM could restore the data for me!  Laughing out loud.  For later use, it looks to downloaded the Destop Manager and make regular backups will solve the problem.

    Is it possible to recover all (or part?) the data and settings, I've lost?  And does anyone have any experience with server errors that totally erase your torch?  I'm a little worried about maintaining the integrity of the phone!  Thanks in advance for any help.

    For some reason, your phonetic search phone wiped itself.  With no backup in place, data are missing.  You're right, however, the Office Manager is a good idea to make backups.  You can also load a blackberry protect on the device, so you can have a backup online as well.  It works behind the scenes and live which is useful.  Check

    http://us.BlackBerry.com/apps-software/protect/

  • I bought the photo Illustrator and ask the Adobe site plan for individuals with credit cards, but to date I have not received the confirmation email. How can I contact for more information on the good end of the order?

    Hello 11/18/2015 I bought Illustrator photo and ask the Adobe site plan for individuals with credit cards, but to date I have not received the confirmation email. How can I contact for more information on the good end of the order?

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    .

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    .

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • What I see if I work with Microsoft and exchange of data on the creative clouds with people working on Apple?

    What I see if I work with Microsoft and exchange of data on the creative clouds with people working on Apple?

    That all depends on what you want to share

    The data files that are "industry standard" such as the JPG images are the same on both platforms

    Files that are specific to the platform, such as video files on a Mac or Windows, AVI video files MOV will either require conversion or additional software (to open a MOV file with a Windows program, you must have installed Apple Quicktime for Windows)

    In addition to this, the files that are specific to Adobe... such as the InDesign files... are not always compatible because of new features in newer versions, like a Premiere Pro video project file created in the 2015 version cannot open in 2014 version

    If you have problems with files and specific programs, you should ask for help in the forums for these programs

    If you start the https://forums.adobe.com/welcome Forums Index

    You will be able to select a forum for the specific Adobe products you use

    Click on the symbol "arrow down" on the right (where it is said to see all our products and Services) to open the drop-down list and scroll

  • PRC: Produce lines of assets for a single mistake poster project (the project has no assets with valid in the service dates).

    Project number project name Exception reason

    -------------------------- ------------------------------- -------------------------------------------------------

    15 Jatyuapura the capital project has no assets with valid in the service dates.

    HarvirSinghSaini wrote:

    Project number project name Exception reason

    -------------------------- ------------------------------- -------------------------------------------------------

    15 Jatyuapura the capital project has no assets with valid in the service dates.

    PRC: Generate lines of assets for a range of projects print Exceptions (Doc ID 1519498.1)

    Integrate the movements of stock Oracle Oracle projects to generate lines active & active Interface to capital assets (Doc ID 1392743.1)

    Thank you

    Hussein

  • problem with the locking of the data

    Hi all

    I'm having a problem with the locking of the data.

    When I was trying to lock FY12 real periods. We cannot block periods. The consolidation runs perfect and all entities have the status of OK and all levels of the process are published, but when we try locking... We receive an error that "Consolidation, calculations or translations are required.

    Published by: user10926115 on October 16, 2012 10:34

    We had this problem with our application, as well. I don't know what causes it, but I can advise on our solution.

    In your grid lock, change your Value [None] member. Bear has the value and shows that all entities are in a State of OK or OK SC. However, when we go to the [none] member value, we see that some entities still need calculation. Select the groups that aren't in an OK OK SC or ND OK and select 'calculate '. Once solve us this problem in the [None] member value, we have no problems with locking or unlocking of these entities for periods that have been addressed.

    I would like to know if it works for you.

    Also, if someone else may be able to weigh in on the root of this problem, it would be certainly appreciated by more than just the op.

    Thank you!
    Scott

Maybe you are looking for