Read, save and find average

Hi all, 
I am new to Labview and need some help please.
I need to read data from frequency counter (e.g. 50.000123 MHz), save it and do a simple calculation (find an average).
I only know how to read the data. I would like to display the every 5 or 10 values (in a block of array) save it and then take an average of them.
Just to aknowledge the attached file is not my work but it works with my frequency counter and I found it on this forum.   
Thanks     
Attachments:
fc_control_1.vi ‏56 KB

I can open your VI, don't worry about that. Images do me no good.
Well, do you know how a for loop works? And a shift register? (Actually, you can do this without a shift register because you are generating an array, but IMHO, it's a better solution.)
 Think of what you have to do in the programand write the steps down. Translating the steps into LabVIEW is your last step - It actually comes pretty naturally if you think about what you would have to do physically if you're the computer (since your steps chronologically are analogous to LabVIEW's dataflow), then you just have to figure out which output from one subVI or function goes to the input of the next subVI or function (i.e., syntax).
 BTW, the time function and "Time Delay" express VI are redundant. Take out the express VI.
And, if you just want to write a column of data, isn't "write to spreadsheet file" doing that?
Cameron
To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.
To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
LabVIEW Unit 1 - Getting Started
Learn to Use LabVIEW with MyDAQ

Similar Messages

  • How do I save and find files on the ipad?

    How do I save and find files on the iPad?

    Files/documents need to be stored/associated within an app on the iPad, unlike 'normal' computers there is no file system which allows you to save files with no means of being able to read/use them. So if you want to store a file on the iPad you first need an app on the iPad that supports that file type.
    How you then get the file onto the iPad and into the app will depend on what the app is and what transfer method(s) it supports. e.g. some apps use the file sharing section at the bottom of the device's apps tab when connected to your computer's iTunes, some apps support the transfer of files via your wifi network, the iBooks app uses the Books section of your iTunes (and the device's Books tab) to sync content, and other transfer methods include email attachments, Dropbox etc. The file is then found by going into your chosen app and opening/using the file.

  • How do I uninstall Reader DC and reinstall a previous Reader version?

    I tried the Adobe Reader DC, and find the application's appearance appalling. The icons are ugly, the tool bar on the right border wastes 30% of the viewable area, and I have no intention of using any cloud services. I checked the Adobe support pages for previous versions of Reader. All of the links that say "older versions"  bring me back to the DC installation page.  Where are the other versions of Reader?
    Thanks for the assistance.

    Depending on your operating system, you can download Reader X, XI, and DC from http://get.adobe.com/reader/enterprise/
    You need to uninstall Reader before attempting to install and older version.

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them.
    I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet.
    I have the VBA written but do not know how to open, close and save the code view of the ####.html files. Please ... and thank you...
    [email protected]

    This is actually the code view of file ####.html that I wish to find and replace programmatically where #### is a four digit number cataloguing each painting.... In 1995 I thought this was clever... maybe not so clever now :>)) Thank you for whatever you can do Rob!
    !####.jpg!
    h2. "Name####"
    Oils on acrylic foundation commercial canvas - . xx X xx (inches) Started
    Back of the Painting In Progress </p> </body> </html>
    Warmest regards,
    Phil the Forecaster, http://philtheforecaster.blogspot.ca/ and http://phils-market.blogspot.ca/

  • How do i find previous system after save and install mac os x

    The title pretty much describes my question. Due to the fact that my machine was irritating slow, I re-installed the operating system Mac OS version 10.5.6.
    I choosed the option 'save and install' and followed the prosedure. Afterwards, I got the message that the old system was in a newer version and that I had to upgrade the mashine before I could get hold of the old files. So I upgraded to 10.5.8, but still couldn't and can't find any previous system-map. I then transferred programmes and files from an old PoweBook G4, and the programmes seems to have been transferred all right, but documents are gone and the photos are not recognizable.
    I regret doing the re-installetion! and wonder if its ever possible to recover files from the previous system.
    Oops, I discovered another problem: The word-program doesn't function properly.

    I've just had a look through the MindNode Pro support site, which did actually help (thank you), because it reminded me that Mobile Documents is in ~/Library. I was able to open iCloud files from the Terminal at least (once I remembered to add the .mindnode suffix). MindNode, however, brings up the same error as before. I tried using TextEdit to open a link to a TextEdit document stored in iCloud, and exactly the same thing happened.
    I don't know why this happens, but it seems strange that you can open documents from Terminal in this way, but not from the applications themselves (or cross-application). I've just noticed that the error message I described in the initial post substitutes things like %20 or %22 for certain characters: could that be what's causing the problem, or is that just the way the link is displayed by the error itself?

  • Share, Save as PDF and Find in Page are grayed

    Sahre, Save as PDF and Find in Page are grayed in settings. I uninstalled and deleted Firefox 34.0.1 from f-droid.org. Redownloaded and reinstalled Firefox. I am using a Motorola Droid 3 with Android 2.3.4.

    Are you using a custom rom? Please try our nightly build from https://nightly.mozilla.org select the Android ARMv7 Android 2.3 button.

  • Get user input and find file and read it.....argh

    Ok, so I have to write a program that asks a user for the name of the file they want opened and then it is to read it and then display the max score and the minimum score on the file. also to display the average score on the file. Along with that it is supposed to display how many As, Bs, Cs, Ds, and Fs were on the file IE: a: 1 b: 3 c: 0 d: 4 f: 1. etc.
    Also, the next part is to have the program open the input file and then write all the information to an output file. I was able to do this and have the output file show the peoples names and their score along wtih their grade adn then the whole score average at the end of the output file....
    My question is how do I do the first part by asking the user for the name of file and then for the program to find the file and then display the max, min, average and how many letter grades the class got?

    this is what i have so far and the code before didnt work with JCreator, came up with lots of errors......
    What do i have to do to get the max value and min value to display along with the amount of As, Bs, Cs, Ds, and Fs????
    import java.io.*;
    class extest
    public static void main(String [] args) throws IOException
    // First, open the input file
    TextReader filein = new TextReader(new FileInputStream("test.txt"));
    // Read our number
    int x;
    x = filein.readInt();
    String [] first=new String[x];
    String [] last=new String[x];
    int [] score=new int[x];
    // load data from the input file test1.txt
    for (int i=0; i<x; i++)
    first=filein.readWord();
    last[i]=filein.readWord();
    score[i]=filein.readInt();
         WriteTestFile(first, last, score, x);
    public static void WriteTestFile(String f[], String last[], int score[], int x)
    double average=0;
    // Next, open the output file
    try
    PrintWriter fileout = new PrintWriter(
    new FileWriter("grade.txt") );
    // OK, now write to the file
    fileout.println(x);
    for (int i=0; i<x; i++)
    average=average+score[i];
    if (score[i]>90)
    fileout.println(f[i]+" "+last[i]+" " + score[i] +": "+"A");
    else if (score[i]>80)
    fileout.println(f[i]+" "+last[i]+ " " + score[i] + ": "+"B");
    else if (score[i]>70)
    fileout.println(f[i]+" "+last[i]+ " " +score[i] + ": "+"C");
    else if (score[i]>60)
    fileout.println(f[i]+" "+last[i]+ " " +score[i] + ": "+"D");
    else
    fileout.println(f[i]+" "+last[i]+" " +score[i] + ": "+"F");
    fileout.println("The average score of the class is "+average/x);
    // we're done with the output file
    fileout.close();
    catch (IOException e)
    throw new RuntimeException(e.toString());
    System.out.println("***** Welcome to the Grade Program! *****");
         System.out.println("");
         System.out.println("Please enter the name of the file you want to open: ");
         TextReader input = new TextReader(System.in);
         String fileName = input.readLine();
    System.out.println("The average of the scores is: "+average/x);
    System.out.println("The maximum score is: ");
    System.out.println("The minimum score is: ");
    System.out.println("Number of scores by letter grade:");
    System.out.println("A: ");
    System.out.println("B: ");
    System.out.println("C: ");
    System.out.println("D: ");
    System.out.println("F: ");

  • Why are some jpg images scrambled when they appear in my screen saver?   The same images look fine in Preview and Finder.  Some images appear scrambled in the screen saver 'preview' window and the actual screen saver. Other jpg images look fine.

    Why are some jpg images scrambled when they appear in my screen saver?   The same images look fine in Preview and Finder.  Some images appear scrambled in the screen saver 'preview' window and the actual screen saver. Other jpg images look fine.

    The desktop image is fine, taken from the exact same pool of jpg photos.  However, as soon as the slide show screen saver comes on, the images are scrambled.  What is it about the apple screen saver algorithm that scrambles the pics?

  • When i close the browser it ask whether you want quit or save and quit , when i selet save and quit none of te pages are saved, or if saved where can i find them?

    when i close the browser it ask whether you want quit or save and quit , when i selet save and quit none of te pages are saved, or if saved where can i find them?

    Make sure that you do not use [[Clear Recent History]] to clear the 'Browsing History' when you close Firefox.
    * [[Firefox does not ask to save tabs and windows on exit]]

  • How can I select an area of a picture (larger than one pixel) and find the average RGB values of all the pixels contained inside the area?

    I'm analysing the differences between several different images and I would like to select a large area of each (such as with lasso tool) and find the average RGB value of all of the pixels within the selection area made/

    With the selection you could do a copy paste and use the histogram of the new layer set the histogram source to selected layer.  The eye dropper sample size may also to get the average  of a square area around a point.

  • How to read, write and save a file?

    Hello everybody,
    I have a question about reading , writing and save something into a file (etc text file)
    For example: I want to create a file of football in which there are many key words as: "football", "touch down", "quarterback", "ball", "linebacker", "coach", "player"...
    Now i want to open to read, write one more word "head" ( synonym with "coach") and store it for using next time. How could i do that?
    Could anybody help me about that?
    Thank you very much in advance.
    still_learn

    take a look in the API about FileInputStream and FileOutputStream

  • How can I synchronize my iPhoto events? my iTunes doesn't read them and with the app Images in the iPad I can only find Photos, Albums, Faces and Places, not Events.

    How can I synchronize my iPhoto events? my iTunes doesn't read them and with the app Images in the iPad I can only find Photos, Albums, Faces and Places, not Events.

    I had a problem a couple of months ago when iPhotos suddenly rearranged the order of my Events (Why won't iPhoto let me arrange my photos?) .  I was told "Use albums not events - events are not a good way to organize - albums and folder are designed for organisation and are very flexible".
    Haha!  I should have paid attention and read between the lines!  My iPhotos were highly organised groupings - not according to date but the way I wanted them - and it was so easy to do!  I see now that if I had them all in albums, as per the Apple Apologist suggestion, I wouldn't have this unholy mess I have been left with just to make iPhone & iCloud users happy.  I am now going through Photos and making Albums (of what used to be in my Events)  ... maybe I'll get this finished before they do another non user friendly update!

  • In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    In adobe reader app on iPad, I have a PDF document that added notes and comments to.  Once I left the document and returned to it, the notes and comments were gone.  Where are they?  I clicked "save" and "done" buttons after I entered text.

    The application auto-saves your input when you close the document.  If you left the document, as you state, the notes/comments should have been saved and should have been visible the next time you opened the document with the Mobile Reader (note that if you are opening the document with another app such as Apple's built in PDF Viewer, things like notes/comments may not be visible).  Also note that if you are doing an Open In... from another app (like Dropbox), the version of the document in Dropbox does not update; only the version of the document in the Mobile Reader is updated.
    Would it be possible to send a video of the problem you are encountering to [email protected] so that we can try to help?

  • How to disable Save and SaveAs Button in Adobe Reader ??

    I am having Dynamic XML Form (XFA based) designed on LC Designer ES2
    I Want to disable Save and SaveAs button  whenever it would be opened in Adobe Reader only.
    Other way around, i want to provide only facility to save form programmatically through Javascript to apply validation.
    Plz help
    Thnx in advance..!!

    I can apply folder level java script ...But How to handle this way on CLIENT SIDE..???

  • Reader X failing on Save and Save As, after the form has been opened for  longer than an hour.

    I'm wondering if anyone else has had this happen or maybe can offer a solution. I have several Dynamic XML forms designed in LiveCycle ES2 v9 that since our ministry switched to Reader X have been failing. At first, the save button greys out (even though new information has been inputed) and the form will only save as. Then the save as function will start to fail if the form is left open.
    Our users are running Reader 10.1 on Windows Vista and so far its only users that have left it open longer than two hours, or over night. These forms have been Reader extended and at first save without issue.
    Unfortunately, just telling the users not to leave it open isn't an option. We just need Reader X to work.
    Thanks in advance for any information you can share about this.
    ~Connie

    Hi Kyle,
    Yes there is a lot of code within the forms. Mostly adding instances, and changing the presence on subforms. These particular forms do not have data connections, or execute any code from a server. The script all runs at the client level.
    I'm checking with the form content owners to see if I'm allowed to post any of them. If they give the okay then I'll put a sample up here.
    ~Connie

Maybe you are looking for

  • Report Export to csv doesn't correct translate additional characters in 3.0

    Hi all, i'am using apex 3.0 and the report export build in function does not export the correct german umlaut ( "ü" is translate to "ü"). My characterset are NLS_CHARACTERSET: WE8ISO8859P1 DAD CHARACTERSET: UTF-8

  • How can i lock my app with passkey

    i want to lock some app like photo and videos and messages whit passkey  it is bad when someone take ur iphone eg to play games and show ur pic and sms :@ i want way to lock it on ios 5.0.1

  • Form Values

    Hey, I have a simple form displaying on a phone, it takes a username and password. On Submit it connects to a Servlet up on Tomcat, which will be used to communcate with Oracle, this works fine! My problem is this, is there any code i can put into my

  • The information on the website got really small.. I don't kwow what I did, but I can't seem to get it back to regular, help?

    I was filling out an application and when I tried to scroll in a small drop down list all the text on the site got really small. As I tried to make it big agian, I did something that changed the page and caused me to lose the application I was almost

  • Need help in String operations

    HI all, I need help in String operations.I am getting file path of an image as c:\test\img\abc.gif" I need to convert it in to c:/test/img/abc.gif". Can any one suggest the solution for this. Thanks, Durga.