How to take waveform chart data and put it into an array

Hello all,
I am new to programming in Labview, and am learning basically by watching youtube video and such. My question is how to take a set of random data that I have written code for and linked to a waveform chart, and put the data into an array so I can calculate the mean of the data set. If there is an easier way to calculate the mean of the data set I am all ears, but I need to be able to display the mean on the front panel each time the code is run. I have attached a file of my code.
Thanks
Attachments:
CA1.vi ‏11 KB

Welcome.
If you have not done so, look at the on-line tutorials on Getting Started with LabVIEW on the NI web site.
A chart has a property known as History which retains some previous values.  You can get access to the the History property by popping up on the block diagram terminal of the chart and selecting Create >> Property Node. Note that the history length can be set via a pop up menu.  The default length is 1024.
Other comments: When you know the number of iteration in advance you should use a for loop rather than the while loop.
You can also use an autoindexing tunnel at the boundary of the loop to create an array. It only contains the values from the current run, unlike the chart history which can retain values between runs (as long as the VI remains in memory). Watch the two Mean indicators as you run this VI several times.
The error wire is to assure that the history property node runs after the loop.  Disconnect the wire and watch the Mean and Mean 2 indicators carefully.
The Wait is to slow things down a bit so that you can see what is happening.
Lynn
Attachments:
CA1.2.vi ‏11 KB

Similar Messages

  • Does anyone how to take music from ipod and put it on to my computer?

    does anyone how to take music from ipod and put it on to my computer? i desperatly need to do that so please help me!!!! i will download software if i need to

    If you are using iTunes version 7 or later, then you can transfer purchased iTunes store music from the iPod to an authorized computer by using the "file/transfer purchases from iPod" menu. Note that the maximum of 5 authorized computers applies here.
    For all other non purchased music (your own CDs etc) try this method which works on some Windows PCs.
    Enable your iPod for disk use.
    See: iPod Disk Use.
    Open iTunes and select edit/preferences/advanced/general. Put a check mark in the box marked "copy files to iTunes music folder when adding to library" and also "keep iTunes music folder organized", then click 'ok'.
    Connect the iPod whilst holding down the shift/ctrl keys to prevent any auto sync, and if you see the dialogue window asking if you want to sync to this itunes library, click 'no'.
    Then go to file/add folder, open 'my computer', select your iPod and click 'ok'.
    The music files should transfer to your iTunes.
    If this doesn't work (and it may not because officially it's not supposed to), check out the instructions/suggestions here.
    Music from iPod to computer (using option 2). This a manual method using "hidden folders" and although it works, it can be messy.
    Much easier ways are to use one of the many 3rd party programs that copy music from the iPod to the computer.
    One of the most recommended is Yamipod. This is a free program that transfers music and playlists etc from iPod back to the computer. However, it does not transfer playcounts/ratings etc.
    Another free program is Pod Player.

  • How to log waveform chart data in any file at specific interval

     i am using labview 7.0. i want to save waveform chart data in the file at specific interval given by user. Please give me solution for that.
    falgandha

    Open the example finder (Help>>Find Examples) and look at the Write Datalog File example. You can also convert your data to text to save a simple text file. Also, the tutorials in the following links probably cover something similar.
    To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
    Try to take over the world!

  • Good morning, i would like to know how to take pictures from iphoto and put them in a folder on desktop

    Good morning: would like to know how to take pictures from my iphoto and put them in a folder on my desktop

    To take photos from iPhoto and put them onto a folder on Desktop, first create a folder on Desktop. Right-click on Desktop and create a new folder.
    Then, open iPhoto, and you have two ways to export photos:
    1. Select the photos you want to copy to Desktop with Command key (or go to Edit menu > Select All, if you want to copy all photos), and then, drag them to the folder on Desktop.
    2. Select the photos you want to copy to Desktop with Command key, go to File menu > Export, and follow the steps.
    You can choose the one you prefer

  • How do I find the date I put this into operation?

    Hello -
    Is there some place in the computer where I could find out exactly what date that I put in my information and got this machine started in operation? Such as the date and time it was put in place, and how long in hours and minutes that I've been using it?
    Just wondered.....
    thanks

    Well, I tried, but it makes no sense.
    I know I bought mine in 2006, and didn't put it into operation until I got it in my hands sometime in March of that year -
    but the oldest system-related files on my computer go back to January and February of 2006, so I assume those are the dates when the software were programmed and installed -
    Accoding to the iTunes folders as you suggested, it's somewhere in March as well, so I guess that will have to do.
    I am amazed that Apple did not programme something into these computers so that it tells you how many years/month/days/hours that the thing has existed as a complete machine, and then another one for the Owner/Administrator of the machine. It would've been nice to know how much time I have actually spent using it, physically hammering the keys.

  • I would like to know how to take photos from IPhoto and put on thumb drive?

    Would really appreciate the help of anyone who might know how to do this.

    Select the photo or photos you want to put on the thumb drive. then click on file export. then fill in any information you want on the export window. kind jpeg would be the best. medium would be the best the under file name give it a name so you can find the pic on your thumbdrive. the click export. the next window will say save as, so give it the file a name probably the same file name you gave it on the other screen then the next line says where and thats where yoy select your thumb drive, it will usually display the brand of thumb drive you have. if it is already there select ok and your done. if the name is not there hit the arrow at the end of the line and look for the name of your thumb drive and select it then select ok. hope that helpls.

  • I have read 118 files (from a directory) each with 2088 data and put them into a 2 D array with 2cols and 246384row, I want to have aeach file on a separate columns with 2088 rows

    I have read 118 files from a directory using the list.vi. Each file has 2 cols with 2088rows. Now I have the data in a 2 D array with 2cols and 246384rows (118files * 2088rows). However I want to put each file in the same array but each file in separate columns. then I would have 236 columns (2cols for each of the 118 files) by 2088 rows. thank you very much in advance.

    Hiya,
    here's a couple of .vi's that might help out. I've taken a minimum manipulation approach by using replace array subset, and I'm not bothering to strip out the 1D array before inserting it. Instead I flip the array of filenames, and from this fill in the end 2-D array from the right, overwriting the column that will eventually become the "X" data values (same for each file) and appear on the right.
    The second .vi is a sub.vi I posted elsewhere on the discussion group to get the number of lines in a file. If you're sure that you know the number of data points is always going to be 2088, then replace this sub vi with a constant to speed up the program. (by about 2 seconds!)
    I've also updated the .vi to work as a sub.vi if you wa
    nt it to, complete with error handling.
    Hope this helps.
    S.
    // it takes almost no time to rate an answer
    Attachments:
    read_files_updated.vi ‏81 KB
    Num_Lines_in_File.vi ‏62 KB

  • Get matrix row data and put it into header field with formatted search ???

    Hi All,
    I ask your help concerning the following:
    On an invoice matrix I want to check all Itemgroup Codes of all items in the rows, if there are some rows' items with ItemGroupcode 101 and some others with anything else, then header field should be Y, otherwise N.
    My main problem is: how do I put a matrix row data to a header data with checking all rows in the matrix?
    A minor problem is that I can't get the formatted search to work on all rows when the formatted search is assigned to the user field in header.
    If I put the formatted search to a row field then the row field is filled with the proper value, but the same query assigned to the user field in header works only on the first row.
    What am I doing wrong?
    SELECT USEDPROD= CASE T0.ItmsGrpCod  WHEN 101 THEN Y ELSE N END FROM .[OITM] T0 WHERE T0.ItemCode = $[$38.1.0]
    (SBO 7.6)
    Any suggestions are welcome.
    Thanks.
    Bálint

    Dear Adele,
    Thanks for the answer. The major one cannot be solved. OK, I'll try to get a workaround.
    However I still do not understand why my query does not work in all selected rows, just in the first row, i.e. if I assign the query to a header field and I'm positioned in the first row it's OK, but when I add a new item to the second row or any of the next rows, the header field is not updated at all.
    Why is that so? Do you have any idea?
    Bálint

  • Why can't I take email attach. videos and put them into dropbox or somewhere to save them?

    I am using an ipad 4th generation,  version 7.0.2,  IOS 7.1.2.  Memory 16GB,  processor dual coreA6X.
    My problem is: recently my daughter sent emails with video attachments of my granddaughter swimming.
    They came as 3MP and easily opened.  I now would like to get them off my email and I'm unable to do so.  I
    have downloaded both dropbox and power photo to put them in but I haven't been able to.  Both say tap the file
    and a drop down with "open in" will show.  I only get open, copy, open in new tab.  I have tried everything that I
    can think of.  I am not computer literate at all.  Please help me out.  Any and all ideas will be appreciated.
    Thank you all very much, Connie

    LIzdance40,
    thanks you you for a reply so fast. Yes I'm using Safari gmail.  I will see if I can use your idea to fix my problem. Connie

  • How can I load the data of Manager Beans into an Array?

    Hi all!
    I have a problem when use the ADF model layer (JDeveloper 10g). I want to load the data of a Manager Bean into Array(such as: Array in JavaScript).But I don't know any ways to do.
    Are there any ways to do that?
    Please, help me!
    Thanks so much!

    Hi,
    there is a fundamental difference between an array in Java and an array in JavaScript as the latter is added to the output page while the first sits in a Java class on the server.
    Populating a Java array from a managed bean is straight froward: Just create the Array, loop through the source of the data - ADF binding or the ADF Faces table component - and fill it.
    For a JavaScript Array I would suggest to write the array into a js file and reference it from the web page (which might cause concurrency issues).
    Frank

  • On Adobe Acrobat Pro, how do I take a PDF file and convert it into an excel file?

    I am not sure how to take a PDF file and change it into an excel file. I have Adobe Acrobat Pro. Thanks!

    Using Acrobat XI Pro.
    File - Save As Other - Spreadsheet - Microsoft Excel Workbook
    Be well...

  • Taking pieces of a signal and putting them in an array

    Lets say I have a square wave in a large array (1X#samples). I want to
    put the values of each positive part of the square wave into an array
    such that its size is #positivepulses X #samplesperpulse. The only
    thing that I know for certain about the square wave is that the
    non-positive parts of the signal are zero.
    Any suggestions for how I might achieve this?
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    use the java.util.Scanner class.
    read in the file. loop through the lines to get the numbers and put them into an array and/or add them.
    this is something you could have easily looked up on your own. if not in google, then definitely within these forums.

  • How do I take data from a data grid and put it into a variable?

    I am having problems taking data from a datagrid (guess you got that from the title) and setting it to a variable. I am tak
    ing the data from 3 different rss feeds, depending on what button you press, and showing it in a grid. I would like to be able to do more with this data. Here is my code so far:
    <mx:VBox id="vbox" x="70" y="150">
      <mx:Label text="This Data Grid is doing nothing" />
      <mx:DataGrid width="1000" dataProvider="{fullXML}">
       <mx:columns>
        <mx:DataGridColumn id="dataGrid" *dataField="channel.description" headerText="Feed"/>
       </mx:columns>
      </mx:DataGrid>
    </mx:VBox>
    <!-- from test 5 -->
    <mx:Move id="moved" target="{hbox}" repeatCount="0" easingFunction="mx.effects.easing.Linear.easeIn" />
    <mx:HBox id="hbox" fontSize="12" fontFamily="courier">
      <mx:Label text="{website**}" />
    </mx:HBox>
    * this is the data I want to get out
    ** this is where I want to be able to put the variable.
    I don't know if I can do it here or if I need a function or what.
    I would like to be able to put it into an array, but step one is anything at all, so I'm trying just a variable.

    Where do I put that line of code? I see that it goes at the Script part near the top, but how can I use that, I am pretty new to this language. I am not familiar with this line, where does it bind the value from the datagrid to the variable?
    fullXML[myDataGrid.selectedIndex].FIELD_NAME;
    myDataGrid would be the id from the grid I am guessing?
    and selected index would be the channel.description part?
    and FIELD_NAME; is the variable name?
    does this go into a funtion or is it placed at the top where the variables are declared?

  • I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto?

    I have photos on my iphone 4 that i'm trying to transfer to iphoto.  The problem is when I plug the phone in, it only wants to transfer the new photos, not all.  How can I take all the photos off my phone and put them into iphoto? Even if there are duplicates, I'd like to make sure I get all the photos from my phone into iphoto.  Thanks

    To see all the photos on the phone, including photos that have already been imported into iPhoto, deselect the "Hide Photos Already Imported" checkbox. If the camera contains photos that have already been imported into iPhoto, those photos are hidden by default.

  • How do I remove a date and time mark on a stored photo so I can put it into a calendar

    How do I remove a date and time mark on a stored photo so I can put it into a calendar.....?

    In Iphoto, yes.  You can use PhotoShop Elements or some other editor.  You can also crop.  (You might be able to make the retouch brush smaller.)

Maybe you are looking for

  • How do you mail merge in the new pages?

    I have a pages document that I merge with an informational spreadsheet for real estate brochures in our office. However, I can't find a mail merge option anywhere in the newest version of pages. Does anyone know a way around this? Any information wou

  • How to embed index in Acrobat X portfolio

    I have a large number of documents combined into packages in Acrobat 8.1.  I embedded indices into each package and searching was very fast.  When we converted to Acrobat X, they became very sluggish and hard to search -- l ots of messages saying "Ac

  • IDoc via RFC problem between certified app and SAP ECC 5.0 on AS/400

    Greetings. I'm not sure this is the best forum for this question but here it goes: Ever since 2000, we have our certified application for HR-PDC interface. We never had any problem that would be hard to resolve. Recently, we had a customer who instal

  • Podcast App in IOS 8.0

    Listening to Podcasts using the Podcast APP continues to be a struggle and now even worse in IOS 8.0 Anyone have any suggestions how to make listening to Podcast as easy as it used to be. Everytime I go to download my daily podcasts it is a gong show

  • Import/Export Job in management portal.

    I am trying to create an Import/Export job in portal, I read this document: http://azure.microsoft.com/en-us/documentation/articles/storage-import-export-service/ and I am unable to do this, document says download import/export tool, but I am unable