Adding a DD:MM:YY HH:MM:SS column into a spreadsheet file next to recorded data

Hi
I'm pretty new to labVIEW and I'm using it for one of my projects at University, I have gotten a little stuck and have search through the forums, but everything I have found seem to be too complicated for what I need.
I have set up a VI that uses peak count to determine the number of times a proximity sensor picks up movement. I then need to record this data in a spreadsheet or text file, (anything that can be read), in a format similar to this:
20.02.10 11:45:03 1
20.02.10 11:45:04 0 
20.02.10 11:45:05 0 
20.02.10 11:45:06 0 
20.02.10 11:45:07 0 
20.02.10 11:45:08 0
20.02.10 11:45:09 1
 etc.
The data from the proximity sensor is either 0 or 1 depending whether the sensor has detected movement or not. The sensor will be attached to a tipping bucket rain gauge so I know how many times the bucket has tipped and when it tipped.
I will attach my VI asap but any suggestions (even if it means starting again) will be very useful.
Thank You in advance
Ben (Civil Engineering MEng Undergrad.) 
NB - I'm using Labview version 8.6 
Message Edited by esuhfz on 02-20-2010 06:09 AM

Joe,
I want to eventually plot the values recorded on a graph of, rainfall (mm) against time (hrs), I therefore placed it all in a loop so that every hour it would record the value to a spreadsheet and then this spreadsheet data could be manipulated at published.
The loop I initially put for a shorter amount of time for testing purposes but in the end it would need to write the files every 3600 seconds.
All the readings I want in one file in the format explained later on in my reply, therefore I want to append the readings and I selected this in one of the settings.
Is there ever a condition where you would have a negative value from your peak detect function?
No I will never have a negative reading – so the absolute value could be removed.
It looks as if you are summing the signals each time through the loop and writing them to a separate file. Is this correct?
I did originally have a summation but this is no longer needed. My basic/initial aim is to record the date and time the bucket tips (explained later on in the reply)
Can you please explain to me a little more about what you’re trying to get this function to do? Do you need separate files?
No I do not need separate files, I am attempting to write into a spreadsheet or other file type:
      DDMMYY in the first column
      HH:MMS in the second column
      Sensor reading in the third column – this reading will either be 0 or 1 depending if the sensor detected anything in that corresponding second.
I therefore want the spreadsheet to look similar to this:
     230210      10:19:00      0 (therefore no rain detected by the tipping bucket rain gauge)
     230210      10:19:01      0 Ditto
     230210      10:19:02      1 Bucket tipped setting off sensor
How does your sensor work? Is there a way to dump the accumulated rain between samples? Is it a float style sensor?
The rain gauge is a tipping bucket rain gauge, (http://en.wikipedia.org/wiki/Rain_gauge). I have mounted the sensor within the rain gauge and it will act like the reed switch in this diagram; http://www.google.co.uk/imgres?imgurl=http://www.weathershack.com/images/tipping-bucket-rain-gauge.g....
Every time the bucket tips the centre of the bucket passes the proximity sensor, creating a peak – hence the peak count, this peak is always higher than 0.02. I have set that due to back noise the sensor creating peaks that were counted this resolved this problem so it now only counts peaks when the buckets passes the sensor.
I hope this helps and many thanks you don’t know how much it means to me to finally get somewhere with this part of my project! Also thank you for your suggestions on standard file name formats etc I will change these aswell.
Kind Regards
Ben

Similar Messages

  • I have nine, 1-page PDF files that are accessible and need to combine into 1 PDF file.  I have tried appending, adding and the combine PDFs process. The file created is not keeping my changes. The created file is partially accessible but I have to re-fix

    I have nine, 1-page PDF files that are accessible and need to combine into 1 PDF file.  I have tried appending, adding and the combine PDFs process. The file created is not keeping my changes. The created file is partially accessible but I have to re-fix issues I had fixed in the single files. I need suggestions on what else can be done if any. Using Acrobat pro XI.

    Out of habit, I tend to combine PDF files in the Page Thumbnails pane by right-click then "Insert Pages" -> "From File". For me, this preserves the tags from both documents, although the tags may have to be moved into the right location (if I recall correctly the tags for the inserted pages get put at the end of the tag structure, regardless of where the pages are inserted), If I first put the tags for the document to be inserted inside a container tag like Section, it makes the process easier. Moving that set of tags to the right place is the only re-fixing that I recall having to do. What behavior are you experiencing?
    a 'C' student

  • HELP!!  I am trying to record a presentation on Adobe Presenter 10, I have had no problems in the past, I added motion to some of the boxes in my presentation, now when I try to record I get this error message!!! Adobe Presenter

    HELP!!  I am trying to record a presentation on Adobe Presenter 10, I have had no problems in the past, I added motion to some of the boxes in my presentation, now when I try to record I get this error message!!! 
    Adobe Presenter
    Adobe Presenter has encountered an unexpected problem while
    working with this presentation.  Try saving your work to a new file and
    restarting PowerPoint.  If the problem persists, consult the Help menu
    item, or contact support at http://www.adobe.com/support/presenter.

    Please provide your system specification. Also is it happening on a specific presentation or every presentation.
    Regards,
    Rajeev.

  • [svn:fx-trunk] 5811: Adding a Flex Builder Flash-Integration and Utilities project to make these files easier for people to work on .

    Revision: 5811
    Author: [email protected]
    Date: 2009-03-31 11:20:19 -0700 (Tue, 31 Mar 2009)
    Log Message:
    Adding a Flex Builder Flash-Integration and Utilities project to make these files easier for people to work on. Flash-Integration is really an intermediate swc that Utilities uses. I've also modified the existing Flex Builder project for flex4tests to build against this new utilities project directly.
    Also change the way FlashIntegration is built--we no longer have a manifest file and just include-classes FlashIntegrationClasses.as.
    QE Notes: -
    Doc Notes: -
    Bugs: -
    Reviewer: Evtim
    tests: -
    Modified Paths:
    flex/sdk/trunk/development/eclipse/flex/flex4test/.actionScriptProperties
    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml
    Added Paths:
    flex/sdk/trunk/development/eclipse/flex/flash-integration/
    flex/sdk/trunk/development/eclipse/flex/flash-integration/.actionScriptProperties
    flex/sdk/trunk/development/eclipse/flex/flash-integration/.flexLibProperties
    flex/sdk/trunk/development/eclipse/flex/flash-integration/.project
    flex/sdk/trunk/development/eclipse/flex/utilities/
    flex/sdk/trunk/development/eclipse/flex/utilities/.actionScriptProperties
    flex/sdk/trunk/development/eclipse/flex/utilities/.flexLibProperties
    flex/sdk/trunk/development/eclipse/flex/utilities/.project
    flex/sdk/trunk/frameworks/projects/flash-integration/src/FlashIntegrationClasses.as
    Removed Paths:
    flex/sdk/trunk/frameworks/projects/flash-integration/manifest.xml

    Thats good news.

  • Adding Data file to existing primary file group with 1 data file

    Currently our databases are configured to only have 1 data file and 1 log file.  I am looking at adding a 2nd data file to the primary group, which will be on a separate lun.
    Will we benefit from adding the 2nd data file (same size as 1st data file and same autogrowth rate) , or should we create a new database with 2 data files (equal size and autogrowth rate), and import the data from the database with the single data file.
    Thanks.
    DJ

    Having another data file pointing to different Physical Volume
    will give you better performance gains. Additionally, you should pre-size them (Same as First Data File) with same growth settings (Preferably in Mb
    instead of Percentages) .
    It is perfectly OK to add another data file to PRIMARY file-group as well and SQL Server will automatically balance the data across multiple files over the period time (Due to Data Striping)
    HTH
    Good Luck! Please Mark This As Answer if it solved your issue. Please Vote This As Helpful if it helps to solve your issue

  • Updated to 7.0.6 on my iPhone 5s and now my phone is all out of whack. It won't sync the new playlists I added after the update though when it's plugged into iTunes it says it's synced. Help please!

    So I updated my iPhone 5s to version 7.0.6 yesterday, and now my iPhone music isn't working properly. It won't sync the playlists that I added after the update though when it's plugged in on iTunes it says that the music is synced. When I select a song in a playlist on the phone it shuffles through the playlists for like 3 seconds and picks a totally different song to play. I tried reinstalling iTunes, I tried restoring the iPhone, is it just a bug with the update? Nothing works. Any solutions are welcome.

    DFU mode? How do I do that? So far the only thing I can do is hold down both buttons to power it on and nothing is on the screen and it wont reconize on my computer....

  • Can't get around this error after adding second dataset...A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset

    I added a dataset to an existing report and broke an aggregation.  In the old (i.e. single dataset) report, this expression below worked fine.  I wanted to get a distinct count of the vst_ext_id field when my educated field was like "VTE1*"
    = CountDistinct(IIF(Fields!educated.Value like "VTE1*", Fields!vst_ext_id.Value, Nothing))
    After adding a new dataset, this no longer works and I get the error " A scope is required for all aggregates used outside of a data region unless the report contains exactly one dataset".  Having done some research online, I found that I
    needed to specify my dataset explicitly and I thought this new expression might work, but still no success...
    = CountDistinct(IIF(Fields!educated.Value,"DataSet1" like "VTE12*", Fields!vst_ext_id.Value,"DataSet1", Nothing))
    Am I missing something?  Based on online responses, this explicit dataset naming convention seems to help most people, but it isn't working for me. 
    Thanks in advance!
    Brian

    I found the answer.  Apparently, my expression syntax was off.  This expression does the trick...
    = CountDistinct(IIF(Fields!educated.Value like "VTE12*", Fields!vst_ext_id.Value,Nothing),"DataSet1")
    I just happened upon this particular syntax searching online.  I was trying to specify the dataset name after each .value, but I never got that to work.   This is the only time I have found this particular syntax online. 

  • [Desktop] Bring Back Local File Info Editing and Dates Added!

    I would like to see the functionality for changing the track info for local files and the sorting of when the local file was added to come back. I used these functions a lot because I have a large amount of music saved on my computer, and I add more often. I liked the ability to change the track's info to make it easier to search for and more organized. The date added function was also essential for organizing my local files because I would have to search through thousands of files just to find the file that I just added. Since these functions were on an older version of Spotify, I don't understand why they would be omitted in the newer versions. Also, fixing the bugs that prevent local files to be synced to my phone for offline playing would be helpful as well.

    Updated: 2015-07-09Hi and thanks for your contribution! A similar idea has also been suggested here:
    https://community.spotify.com/t5/Live-Ideas/Desktop-Restore-Option-to-Edit-Local-File-Information/idi-p/1045037
    Add your kudos and comments there please!

  • Adding keywords in Bridge, causes illegal operand i.e. corrupts the illustrator files.

    Upon adding keywords to a large amount of illustrator files in Bridge (mainly .eps but also some .ai), more than half of the files are now corrupt, giving me the following message:
    Can’t open the illustration. The illustration contains an illegal operand. Offending operator: {eps_metadata_stream}
    Context: ‘5
    It should be noted that ALL of these files were 100% okay prior to adding some keywords in Bridge.
    Does anyone have an idea how to repair corrupt files, and whether this is a known bug?
    setup:
    I haven’t yet had the time to update to CC2014, and am still using the previous CreativeCloud setup running OSX 10.8.5.

    We just started using Bridge and I am on OS 10.9.5 and using Creative Cloud and we are running into the same situation. I load the images into the Bridge and have no issue with Photoshop files, but the Illustrator .eps files get corrupt when I add in keywords to Bridge for them. Haven't been able to find a solution to fix this so currently I'm just not adding in keywords which makes it difficult for our designers to search for these files to use on their projects.

  • Adding description column into wizard generated matrix report

    Hi,
    I currently have a matrix report that reports rows as job names and columns as media type. the intersection is the media code.
    for example i have a job called abc and it has envelopes(e1,e2), base stationary (s1,s2) and inserts (i1,i2).
    job envelope base stationary inserts
    abc e1 s1 i1
    e2 s2 i2
    so far i have no problems. what i would like to do is add a description entry next to the inserts column. the description is only for the insert and only needs to be shown when an insert is present.
    any ideas? i have tried adding in an additional field, however, i get some type of grouping error (my reports has just crashed so i can't get exact error)
    thanks in advance for the help!

    Hi,
    If I understood you right. Place the txt next to the insert field, then right click on the txt field and go to 'Conditional Formatting' then New. Put it in, if the value of Insert column is null, then click the 'Hide the Object' checkbox.
    -Marilyn

  • Why is Illustrator adding a slash to the beginning of all my exported artboard image file names?

    When ever I export my artboards as JPGs for my client to view Illustrator has recently started adding a slash to the front of the file name.
    For example, until a recent update my files would look like this when I exported them. As one would expect:
    artboard_image_01.jpg
    artboard_image_02.jpg
    artboard_image_03.jpg
    and so on...
    But now when I export it does this, even though there is no slash in the file name:
    /artboard_image_01.jpg
    /artboard_image_02.jpg
    /artboard_image_03.jpg
    and so on...
    I'm using Illustrator CC 2014 on a Mac running Yosemite 10.10
    Any thoughts? It's really annoying and driving me crazy.

    I noticed it immediately after updating to the latest version release of Illustrator CC, so I don't think it's the OS. If I need to step back to an older version I will, but I hoped there was a fix.

  • Problem when adding ascx user control in the MasterPage: Parser Error Message: The referenced file ... is not allowed on this page.

    Hello,
    I have to maintain a SharePoint 2010 project, in which a TopNavigation User Control for SiteCollection is registered in the MasterPage in this way:
    <%@ Register TagPrefix="ABC" TagName="TopNavigation" src="~/_layouts/ABCApplication/MainSite/Navigation/TopNavigation.ascx" %>
    <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server">
    <asp:ContentPlaceHolder id="PlaceHolderHorizontalNav" runat="server">
                                        <ABC:TopNavigation ID="TopNavi" XMLDataLocation="/_layouts/ABCApplicatopm/MainSite/TopNavigation.xml" IsRoot="true"
    runat="server" />
    </asp:ContentPlaceHolder>
    </asp:ContentPlaceHolder>
    When I deploy the SiteCollection, the TopNavigation user control is working correctly. Unfortunately when i modify the masterpage over SharePoint Designer, the following error message comes allways, regardless of the art of changes i did in the MAsterPage
    ( even if I open the MasterPage, add an space and do save/close the MasterPage).
    "Problem when adding user control in my custom master page, Parser Error Message: The referenced file '/_layouts/Navigation/TopNavigation.ascx' is not allowed on this page."
    Any ideas?

    Hi Simon,
     When we use UserControl in SharePoint Page or MasterPage, and the UserControl is kept in any folder other than ControlTemplates, we will got the error. Here is an article about this issue and provided the solution:
    http://sharepoint-tina.blogspot.com/2009/07/referenced-file-pathxyzascx-is-not.html 
    The solution can also be used in SharePoint 2010.
    Qiao Wei
    TechNet Community Support

  • I have spent a long time getting my iTunes library fixed up. Adding album artwork to songs that had no album artwork, added artist and all the other metadata that goes into a song. How can I move my library exactly the way it is to my new computer?

    It would be great if anyone could answer this, I don't feel like having to go through all my songs again and redo them.

    Copy the ENTIRE iTunes folder from the old computer to the new computer.

  • HT1296 so itunes deleted all my music from itunes, I still have all the original files however I unwittingly added new music after this happened which wipes the itl and xml files. I have my playlists on my iphone. how do I get itunes back to its original

    If this cant be resolved I think apple and I shall be parting ways its been a long time in the coming

    Also, what causes this, so I can avoid it in the future?

  • Just added Mavericks 10.9.1 and can no longer add an Excel file creating yesterday to an email message created on my MacBook Pro. I can locate the file in my Excel icon but not to attach to an email

    Need help in attaching Excel files to emails......Excel spreadsheet created yesterday cannot be located to attach? The file can be located by entering the Excel icon but not visable when creating an email and attempting to attach.....seems to only inpact newly created files?

    Support - Office.com - Microsoft

Maybe you are looking for