Write from labview to excel test results

Hey
I need some help to get my results from pressure transmitter to excel in 2 rows. 
The program works like when you get into case 9 like in picture and it will stay there in 15 min. I want it to log the pressure from my DAQ from 0-15min into a excel sheet. 
I have tryed so many things now and I cant find a good solution  
I want to choose were it will be saved before I get into case 9 in my frontpanel. 
Like          Time          Pressure
                 11.15.30    2000 Bar
                 11.15.31    2000 Bar
                 11.15.32    2000 Bar
                 11.15.33    2000 Bar
                 11.15.34    2000 Bar
                 11.15.35    2000 Bar
Just ask if you need to know more about my program! This is my first program I have made in labview
Best regards Hermansen
Attachments:
My program.png ‏25 KB

Hi RBM89,
For general information about logging I recommend this link for a start:
Adding Data Logging
http://www.ni.com/academic/students/learn-daq/data-logging/
Using the Write To Measurement File.vi it is possible to promt the user for the file storage location etc.
Below are a few examples of implementations with data logging, hopefully you will find some interesting code there:
Logging Data apart from Zero
https://decibel.ni.com/content/docs/DOC-9931
DAQmx: Continuous Acquisition and Updating while Logging Averages to File
https://decibel.ni.com/content/docs/DOC-29760
Continuously Log Data to a TDMS File
https://decibel.ni.com/content/docs/DOC-11298
Please also note that logging data is a time consuming operation that might slow down the execution rate of the loop. For high performance I would therefore recommend adding the data to be logged to a queue, and writing the queued data to file in a separate loop. 
This document will give you a introduction to queues in LabVIEW:
Communicating between Parallel Loops
http://www.viewpointusa.com/resource/view/newsletters/communicating-between-parallel-loops/
Best regards,
Robert P-F
Applications Engineer
National Instruments Sweden

Similar Messages

  • Is it possible to export a histogram from labview to excel

    is it possible to export a histogram from labview to excel,and of course get a fancy one

    Hi achfire,
    The LabVIEW Report Generation Toolkit allows you to create different graphs in Microsoft Excel, including Bar Graphs.  Check out the Report Generation Toolkit section of the White Paper below for more information.  I've also linked to a section of the Report Generation Toolkit Help document which gives more details on the different types of graphs you can export.
    Moving Data From LabVIEW Into Excel: http://www.ni.com/newsletter/51339/en/
    Common Graph Types for Reports: http://zone.ni.com/reference/en-XX/help/370274G-01​/lvrgthelp/graph_types/
    Thanks,
    Myriam D.
    Applications Engineer
    National Instruments

  • Writing data from labview to excel

    Hi, currently I'm trying to get an array of data from labview into a specific excel file everytime.
    The attachment i have is a program creating a new worksheet everytime it runs. I couldn't figure out how to make it work. Anyone can help me? 
    Attachments:
    Excel Copy Example.vi ‏19 KB

    So what is the specific problem? What is it doing that is incorrect? If the problem is that it is creating a new file every time its because the first subVI is opening a spreadsheet template file. Or at least I think it is since all of the subvis are missing...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • From labview to excel:tabl​e and graph customized

    Hi
    I want to get this table in excel and in front of each row a graph drawed using just the value of E1,E2, E3, E4, E5 ....E10 ,and in the table ,for the columns M1 M2 ....M10 the have to contain either yes or no ,if yes the cell has to be green if ni the cell has to be red.
    i'm wondering if there is a real solution to solve thoses 2 problems
    Attachments:
    Recepteur-1-page1_final_OK.vi ‏38 KB

    1-i want to export this table to excel sheet
    2-because those values are numeric and each one represents elapsed time in a test ,so i want to get a graph from thoses values for each student,and in front of his row.i think i must have big rows so the graph will be clear
    3-it's about a maintain,so it has either true or false(booleen),if it's true>green otherwise > red
    Attachments:
    best one.vi ‏34 KB

  • How to acquire and display data from labview to excel simultaneo​usly

    hello,
    I am using the NI-DAQ to measure the falling edges of a clock and display them into a table. What I need is to display these data in a table in excel while the program is running. In addition, when I receive a pulse from an external clock, for which I have created a digital channell, the data must be logged in a different column. In other words, every time I receive a pulse the data must be stored in the adjacent column in excel.

    Hello Evangelos,
    As far as I know and have experienced, it is not possible to access a spreadsheet file (or any file, for that matter) by two programs at the same time, you will get an error.
    Also, a couple of observations on your code:
    A constant wired to a case selector of a case structure makes no sense as the false case will never be executed.
    Move the DAQmx Read from your Digital Input task into the while loop, as the DAQmx Read will only read once and the wire won’t get information in or out of a while loop as long as the while loop is iterating.
    Regards,
    Daniel REDS
    RF Systems Engineer
    Help us grow.
    If a post solves your question, mark it as The Solution.
    If a post helps, give Kudos to it.

  • How to write to a PLC Simatic S7-300 via HMI Adapter from Labview

    Has someone tried to write from Labview 6.0 via a Siemens HMI Adapter to a DB on a Simatic S7-300 CPU.
    I am only able to read. Trying to write comes the message from the OPC server: Protocol error, NO response from PLC

    Greetings!
       Thanks for the post. Please check the following.
       1) Did you try connecting with server explorer and see if you are getting a response from the PLC
       2) Also please refer to the following links which will help you on further programming
        http://digital.ni.com/public.nsf/websearch/3F0B1B7C1E80FC3286256738007EED39?OpenDocument
        http://digital.ni.com/public.nsf/websearch/F92C1F2F7B35105B86256DB200628B24?OpenDocument
        http://digital.ni.com/public.nsf/websearch/9FAE59C3B902458B8625672400651A2E?OpenDocument
       3) Is this the first time you are talking to the PLC , or
    did it just happen and if it did was there something that changed
    Do you have any vi built and testing. The links above have example programs you could use.
    Thanks much and hope this helps.
    Best regards
    Avi Harjani

  • The communication of LabView on Excel is unstable.

    After the rearrangement of Windows 2000 to Windows XP the communication of LabVIEW on Excel is unstable. I write an Array from LabVIEW to Excel.
    Only zeros arrive in Excel mostly, however.
    It works from time to time.

    If you can please post a code snippet, it would be useful.  I have
    not had any issues with LabVIEW 7.1.1 and Excel XP(2002) or 2003
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • Sample received from external company for testing

    Hi folks,
    My client is a testing laboratory where they receive samples from external company. Tested results are sent back to the customer along with a test certificate and is billed for the testing carried out.
    I have two things to clarify
    1) how is the sample receipt to be taken
    2) How the customer to be billed with respect to the testing done
    Stringent requirement. Suggestions are most welcome
    Regars,
    Sravan

    For your 1st query ---
    Posting Goods Receipt for Serviceable Materials
    Use
    You post goods receipt to record that the serviceable materials have arrived at your plant. You can also record receipt of other goods such as loaner items.
    Prerequisites
    You require a repair order in which you have recorded the customer's repair request.
    Procedure
    Choose Logistics ® Customer Service ® Service Processing ® Order ® Customer repair ® Returns delivery.
    On the Create Returns Delivery screen, enter the following information:
    Number of the repair order in the Repair order field
    You can search for the appropriate repair order using the RMA number.
    Delivery type in the Delivery type field
    In the standard system, delivery type Returns delivery (LR) has been defined for this purpose.
    Number of the shipping point in the Shipping point field
    Choose Enter.
    You reach the overview screen where you can post goods receipt by choosing Edit ® Post goods issue.
    Save the delivery.
    For the 2nd part solution mentioned above is correct . You need to implement some of the CS module part here for your requirement.
    Regards
    Amol

  • Labview Vs. Excel help in scaling

    I currently have this excel page i created using labview.
    and i am currently using microsoft excel page to scale it manually with the clicks of the mouse.
    is there a way where I can automatically scaled it from labview to excel automatically?
    please help
    thanks
    P.s- I am using labview 8.0 and used the activeX method to graph in excel
    Message Edited by krispiekream on 11-14-2007 04:50 PM
    Best regards,
    Krispiekream
    Attachments:
    untitled1.PNG ‏23 KB
    untitled11.PNG ‏25 KB

    I have an XY graph.
    the properties of the graph already have x-axis & y-axis, min and max.
    how do i use those properties and apply it to my excel graph?
    can someone please help me. my on going problem with this case is giving me such hard times.
    thank you!
    Best regards,
    Krispiekream
    Attachments:
    untitled2.PNG ‏30 KB
    untitled1.PNG ‏29 KB
    untitled11.PNG ‏37 KB

  • I want to write a program in LabView then pass the test results to teststand to check if it pass or fail without displaying the test stand program,

    I want to write a program in LabView and create an execute but I want to be able to pass test results to test stand to find it the unit pass ar fail the test then save the data to a database. How would i go about it.

    What's confusing is your statement that you want to do this "without display the test stand program". You can minimize the TestStand UI to the task bar but if you don't want TestStand to be running, how can TestStand evaluate the result. Explain a little more please.
    In the message body of your post, you just say you want to create a LabVIEW exe and pass the results to TestStand. What I would recomend is that instead of an exe, you create a dll and use TestStand's DLL adapter to call it and return the results. TestStand will evaluate it and do the logging.

  • Can I open a excel file from labview

    I have a program who write temperature in a excel file and i want to open this file from labview .

    This depends slightly on the amount of data you have stored within Excel.
    You can use the "Labview Functions>>FileIO>>Read from Spreadsheet file.vi" which effectively reads all lines from a text file and converts it into a numeric array.
    Alternatively, if your data structure in Excel is more complex than this, you can use ActiveX calls to Excel to retrieve it.
    Use an "ActiveX>>Automation Refnum" control and select the Excel server class. This will then enable you to access properties and methods of Excel to retrieve data from specific cells and pages.
    The attached example should help.
    Dan
    Attachments:
    Excel_Automation.vi ‏60 KB

  • I am using Activex controls from Labview to log the data into Excel spreadshee​t. My applica

    tion is running fine without giving any error messages. But even after the vi stops, excel process does not shutdown. "Excel.exe" process keeps running until I end it from Windows NT Task Manager. Is there any way to end the excel.exe process from Labview?

    tion is running fine without giving any error messages. But even after the vi stops, excel process does not shutdown. "Excel.exe" process keeps running until I end it from Windows NT Task Manager. Is there any way to end the excel.exe process from Labview?I use Excel Active X control frequently to save and then analysis test data. In order to properly destroy the "Excel.exe" process it is important to close all the automation refnums opened when using the Excel active x controls. After completing your desired Excel task wire all the refnums in reverse order they were created into the Automation Close function in Functions->Communication->Active X pallette. This includes all Application, Workbook, Worksheet, or Range refnum. Missing even one of these refnums will mean that Excel.exe will still persist in the task manager and cause problems when excel is opened from outside LabVIEW. I hope this helps.
    Stephan

  • Bring Excel 2007 to the front when called from LabView v9 in Windows 7

    I am building a duplicate system using Windows 7, LabView v9 and Excel v2007.  The original system used WinXP, Excel 2007 and LabView v8.6.  The issue is that the original system was able to bring Excel to the front when called from Labview using the property node -application-> visible.  This new configuration runs Excel, loads the data, runs the macros but does not bring Excel to the front.  The icon blinks in the Win7 taskbar and when selected displays over LabView.  If I minimize the Labview window, Excel is there.  This leads me to conclude that Excel is visible, as requested but will not come to the front until selected from the taskbar.  The only differences, besides the versions, is the original system template files used the .xls extension in and was run in Excel in compatible mode.  At the customers request, the new system uses the .xlsm extension on the Excel template files.  I have tried using application.visible = True in the macro as well.  Could be a setting in Labview?  Could be a setting in Excel? Could be .xls vs. .xlsm? Or an issue with Windows 7 and the newer version of Labview. 
    HP workstation - Labview v9 - Windows 7 - Excel 2007 sp2
    Thank you in advance
    Stephen
    Solved!
    Go to Solution.

    I will try the windowstate change.  Were these done in succession? (i.e. property node -> property node -> property node) Or were they done along the way such as call the ActiveX open and a property node then in a worksheet modification area etc. so there was some time between calls? 
    I am not sure about the API since the discussion there is with regard to DDE.  (Taken from the link document:  If you want to call a DLL that contains ActiveX
    objects, use the Automation
    Open VI with the Property
    Node and the Invoke
    Node.).  I am calling Excel as an application not as a library call unless I am mistaken, which I could certainly be.  Are you thinking that once Excel is active through the Automation Open VI that a DLL call to set the application visible would work?  I may be trying this already but in Excel through the use of the macro I call from LabView.  It contains application.visible = True at the beginning before reading files and plotting data.  
    I may try sprinkling Property node with application->visible in various locations in the LabView diagram as I do update cells after the call to the plot macro.  The puzzle for me is the blinking Excel icon in the task bar.  This means active and running but not visible or something wrong as well.  There are a few #VALUE cells if not all test in the system are run.  Again not a problem in Excel 2007-WinXP-LV8.6
    Thank you again one and all.

  • Analyze test result from txt file

    I need some suggestions from experts. I saved test result in txt file with following format(See attachment). With this test result, I need draw waveform of 'DNBr' based on different OPmode(ADSL2P, VDSL2-8a...). The X-axis will be the value from 'DLS'.  I can creat a complicate VI to do that. But I want to if Labview has any subvi can do this job easier.
    Attachments:
    AW All in One_485847_102744SAV 5T 2h15 PM.txt ‏10 KB

    Hi Tambrook,
    read 3 (header) lines, then read the remaining data lines using "Read spreadsheet file".
    Now you have to select rows by your OPmode as there's no subVI made for your data...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • To export query from Access to Excel in Read/Write mode in VBA

    Below is the code which exports the query named 'LatestSNR' from Access to Excel;
    Public Sub Expdata()
    Dim rst As DAO.Recordset
    Dim Apxl As Object
    Dim xlWBk, xlWSh As Object
    Dim PathEx As String
    Dim fld As DAO.Field
    PathEx = Forms("Export").Text14 'path comes from the directory given in form
    Set Apxl = CreateObject("Excel.Application")
    Set rst = CurrentDb.OpenRecordset("LatestSNR")
    Set xlWBk = Apxl.Workbooks.Open(PathEx)
    'xlWBk.ChangeFileAccess xlReadWrite
    Set xlWBk = Workbook("PathEx")
    Apxl.Visible = True
    Set xlWSh = xlWBk.Worksheets("Metadatasheet")
    xlWSh.Activate
    xlWSh.Range("A2").Select
    For Each fld In rst.Fields
    Apxl.ActiveCell = fld.Name
    Apxl.ActiveCell.Offset(0, 1).Select
    Next
    rst.MoveFirst
    xlWSh.Range("A2").CopyFromRecordset rst
    xlWSh.Range("1:1").Select
    ' selects all of the cells
    Apxl.ActiveSheet.Cells.Select
    ' selects the first cell to unselect all cells
    xlWSh.Range("A2").Select
    rst.Close
    Set rst = Nothing
    ' Quit excel
    Apxl.Quit
    End Sub
    After the execution of code, the query is transferred to excel sheet and is viewed in 'Read only' mode. If I try to save it, a copy of the excel file is produced. Can the Excel be opened in Read/Write mode ? so as to save the workbook and also to transfer
    the query to same workbook repeatedly.
    If in case the change of mode is not possible, then is there any alternative  method?

    Try this version:
    Public Sub Expdata()
    Dim rst As DAO.Recordset
    Dim Apxl As Object
    Dim xlWBk As Object, xlWSh As Object
    Dim PathEx As String
    Dim i As Long
    PathEx = Forms("Export").Text14 'path comes from the directory given in form
    Set Apxl = CreateObject("Excel.Application")
    Set xlWBk = Apxl.Workbooks.Open(PathEx)
    Set xlWSh = xlWBk.Worksheets("Metadatasheet")
    Set rst = CurrentDb.OpenRecordset("LatestSNR")
    For i = 1 To rst.Fields.Count
    xlWSh.Cells(1, i).Value = rst.Fields(i - 1).Name
    Next i
    rst.MoveFirst
    xlWSh.Range("A2").CopyFromRecordset rst
    xlWBk.Close SaveChanges:=True
    Apxl.Quit
    rst.Close
    Set rst = Nothing
    End Sub
    or else
    Public Sub Expdata()
    Dim PathEx As String
    PathEx = Forms("Export").Text14 'path comes from the directory given in form
    DoCmd.TransferSpreadsheet TransferType:=acExport, _
    SpreadsheetType:=acSpreadsheetTypeExcel12Xml, _
    TableName:="LatestSNR", _
    Filename:=PathEx, _
    HasFieldNames:=True, _
    Range:="Metadatasheet!"
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

Maybe you are looking for

  • How to make use of structure in my program

    hai!       i want to know how i can use the structure "rstxt' which contains a field by name "txline". this structure is used to hold basic data text present in basicdata1 view of transaction mm01. i want to know how i can access this structure in my

  • If I get the APP & send in my iPod b4 the second year,do I have to pay s&h?

    I got my 5th gen iPod last May and the battery is already dead. I haven't gotten the AppleCare Protection Plan (APP) yet but if I get it and then send my iPod in for a new battery directly after I start my APP(before the second year starts), do I sti

  • Join tables with aggregate function

    Hello I have 4 views that I need to perform aggregate function, count, on and then join them for query output. Basically each view has a column with a score and a subcontractor name. One subcontractor may have more than one score in each view. Here i

  • I can't convert songs into ringtones

    Yesterday, I had 50 songs that I could convert now I have none. I tried changing Rockstar by Nickelback and Crazy by Gnarls Barkley. Yesterday, they were both convertable, now there not.

  • Problem with JAXB

    I am trying to run a simple test program to unmarshall and XML doc and am getting the following error: [erdos OpenOfficeDev]$ ./java_jaxb.sh unmarshall sampleDoc.xml JAXBLIB /opt/tomcat50-jwsdp/jaxb/lib CLASSPATH /opt/tomcat50-jwsdp/jaxb/lib/jaxb-api