Data logging in spreadsheet

Hello,
Please help me . Urgenttttttt.
I wrote labview program for temperature and voltage measurement. I want to store those data in spreadsheet. Can any one tell whats wrong in my labview program as i cant get those datas in spreadsheet . Please check attachment .
Attachments:
12th.vi ‏32 KB

Attached is a simple example that simulates the generation of voltage and temperature and logs it to a delimited text file.
Attachments:
Log To File.vi ‏16 KB

Similar Messages

  • Which is the best structure for start/stop data logging?

    Hi everybody,
    hope I can explain my problem good enough that anyone can help me:
    I have a VI which continuely shows on a graph the voltage of a Analog Input of a DAQ device. Now I want to allow the user to start/stop with a click on a button data logging. Means that a second loop writes to a selected path every ms the data to a spreadsheet file.
    At the moment my VI works like this:
    You run the VI and Labview asks you one time for the file path, then you can start and stop the data logging. But you can do it only one time. If you want to log a certain time later another file, you have to close and open the whole VI again which is not very professional...
    My target is:
    It is onlyl necessary to start the VI one time. Then you can select a new file path, log data, select another file path, logging data again....and so on...
    Which programm structure is necessary, can anyone help me as a labview beginner with that issue? I attached the VI if someone just wants to edit that...
    Thank you for your help!! Markus
    Attachments:
    Logging voltage.vi ‏93 KB
    screenshot.JPG ‏98 KB

    @NaruF1 and GerdW
    you are right, there is a mistake, both loop rates should be the same (10 ms) :-)
    @NaruF1
    yes you understood correctly that the file dialog should appear every time the user wants to start writing a new log-file. The voltage we measure is a analog signal, so there will be several interesting periods we want to save for a later analysis in Excel.
    To your 2nd point: if it works with a array it will be fine. But it must be possible to log data for lets say 5 minutes, so the array won´t be too large? (5 min @ 10  ms loop rate will be 30000 rows..
    attached is the VI, saved as LV2009..
    Thanx a lot!
    @GerdW
    ..you ask why I didn´t create a structure like you recommended with notifiers or queues? The simple answer would be that I am not familiar with all this.. just began to write my first Labview programm. I will have al look to the LV help with all that stuff... Thank you a lot
    Attachments:
    Logging voltage.vi ‏80 KB

  • CRio data logging too slow

    Hi,
    I am using a cRio 9074 in scan mode and I have a fairly simple timed loop that should run at 5-10mSec periods to operate a pwm control. I also need to do some data logging and save two input signals (at approx. 1kS/sec). However, when I use write to spreadsheet, the loop speed drops and my timed loop period goes up to 50mSec. How can I speed this up, and what is the efficient way to save data in scan mode.
    Thanks.
    Solved!
    Go to Solution.

    The single best way to improve determinism is to divide your acquisition/logging into two distinct producer/consumer loops as VTHokie says. Next best improvement would probably be using a binary format file structure rather than Write to Spreadsheet, which converts all data to ASCII representation prior to writing to file. Writing to ASCII files rather than binary files degrades performance in four ways:
    CPU must be used to do the number to text conversion
    ASCII represented numbers lose precision and don't exactly convert back to original data
    The filesize is larger
    When you go to read the file, it's slower for the above three reasons
    On the other hand, an ASCII file is more portable - e.g., you can easily import into a third-party spreadsheet analysis program. But who in their right mind would export data OUTSIDE of LabVIEW when it offers best-in-industry analysis tools?
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • Writing CAN data to a spreadsheet or word processing file.

    Hi. I need to know how I can write CAN data to a spreadsheet or word processing file. I have a vi that reads information from a CAN device and I need to write everything that is read to a spreadsheet or word processing file. Also I'm getting an error message using a vi that uses the frame API to write and read frames. It happens when I change the read or write queue value. Right now they are set at 100 each and when I change them just a little(even by 1) there is an error. Thanks in advance.

    I would recommend against writing DIRECTLY to Excel, while the CAN vi is running, the MSOffice interface is too slow to be doing while the CAN vi is running. There are 2 different ways you can get around this problem though.
    1. When you receive a CAN frame you want to log, write it to a buffer of some kind in Labview (this could be a string buffer wired to a shift register, it simply adds the new data to the end of the buffer) then when your VI closes, it writes the string data to an excel worksheet.
    2. You could log the data to a text file, if you use the Write File.vi (in the File I/O pallette) you can quickly write data to a file if it is done correctly. DO NOT use the VI's on the first row (Write to Spreadsheet.vi and Write Characters to File.vi) because they will be too slow, they open the file, write data, and then close the file each time they run, which takes too much time.
    As for changing the buffers, you can do that, if you change the buffers at the time you call ncCANConfig, if you change the buffers after that you will get an error.

  • How can I display only the Data Logging pull down menu on my LV front panel?

    Is it possible to hide all unused pull down menu on my front panel vi like File, Edit, View etc.. and only
    display the pull down menu for the Data logging?!
    best regards
                          Norick

    Hey,
    You can build your own runtime menu (Edit>runtime menu) and then e.g. only display the application items you want to.
    Christian

  • How can I perform data logging for a specific time??

    hello everyone,
    I am quite new in labview and I have a basic question regarding data logging. Currently I am using a cRIO9074 and doing some data logging for my test. The data logging it self works ok so far.
    But my problem is I would like to write my datas in a text file either for a specific time interval (ex)10 seconds) or for a specific amounts of data (ex)500 Samples). Can anyone give me some help regarding my problem?? Attached you can find my RT.vi 
    I would appreciate for anyhelp!
    Regards
    Yun 
    Attachments:
    BP250 Encoder Position & Velocity (Host).vi ‏92 KB

    Run your loggging program for that time. When your program terminates then it will write all the logged data so far in text file.
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet

  • How do I control a data log session with period and sample time?

    I need a data logging system where the operator can select 2 logging parameters: Log Period and Sample Time. I also need a START and STOP button to control the logging session. For example, set the log period for 1 hour and the sampling time for 1 second. (I may be using the wrong jargon here.) In this case when the START button is clicked, the system starts logging for 1 second. An hour later, it logs data for another second, and so on until the operator clicks the STOP button. (I will also include a time limit so the logging session will automatically stop after a certain amount of time has elapsed.)
    It’s important that when the STOP button is clicked, that the system promptly stops logging. I cannot have the operator wait for up to an hour.
    Note that a logging session could last for several days. The application here involves a ship towing a barge at sea where they want to monitor and data log tow line tension. While the system is logging, I need the graph X-axis (autoscaled) to show the date and time. (I’m having trouble getting the graph to show the correct date and time.) For this application, I also need the system to promptly start data logging at a continuous high rate during alarm conditions.
    Of course I need to archive the data and retrieve it later for analysis. I think this part I can handle.
    Please make a recommendation for program control and provide sample code if you can. It’s the program control concepts that I think I mostly need help here. I also wish to use the Strip Chart Update Mode so the operator can easily view the entire logging session.
    DAQ Hardware: Not Selected Yet
    LabVIEW Version: 6.1 (Feel free to recommend a v7 solution because I need to soon get it anyway.)
    Operating System: Win 2000
    In summary:
    How do I control a graphing (data log) session for both period and sample time?
    How do I stop the session without having to wait for the period to end?
    How do I automatically interrupt and control a session during alarm conditions?
    Does it make a difference if there is more than one graph (or chart) involved where there are variable sample rates?
    Thanks,
    Dave

    Hello Dave,
    Sounds like you have quite the system to set up here. It doesn�t look like you are doing anything terribly complicated. You should be able to modify different examples for the different parts of your application. Examples are always the best place to start.
    For analog input, the �Cont Acq&Chart (buffered).vi� example is a great place to start. You can set the scan rate (scans/second) and how many different input channels you want to acquire. This example has its own stop button; it should be a simple matter to add a manual start button. To manually set how long the application runs, you could add a 100 ms delay to each iteration of the while loop (recommended anyway to allow processor to multi-task) and add a control that sets the number
    of iterations of the while loop.
    For logging data, a great example is the �Cont Acq to File (binary).vi� example.
    For different sample rate for different input lines, you could use two parallel loops both running the first example mentioned above. The data would not be able to be displayed on the same graph, however.
    If you have more specific questions about any of the different parts of your application, let me know and I�ll b happy to look further into it.
    Have a nice day!
    Robert M
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • With journaling, I have found that my computer is saving a large amount of data, logs of all the changes I make to files; how can I clean up these logs?

    With journaling, I have found that my computer is saving a large amount of data, logs of all the changes I make to files; how can I clean up these logs?
    For example, in Notes, I have written three notes; however if I click on 'All On My Mac' on the side bar, I see about 10 different versions of each note I make, it saves a version every time I add or delete a sentence.
    I also noticed, that when I write an email, Mail saves about 10 or more draft versions before the final is sent.
    I understand that all this journaling provides a level of security, and prevents data lost; but I was wondering, is there a function to clean up journal logs once in a while?
    Thanks
    Roz

    Are you using Microsoft word?  Microsoft thinks the users are idiots. They put up a lot of pointless messages that annoy & worry users.  I have seen this message from Microsoft word.  It's annoying.
    As BDaqua points out...
    When you copy information via edit > copy,  command + c, edit > cut, or command +x, you place the information on the clipboard. When you paste information, edit > paste or command + v, you copy information from the clipboard to your data file.
    If you edit > cut or command + x and you do not paste the information and you quite Word, you could be loosing information.  Microsoft is very worried about this. When you quite Word, Microsoft checks if there is information on the clipboard & if so, Microsoft puts out this message.
    You should be saving your work more than once a day. I'd save every 5 minutes.  command + s does a save.
    Robert

  • Is there a way to import data in a spreadsheet or text file into Contacts v7?

    Is there a way to import data in a spreadsheet or text file into Contacts v7? I have a list of about 500 people and their email addresses in FileMaker Pro that I can export in a number of formats that can be manipulated. Is there any way to get those contacts into Contacts without entering them one at a time?

    I have answered my own question. I exported the data from a layout in FileMaker Pro containing the required fields as tab separated text. That produced a .tab file that Contacts wanted nothing to do with. However, when I changed the .tab in the file name to .txt, Contacts accepted it as a file to import (File/Import). I then identified the field in Contacts in which the data in each field in the txt file was to be placed and in it went! The trick was changing .tab to .txt in the name of the file exported by FileMaker Pro.

  • Help please: DAQWare or data logging software (multichannel data capture) questions

    I am writing regarding DAQWare, data logging software, and the PC-LPM-16
    board, which a group of us a trying to come to grips with. This is rather
    lengthy, I'm afraid...
    We are a group of college students in a computer programmer/analyst
    program. We have a course that involves doing a project to go through the
    software development lifecycle (or as much of it as can be done in a term).
    For our project we teamed up with a group in the industrial hygiene
    program; they have a computer (standalone) with a PC-LPM-16 (PnP) DAQ board
    and the NI-DAQ software (all of this has been around for a few years, but
    has not been used much), and our goal was to capture the data they are
    measuring (atmospheric pollutants) to an Microsoft Access database.
    We are not familiar with DAQ systems, but were shown the software they had
    installed. This included DAQWare (appears to be version 2.0). We thought
    we could use DAQWare to log data to a text file, which we then would import
    into the Access database. We came up with VBA code to parse the ASCII text
    file created, but have run into one problem: DAQWare does not timestamp
    each sample, but only puts a single timestamp in the header information.
    Now we could extrapolate the time for each line based on the sample rate,
    except that sometimes it seems to put in 8 values per sample, sometimes 12
    values. For instance, in the sample of a text file below, the capture was
    run for 1 minute at a sample rate of 60, and there were 480 measurements in
    the file, or 8 lines of measurements per sample. (At a sample rate of 100,
    we got 800 measurements in the file etc.) This was two weeks ago. Today,
    we returned to capture more data, and DAQWare was logging 12 measurements
    per sample (so at a sample rate of 100, we ended up with 1200 lines of
    measurements). We do not know where this factor of 8 or 12 is coming from
    or how it got changed in the two weeks between captures. We would like to
    be able to have them just run DAQWare, for days on end if they wanted,
    capture the data to file, then use our code to parse the text file into the
    database, but if we cannot put timestamps on the readings, there seems no
    point.
    *** Example of a capture below... ***
    DAQWare File
    Version: 2.0
    Number of Lines in Header: 10
    Comment:
    Date: 10-18-1999 Time: 10:01:39
    Sample Rate: 60.0
    Scan Rate: 0.0
    File Format: 1
    Samples per Channel: 480.0
    Number of Channels: 5
    O3 SO2 NOX NO2 NO
    4 3 2 1 0
    1 1 1 1 1
    0.537 0.276 0.259 -0.017 0.015
    0.537 0.273 0.261 -0.022 0.012
    0.537 0.276 0.259 -0.037 0.012
    0.537 0.276 0.264 -0.007 0.015
    *** and so on... ***
    Regarding this attempt to use DAQWare:
    1. Can you tell us where this factor (8 or 12 or however many more readings
    than we would expect) means, where it is read from or set?
    2. Is there an updated version of DAQWare that we should download that
    would be better?
    3. Is there some other existing software that we can download to use to
    perform basic logging of multichannel analog input to a text file (with
    timestamp)?
    I realise that the software comes with tools (DLL functions) that one can
    use to create custom software to interface with the DAQ board, but in the
    limited amount of time we have we are not sure we can learn enough about
    these functions to write our own datalogging software.
    However, to see if I could grasp the basics, I have looked through the
    examples for Visual Basic and think that a program would run something like
    this:
    1. at the beginning, use LPM16_Calibrate to reset the board
    2. configure acquisition with DAQ_Config
    3. start acquisition with Lab_ISCAN_Start
    4. loop to check is acquisition done with Lab_ISCAN_Check
    5. once sampling done, write data out to file
    6. loop back up to 3 to get next lot of samples
    Unfortunately, a sample app using Access and VBA I created came back with
    an error telling me it could not find nidaq.dll (even though this is in the
    Windows system directory); probably it is not a good idea to try to do this
    in Access in the first place. I am going to have a go using Delphi, which
    I know a bit better.
    One thing I am unsure of is what the numbers will be coming out of
    Lab_ISCAN; the reference file seems to indicate they will be binary
    readings, not voltages, and I wonder how to correlate these with instrument
    measurements (the instrumentation people we going to set it up so that
    1mV=1ppm).
    Any help you can give to point us in the right direction would be
    appreciated.
    Sincerely, Marc Bell ([email protected])

    I am writing regarding DAQWare, data logging software, and the PC-LPM-16
    board, which a group of us a trying to come to grips with. This is rather
    lengthy, I'm afraid...
    We are a group of college students in a computer programmer/analyst
    program. We have a course that involves doing a project to go through the
    software development lifecycle (or as much of it as can be done in a term).
    For our project we teamed up with a group in the industrial hygiene
    program; they have a computer (standalone) with a PC-LPM-16 (PnP) DAQ board
    and the NI-DAQ software (all of this has been around for a few years, but
    has not been used much), and our goal was to capture the data they are
    measuring (atmospheric pollutants) to an Microsoft Access database.
    We are not familiar with DAQ systems, but were shown the software they had
    installed. This included DAQWare (appears to be version 2.0). We thought
    we could use DAQWare to log data to a text file, which we then would import
    into the Access database. We came up with VBA code to parse the ASCII text
    file created, but have run into one problem: DAQWare does not timestamp
    each sample, but only puts a single timestamp in the header information.
    Now we could extrapolate the time for each line based on the sample rate,
    except that sometimes it seems to put in 8 values per sample, sometimes 12
    values. For instance, in the sample of a text file below, the capture was
    run for 1 minute at a sample rate of 60, and there were 480 measurements in
    the file, or 8 lines of measurements per sample. (At a sample rate of 100,
    we got 800 measurements in the file etc.) This was two weeks ago. Today,
    we returned to capture more data, and DAQWare was logging 12 measurements
    per sample (so at a sample rate of 100, we ended up with 1200 lines of
    measurements). We do not know where this factor of 8 or 12 is coming from
    or how it got changed in the two weeks between captures. We would like to
    be able to have them just run DAQWare, for days on end if they wanted,
    capture the data to file, then use our code to parse the text file into the
    database, but if we cannot put timestamps on the readings, there seems no
    point.
    *** Example of a capture below... ***
    DAQWare File
    Version: 2.0
    Number of Lines in Header: 10
    Comment:
    Date: 10-18-1999 Time: 10:01:39
    Sample Rate: 60.0
    Scan Rate: 0.0
    File Format: 1
    Samples per Channel: 480.0
    Number of Channels: 5
    O3 SO2 NOX NO2 NO
    4 3 2 1 0
    1 1 1 1 1
    0.537 0.276 0.259 -0.017 0.015
    0.537 0.273 0.261 -0.022 0.012
    0.537 0.276 0.259 -0.037 0.012
    0.537 0.276 0.264 -0.007 0.015
    *** and so on... ***
    Regarding this attempt to use DAQWare:
    1. Can you tell us where this factor (8 or 12 or however many more readings
    than we would expect) means, where it is read from or set?
    2. Is there an updated version of DAQWare that we should download that
    would be better?
    3. Is there some other existing software that we can download to use to
    perform basic logging of multichannel analog input to a text file (with
    timestamp)?
    I realise that the software comes with tools (DLL functions) that one can
    use to create custom software to interface with the DAQ board, but in the
    limited amount of time we have we are not sure we can learn enough about
    these functions to write our own datalogging software.
    However, to see if I could grasp the basics, I have looked through the
    examples for Visual Basic and think that a program would run something like
    this:
    1. at the beginning, use LPM16_Calibrate to reset the board
    2. configure acquisition with DAQ_Config
    3. start acquisition with Lab_ISCAN_Start
    4. loop to check is acquisition done with Lab_ISCAN_Check
    5. once sampling done, write data out to file
    6. loop back up to 3 to get next lot of samples
    Unfortunately, a sample app using Access and VBA I created came back with
    an error telling me it could not find nidaq.dll (even though this is in the
    Windows system directory); probably it is not a good idea to try to do this
    in Access in the first place. I am going to have a go using Delphi, which
    I know a bit better.
    One thing I am unsure of is what the numbers will be coming out of
    Lab_ISCAN; the reference file seems to indicate they will be binary
    readings, not voltages, and I wonder how to correlate these with instrument
    measurements (the instrumentation people we going to set it up so that
    1mV=1ppm).
    Any help you can give to point us in the right direction would be
    appreciated.
    Sincerely, Marc Bell ([email protected])

  • How do I share data from one spreadsheet into another spreadsheet that is a separate file?

    I am trying to create a spreadsheet that will pull data from another spreadsheet in a different file for a what if scenario.  Is there a way I can reference a cell from that file besides adding a separate tab in the original file?

    For Numbers '09 (Mac), the answer is no, Numbers does not support references to a cell in a separate file.
    But the profile information at the bottom of your message, and the use of 'tab' in the message suggests you are using Numbers for iOS. I've requested your question be transferred to the iWork for iOS community, where the users of that version tend to be more plentiful than here, where the topic is Numbers (for Mac).
    Regards,
    Barry

  • How can you save data to a spreadsheet and use different worksheets in the spreadsheet?

    I am trying to save data to a spreadsheet.
    Each set of test data needs to be saved under a different worksheet. Is this possible and how can I do it?

    As the example that Dennis pointed out, this can be done using activeX. In addition to that example I have another that demonstrates how to create a new workbook with multiple worksheets and save data to each of them. I hope that between the two you can get an idea of what to do.
    Brian
    Attachments:
    xlexample.vi ‏66 KB

  • Why can't I see the data in the spreadsheet ?

    why can't I see the data in the spreadsheet file in Which I wrote my output data? I set the format of write to spreadsheet file to be %.11f. Though I can see only colums of zeros, I can plot out the data.

    I tried th "%.11f" format and it worked in the attached VI (6.1). Please respond and attach a small example VI that demonstrates your problem.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect
    Attachments:
    array_test.vi ‏15 KB

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • Data logging optimization function in LabVIEW and SignalExpress

    Hello, everyone!  I and a colleague have assembled the attached VI,
    which is used to control a plant growth chamber, and I could use some advice. 
    I would like to add data logging capabilities, ideally to note (1)
    environmental conditions, such as temp and CO2 level and (2) when certain
    situations occur, such as high CO2 or low pressure (which results in a change
    to the “Case Structure for CO2 and Pressure”).
    The chamber runs for weeks at a time, though, so I have a constraint.
    Instead of continuously logging all the environmental data (which would yield
    giant file sizes), I want to be able to take “snapshots”, say every 5 minutes,
    so I can examine the chamber’s condition over a long period of time.
    I attempted to use the Time Delay function to control the Write Measurements
    function (as in LabVIEW’s Cycle Analysis example, which I’ve also attached),
    but Time Delay halted my entire program. 
    I also tried the Wait (ms) function, but had no success.
    I recently discovered the powerful data review and reporting tools that
    SignalExpress has to offer.  Ideally, I
    would like to use a SignalExpress express VI to record the measurements instead of the more primative Write Measurements, but, I’m not sure how to implement this in my VI.  For example, would I make a data acquisition VI in SignalExpress for all my sensors, export to LabVIEW, and use that to replace the current DAQ structure in my VI?  (Because the chamber VI is interactive, I'm pretty sure that porting the LabVIEW VI to SignalExpress wouldn't work out well.)  And I’m
    still not sure how to control how often it records measurements.
    Any advice would be much appreciated!
    Attachments:
    Chamber VI.vi ‏789 KB
    Cycle Analysis.vi ‏300 KB

    Hi, Sarah.  Yes I definitely plan to use LabVIEW for the majority of my data acquisition and logging.  I apologize, I think I probably should have broken my post into two separate posts for clarity, as my major concern is being able to set how often LabVIEW logs the environmental data (viewing the logged data in SignalExpress would be nice, but not a requirement).
    As I explained before, I'd really like to be able to set up a system that records the environmental condtions at regular time intervals, say every 30 minutes, or if my "Case Structure for CO2 and Pressure" status changes (such as from "Normal Conditions" to "High CO2".
    As an example, attached is a boolean structure (TimedWritedMeasurements.vi) that I came up with to record a simulated signal every 5 seconds (5000 ms).  Once I can get it to work, I would connect the boolean to my environmental sensor outputs and CO2 and Pressure case structure in my Chamber VI.vi that I attached in my first post.
    My problem is I can't seem to get the Trigger and Gate function to work the way I'd like.  I'd like the Wait (ms) function to trigger the Trigger and Gate function every 5 seconds to change the case structure in the TimedWriteMeasurements.vi to "True", thereby causing the Write Measurement function to record the environmental conditions.  Then I'd like the case structure reset to false, until it's triggered to true in another five seconds.  Can anyone point me in the right direction?
    Attachments:
    TimedWriteMeasurements.vi ‏84 KB

Maybe you are looking for