Save data in Excel, while the program continues to flow

Dear community Labview,

I am in charge to create one based on the acquisition of data (RPM, power, torque, pressure, temperature) program which should, among other things, to connect its measurements in excel. I had no problems to create the journal itself, however, I still have a problem: I'm supposed to implement a function whose task is to save these values while you press a record button down and stop recording once a stop button is pressed. The program is not supposed to stop running - it stores data of a running engine, and the only time where the program is supposed to be stopped is when we stop the engine.

Now, I tried several ways to implement, but have failed so far, get the error 2146827284 to undefined location (an error in excel functions, it seems). The ways I've tried:

  • Flat sequence structure, first performing the writing to Excel, then stop logging in the VI collector, then record/stop reset to the original values.
  • Writing to Excel, then taking a Boolean result from the structure of the case where the entry is made and feeding it back to stop logging and the initials reset buttons.
  • I have an idea of the break from the while loop when saving files / creation is done, but I don't know how to implement, especially if it does not interfere with the work of acquiring data on the acquisition.

I tried to include a Lite version is the most of the VI troubleshooting easier for one who is willing to help me. Recorded in LV2012, I think this is the first version that supports excel features that I put in place.

Included are the VI, and the very basic excel template that I use for this test.

Thank you for your attention, and I hope that I didn't offend anyone with any ignorance that may introduce the VI. I'm rather new to Labview.

Hi, there are many things to improve. One thing that can solve your problem quickly is to change the mechanical action of the "stop recording". Currently, it is set on "change when you press on. You want a locking mechanism, so it only exports the data once. Try "lock when released. As it is right now, as soon as you click "stop recording", he tries to write and re - write and rewrite your Excel sheet as quickly as the main while loop will allow it. Change it to lock so he writes only once.

Tags: NI Software

Similar Questions

  • Hi, my trial period exceeded and buy the complete package of the cloud Barnard for one year, while trying to download the programs continued to show me that my period obsolete preuba.

    Hi, my trial period exceeded and buy the complete package of the cloud Barnard for one year, while trying to download the programs continued to show me that my period obsolete preuba.

    If you updated to Creative Cloud 2015 and some or all of your CC applications show 'trial start or buy now' in the desktop app creative cloud, or if you launch any product of CC 2015 and the pop up displays a test message window, please check this link for the resolution:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

  • Acccess filtered of measurement data, while the program is running?

    My main problem is that data that I take is 3-dimensional. I take measures of resistance, capacity and Q factor over a predetermined period of time, but the problem is that these measures are taken in a matrix of switching through provided pin code sequences.

    If I can take a measure of resistance from pin 1 to 20 pins between 10 am and I want a useful method for displaay these data to the user that the program is still collecting data. I write data to a TDMS file because it is collected, and the output format looks like this:

    My thoughts were going to have 4 separate controls that can be set to access specific aspects of the test while it is running to make this work. My idea is to have (4-6) something similar to the below:

    In this way the user can refine exactly what they are looking at in this case.

    Key question is whether I should / can:

    1) access to the PDM file for the information you selected with the commands above to fill the Microsoft graph chart?

    (2) the data measured in a wide range of stuff and then have sub - VI that filter of this large table to retrieve the data and complete the Microsoft graph chart?

    (3) another method...

    And advice have enjoyed. Thank you!

    ; How much data are you talking about?  Is - this low enough so that you would be able to keep the table in its entirety in the memory?  If so, then I would use your option 2.  Then design an interface that allows the user to determine what links they want to watch, and your program could analyze through this gathering the data and display it.

    If that's too much data, then you have to go with the PDM or another option of storing files and read the data back to the piecemeal and build your data table that applies to display.

  • priority for the program continues to change running

    Why would a program a priority continue to change while it is running?

    I set the priority of the program in the 'normal' Task Manager, but it will change to 'low '. I have observed this failover so that the Task Manager is open and running the program.

    Hello Mindsclay,

    Thanks for posting your question in the Microsoft Community. We are happy to help you.

    To help you to propose measures to solve the problem, I would appreciate if you could answer the following questions:

    1. This problem persists with all programs?
    2. Are what program you referring?
    3. Significant changes were made to your computer before this problem?
    4. To save you the priority after changing?

    You can have a quick glance at the picture below to change the priority of a program in the Task Manager.

    Please respond to this answer we will be happy to help you.

    Thank you.

  • Save data track selected to the XY graph

    Hello

    I have an XY Chart with 40 locations. The visibility of each parcel is editable by the user using the box of visibility of conspiracy.

    The user must have an option to save data any point of execution and channels that are selectecd to view should be saved as an excel file.

    When I use the option to export to excel, all 40 channels names are stored in the file. Instead, I want only the selected channelswhich are selected to be saved in the file.

    Let me know a way to do it.

    Hello

    Thanks for the reply.

    I already have a logic as in the attachment that will find the visible plots and using the parcel number I'm indexing of data. And it works very well.

    I wanted to know is there any node property or call the node which will give you all the visible plots in a XY Chart.

  • Install the program while the program 7 OS installation

    Hi all

    I want to install the program such as WinRar, or MS Office while I'm setting up operating system 7. Is this possible? How can I do?

    Thank you.

    No, you can not, you will need to do after installing Windows 7. There are sophisticated tools that will only deploy Windows 7 with applications, but they are normally available to install Windows 7 on several client computers in the enterprise.

  • Is it possible to recover a database with the copy of data files (cp), while the database has been opened?

    Hello

    We know we need to do a backup of an oracle database by using the appropriate tool, in most cases the rman. But we have in our society, a person who helps us with the backup of all the databases oracle we have. Thus, in addition to the rman backups, we do a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc.. My question is: can recover us my database using this copied data files? or are we just wasting disk space on our backup environment?

    Kind regards
    Melo.

    We're doing a copy (cp) with the open database of all files in oracle database, (without start backup) including of course spfile, controlfile, etc..

    As EdStevens said, it's essentially a backup without value. When you copy files from a backup ' hot', there may be inconsistencies in the blocks of the file as transactions actively edit these blocks while the copy is made. Mechanism of Oracle backups hot managed by users is to put the database or tablespace in backup mode, copy the files, and then the end backup mode. Without this mechanism, the chances of being able to restore from this backup are very, very thin.

    My question is: can recover us my database using this copied data files?

    My question is... have you tested recovery? If the recovery has been piloted, then called the answer to this question. Please read the end of this blog post for more information:

    Blog of Peasland before necessary recovery database backups"

    See you soon,.
    Brian

  • disappearing data in excel and the file closes on its own

    I was typing in excel, when everything was suddenly highlighted, then disappeared and the file closed. I've lost everything.  This has happened also in word.  Why is - this happeneing and how it stop?

     

    http://answers.Microsoft.com/en-us/Office/default.aspx

    Office at the above link forums

    http://answers.Microsoft.com/en-us/Office/ee861099.aspx

    Forums help Excel at the link above

    http://answers.Microsoft.com/en-us/Office/ee861096.aspx

    Word Help Forums at the link above.

    They will help you with your questions Excel/Word when repost you in the Office Forums above.

    See you soon.

    Mick Murphy - Microsoft partner

  • CVI: How can I save data to EXCEL automatically

    Hello.

    I just want to save the data in real time to excel automatically, but not need to open excel collection

    "ExcelRpt_ApplicationNew (1, & appHandle);' will open the excel.

    Is there way to connet to Excel?

    Thank you.

    No way: to write directly in Excel you must have the application's operation. What you can do is to switch from "0" as the first parameter to the function to make Excel visible not: it comes to interchange at the Help function.

  • Possible to rewrite data from Excel in the input source?

    Hey people,

    is it possible to rewrite the data in the original OLAP cube using the of SmartView for MS Excel add-in?

    Let's say I make what follows after you import a cube to my spreadsheet Excel through SmartView:

    • Add data sets
    • remove groups of data
    • Add columns
    • remove columns
    • change the columns (properties)

    Can I click on a save/submit button after that and my changes will be written back in the cube?

    Best regards
    Jane Doe

    hierarchical update is what I assume you want to say by updating the properties or add new columns.  If the new columns are combinations of Member you want to add then which would add to the sketch.  As Dan says, it is not possible in Essbase.  There is a way to do planning, but that is something you should read the Administrator's Guide.

    Here is a link to the Oracle documentation on that.

    https://docs.Oracle.com/cloud/latest/pbcs_common/CSPAG/apcs03s01.html

  • How to save data to excel, word, etc.

    I want to use the entry in the spreadsheet, but the format of the saved data cannot be opened directly in excel or word. Can I still use write on the worksheet or that I have to use other buttons. In fact, I don't know how to choose the format of the recorded data. Thanks for responding.

    ADrexelDragon wrote:

    The format of the Vi called write in spreadsheet records directly in a xls file.

    Not exactly. It stores data in an ASCII ' Tab/return' file (assuming that you do not change the separator). Means that the file can be opened by any text editor. Including Word and Excel.

    If you want to open the file directly with Excel (or Word) with a simple double click, then simply add .xls (or .doc) as the file name extension.

    If you use the .txt extension, there are chances that your case will be opened by Notepad.

    Nothing complicated!

  • Open file .lvm while the program is running

    How to open a .lvm file in my program? I tried to use the dialog box file open/create/replace with file dialog box by specifying the path and I can get to the point to select the path, and it does not open the file.

    I got it just to work using an exec.vi system... Thank you!

  • Update of Audio devices while the program is running

    Hello

    I want to connect to a device audio all in a labview VI is running. When I do, the audio device does not appear in the list of audio devices. Will there be any node of activeX or another possibility to refresh the audio in labview devices, while a VI is running?

    I use Windows XP and LabVIEW 2010, but I think that an upgrade for 2011 would not solve my problem.

    Hi Angelica,.

    just spoke to a colleague on the issue and we have now resolved. The solution are VI references and call forwarding.

    Take a look at the example in the attachment. The use of this piece of code, the 'get Num Devices' function (as an example for all other functions that you want to use) is reloaded each time it is called, resulting in the numeration of device updated when executing.

    Good luck using it and best regards,

    Benjamin

  • When I import my video source into my calendar, which is why the audio GET stops after about one minute while the video continues to play flawless during playback?

    For context, I import a source element of 60 fps .avi in my calendar. This is a screenshot of what it looks like when I import into the attached timeline.

    dddd.PNG

    For some reason, the audio is cut and cut without any kind of action performed on it. Once I've drag in the timeline, it appears like this. No idea why this is?

    Thanks in advance to anyone who can help you.

    Better to wait until everything is in line before you start to do something.

    May need to clean the media cache.

    Your avi looks like its in a screencapture program.

    Make sure that the codecs are compatible with the first and that she also has constant framerate.

    If this isn't the case, convert mp4 with Handbrake .

  • Data import Excel to the drop-down box

    I have two columns of data that I need a drop-down list to reference.  I can't for the life of me know that even after reading several tutorials.  Adobe Pro XI and Adobe Forms Central.

    I don't want to have to manually enter each field because there are too many hand-key and too many opportunities for errors.

    If the drop-down list is populated with the items you want, you just copy the entire field of the form and paste it into your form. To do this, you can go in form editing mode (Tools > forms > change), use the selection (black arrow) to select and copy the drop-down list and then paste it into your form.

Maybe you are looking for

  • Keyboard does not work on my laptop Satellite

    When I press some of the buttons on the keyboard, the button next to them is enabled. for example, I press a button and it turns on the caps lock. This happens to the other buttons as well.What is the cause? How should I do?

  • Help improve llb of Labview 5.1 to 7.1

    Hello guys and girls, I have a serial.llb works very well with labview 5.1, and I've updated my version of labview 7.1, when I open the Serial.llb using labview 7.1 to upgrade, open, but the removal of the program many features making it the screw wo

  • OE Compact message window

    How can I disable the annoying message in OE "do you want to compact messages now" appearing every few minutes?

  • Problem starting XP

    After doing a system restore when I restart it stops on black and white screen and I have to hit f2 to restart at the end

  • Cannot send a FAX from PC with HPLaserJet 500 MFP M570dn

    I just installed a M570dn of MFP HP LaserJet 500, but it has not installed the FAX printer. So, I'm unable to send my PC directly to the printer to send to FAX a document. The printer is on a network. I uninstalled and installed more than once, but i