Logfile Generation utilizing "Excel" (Creating and Appending Report)

All,
As always, thanks for the help you have given me in the past....especially the Vets. I have tried to figure out a solution to my issue from the message board, but no solution seems to fit what I am doing.
Here is my situation...... I am using Labview to test my product one unit at a time. I have always used Teststand and report generation from there, but this time it is strictly Labview. This is my first attempt to create a logfile with Excel that appends one xls file everytime one unit is tested.
The way my test is set up now, I test and collect the data in an array for when I created the logfile generation VI. I took several stabs at it, looked at examples, but cant figure out the direction I need to go to create this. Here is the parameteres necessary for the logfile (spreadsheet).
-All UUT's will go into one spreadsheet and the spreadsheet will be appended by adding new data in next available row.
-Data is imported to spreadsheet in array format.
-Test data that passes will be green, test data that fails will be red (I can figure this out, but this is why I need to use Excel)
-I want to use Excel so I have more flexibility for graphs and things of that nature in the future.
It seems rather simple, but not for me.....lol. If I go to the Report Generation Toolkit, i  see "Create Report" and "Append Report"....but Append Report still wants the "report input" node wired. What do I wire that to? For example, if I have an excel spreadsheet called hangover.xls, do I somehow wire hangover.xls to the input? I am having trouble finding answers. I would really appreciate a simple JPG or VI so I can understand the setup for what I want to do.
Comments and links to threads/help appreciated!
Ryan

Hi Evan,
Thanks for the other examples....I thought I was going to be able to manipulate them into what I want, but ended up spending about 6 hours playing with it and up to 2am. I am getting so frustrated with this. This is new ground for me, I never have experimented with logfile creation. I am sorry to keep bothering you with this but I am ready to pull my hair out. I attached a couple Vi's....Spreadsheet import is the main VI and report.vi is the sub.....i need to rename them better but haven't got there.
First off, that VI you posted that I couldn't open, could you just take a JPG of the block diagram? That would really help.
I need to create a spreadsheet with logfile data in rows. The spreadsheet is to be appended for each unit under test. Each unit under test gets one row and all data is written at the end of the test. If you look at the spreadsheet_import.vi, I am basically taking a bunch of 1D arrays of data to create one long 1D array for one row.
Every month a new spreadsheet is created (so log file data is divided into months) , and that is what the report.vi does....it looks to see if the filename is already created and if not, sends a boolean to the write to spreadsheet file to append. I reverted to "write to spreadsheet" because for the life of me, I cannot figure out how to use the worksheet portion to do this. I would think this should be pretty simple, but I cannot figure out and its not for lack of trying.
 If I use "write to spreadsheet", I am going to run into problems because I ultimately want to use a excel template with formulas but if I can figure it out, this will have to do.
All I really want to do is to create a spreadsheet if one doesnt exist or append if it does, combine all my 1d array data, and create one row with this data. The other issue I ran into before is I cant figure out how to tell Excel where the next row is.......UUGHHHH! This is definitely stressing me out as I have a deadline and I will gladly sent a case of beer to Norway for the help received.
Dying Here,
Ryan
Attachments:
Spreadsheet_import.vi ‏14 KB
report.vi ‏33 KB

Similar Messages

  • Report Generation tool kit for MS office (Opening an existing excel file and appending to the bottom)

    I don't have any problems creating and filling an excel sheet with data. I use the New Report.vi, Easy Title.vi, and Easy Text.vi to create the file. I then save and dispose properly.
    What I don't seem to be able to do is open the exsting file and append data to the end of the sheet.
    Thanks in advance for your help.
    todd

    Hi Todd,
    You can do this by creating a new Excel report with the existing excel file path wired to the "template" input. Then use "Excel Get Last Row.vi" (located under Report Generation\Excel Specific\Excel General) to obtain the location of the last row. Then use that location to input new data into the file.
    Hope this helps,
    Dan

  • Report Generation Toolkit Excel errors and Libraries, Classes

    Hello All,
    I'm using the Report Generation toolkit Excel functions to handle some data and create graphs.  I'm running into problems with the Add Worksheet.vi.  At the very start of the vi, it closes the reference to Shapes.  Occasionally, the Close Ref will throw an error.  I haven't pinned down the exact cause yet (probably an invalid reference).  The error itself wouldn't be a problem.  Under other circumstances I would choose to ignore it and continue on.  The problem is, this is stored in a Class Library controlled by NI.
    Solutions I've tried without success:
    1.) Make changes, and save the new vi with another name - can't do it because it's encapsulated and the Library is password protected.
    2.) Install toolkit in something other than the default folder, so I can make changes and put it under Source Control - installer doesn't allow a new path to be entered.
    3.) Change the vi where it is.  This works until I move the source to another computer or I update Labview.  At that point I lose all my changes.
    Maybe it's just my inexperience with Classes, but I just don't see an elegant solution to this.  Ultimately I'd like to copy the library off to somewhere else and put it under Source Control so I can make changes and additions to it (NI folks - providing a password to unlock the lib would be helpful...).  Does anyone have suggestions on how I can accomplish this?
    Thanks in Advance,
    Doug

    Hi Ben,
    Sorry about the first post.  After re-reading it, it sounds more like a frustrated rant than a request for help.
    I've attached a simplified vi to try to illustrate the problem I'm having.  I'm running Excel 2007.  Please open the vi, then open Excel Add Worksheet.vi.  At the start of the vi, Close Ref for Excel.Shapes occasionally throws an error.  So far, I have not been able to consistently reproduce the error, so I can't really troubleshoot it.  As I recall, the error code is 1045.  The error is carried through the rest of the vi, causing invalid references to be written to Excel._Worksheet and Excel.Shapes, going out to NI_report.ctl.
    So, here are the issues I'm running into (other than the error itself):
    1.)Short of closing and reopening the file, there is no way to recover from the error.  After the error, there is an invalid reference in Excel._Worksheet.  There is no vi available to regenerate references in NI_report.ctl.  I could easily write a vi to start from Excel._Application and re-read them, but because NI_report.ctl is in a Class library (controlled and passworded by NI), I can't add the vi to the library.
    2.) I found that I could ignore the error by wiring around it.  If I disconnect Error Out from Excel.Shapes Close Ref and wire Error In from Excel.Sheets.Count to the Error In of the Close Ref, everything works fine.  Under other circumstances, I'd save this with a new vi name (because functionality changed) and continue on.  But, because the vi is part of a Class library (controlled and passworded by NI), I can't do this.  I can save the vi with the modifications (because Excel Add Worksheet.vi is not passworded), but if I pass the source off to someone else, they will have to make the same changes on their installation of the NI Report Generation Toolkit.
    Again, I can't reproduce the error with any regularity.  I've run the example vi I provided a few times and everything seems to work fine.  If I come up with something, I'll repost.  If you (or anyone) has an idea of what could be failing or if they've seen the problem, I'd appreciate a comment.
    Thanks again,
    Doug
    Attachments:
    Excel Fail.vi ‏15 KB

  • Logo in Excel Sheet and Appending Data under it

    Dear All,
    I have a requirement to insert Company Logo in excel sheet.
    Is it possible?
    Currently we have decided to have the logo already in the spreadsheet and append the data in excel under the logo.
    Any directions towards to development would be helpful. Thankyou.
    Regards,
    Durvi.

    Hi Guys.
    Sorry just answering my own question.
    The requirement was acheived by having logo already in the file.
    But Vijay's answer was good one, archived it already. I did not find the thread you provided. Already awarded you points.
    Thanks for your replies.
    Cheers.

  • Create and configure reports server in Oracle 9iAS 1.0.2.2.2 on solaris 10

    Hi All,
    I have installed Oracle 9iAS 1.0.2.2.2 on Solaris 10. I want to create and configure a new reports server.
    Please help as I can't see anything on metalink.
    Thanks/Regards
    Dirish

    In fact when installing 9iAS 1.0.2.2.2, the default report server name looks like this REP60_TEST.INTNET.MU.
    My original tnsnames.ora was like this
    REP60_TEST.INTNET.MU =
    (ADDRESS = (PROTOCOL = tcp)(HOST = test.intnet.mu)(PORT = 1950))
    I added an alias to the tnsnames.ora file
    now my tnsnames.ora is like this
    REP60TEST,REP60_TEST.INTNET.MU =
    (ADDRESS = (PROTOCOL = tcp)(HOST = test.intnet.mu)(PORT = 1950))
    This is working fine
    Thanks

  • Create and deploy reports that don't depend on concrete environment.

    I want to do the following:
    Create a report in my sandbox for using with SCCM 2012 reporting system. Report will show customized hardware inventory information. Then install that report on production environment. Production environment is differ from my sandbox. Different report server
    URL or data source DB name and etc. Only stable part of report is the SQL query and display options.
    Does anyone know how can I achive this?
    Currently I am looking at rs.exe utility but I'm not sure that is a right way.

    You can achieve this using rs.exe
    Datasource name can be made dynamic by using expression based connection strings
    see
    http://blogs.msdn.com/b/johndesch/archive/2012/12/17/using-the-rs-exe-utility-to-deploy-a-report-server-project-and-shared-dataset.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Can Power Users or Mgt Create and Design Reports Through Query Designer ?

    Dear BI consultants,
    Iam new to BI.
    My management has requested me to Train Power users from All Modules(FICO,HR,QM,PP,SD,MM) to Create Queries and Design Through Query Designer.
    My question is are we suppose to Give query Designer Access to Power users or Mgt so that they can create Queries and reports by themselves.Please Suggest me wht is the Best Practices.
    is it feasable to train power users and Mgt as to how 2 create queries. will there be any side effect on the System or our end.
    Plz suggest.
    wht are the advantages and disadvantages of this.
    If I train the Power users then is there any risk of my Job.
    since they will be creating all reports by themselves.
    wht else can a BI consultant do since iam in a support project.
    how do i convince my Mgt?
    Plz Suggest.
    Thanks Awaiting

    This is common procedure maintained in most of the company's for end users.
    There is no issue if you train the power users.you will be the first point of contact if they have any doubts.and more over you are supporting for your client right? this can't be handed over to power user or end user. data is imp for the client so there will not be any problem for you, if any issue comes while loading you need to take care of the errors and fix the.
    power users or end user will be familiar with Business requirement not with the Query building logic's not with the BW procedure so no worries for you.
    as vineeth said its better to keep control regarding the global and key things at your end so that you will not loose contol on the reports.

  • Difference between diadem and LabVIEW Report Generation Toolkit

    I want to expand LabVIEW's reporting capabilities.  Can someone tell me what the difference is between DIAdem and the LabVIEW Report Generation Toolkit for Microsoft Office.

    Hello Mr Bean,
    There are several major differences between the two solutions. I'll try and outline them as good as I can ...
    The biggest different is that LabVIEW and its toolkits are programming tools and DIAdem is a ready to run application.
    The LabVIEW Report Generation Toolkit basically provides an extensive library of VIs that allow you to connect LabVIEW to the MS Office library and create and edit reports in Word and Excel.
    DIAdem is a stand alone application that was designed to post-process data from various sources. The tools included in DIAdem are:
    1. NAVIGATOR: Allows you to import data from files (ASCII, binary, Excel, etc.) as well as DataBases (SQL/ODBC, Citadel, ASAM, etc.). The unique DataPlugin technology available within DIAdem allows you to import vitually and data file by creating a DataPlugin that describes the data format and gets linked to DIAdem. More information at: http://www.ni.com/diadem/dataplugins.htm
    2. VIEW: Graphical and Numerical data inspection tool. Use cursors to zoom and scroll through your data, edit your data graphically and numerically and compare different tests.
    3. ANALYSIS: DIAdem has a wide range of analysis functions, ranging from simple functions like integration and differentiation to FFTs, Order analysis and 3D data analysis.
    4. REPORT: The DIAdem REPORT tool allows you to create reusable report layouts that can contain multiple axis systems (2D, 3D and polar plots) as well as tables (2D and 3D) and variables. The REPORT tool generates templates that can be usedwith multiple data sets due to the inclusion of automatic (or manula if required) scaling as well as extensive use of variables for annotations. Finished reports can be exported to printers, graphics files, the Windows Clipboard, HTML pages and PDF files (PDF writing is build into DIAdem, no extra software required). Using Scripts, it is also possible to create Word, Excel or Powerpoint reports from DIAdem automatically.
    5. SCRIPT: The DIAdem scripting tools allows users to record macros or write scripts that automate complete sequences, for the import of data, via extensive analysis, to creating a publication ready report. Scripts can make reports "intelligent" by modifying the appearance of a report based on the data or calculation results that are going to be displayed in the report.
    I recommend you check out the following link for more information: http://www.ni.com/diadem/
    DIAdem is an extremly powerful tool for report generation. I am leaving to go on a business trip to Asia, but I would be more than happy to give you an Web presentation on DIAdem after I have returned. We could use your data and create a DIAdem report Script together online. My Email address is [email protected] and I will be back the week of Thanksgiving.
          Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Error 97 when running built application and printing report.

    I get the following message:
    Error 97 occurred at Unknown System Error in Print Report.vi->PM Workorder.vi->NEW PM main.vi
    Null Refnum was passed in as input
    when I try to run my built application, but it will run fine as a vi. I am using the Report Generation Toolkit with the Excel functions. I am opening an Excel template, adding data, and then printing. When I run the built application it looks like Excel is not opening up, but when I run the vi, I can see excel open and the report is sent out to the printer. I am running both the built application and the vi on the same computer.

    Hello,
    I found a similar problem some month ago. I solved including in the application the excel vi's library, that you will find in the labview directory addons.
    I hope this info will help you!
    Regards
    Neon

  • Coldfusion and SQL reporting service 2005?

    Ive been searching google for hours with no clear answer. How
    can you use coldfusion to pull in an sql report from reporting
    service? Via a web service or wsdl i assume, but how?

    Anwar,
    It's important to get the terms right here.
    SQL Reporting Services is not the same as SQL Server Reporting Services (SSRS).
    SQL Reporting Services refers to an Azure service that lets users develop reports in the cloud. However, it is being retired in Oct. 2014, so you'll want to stay away from that.
    SQL Server Reporting Services (SSRS) is the reporting module that is part of SQL Server. This is a sophisticated tool that lets developers create and publish reports that users can access through various methods. It has schedule and refresh capabilities,
    and can leverage SQL Server Analysis Services (SSAS) and SQL Server Integration Services (SSIS). You'd most likely use SSRS if you're creating sophisticated reports and queries that you don't want your users creating.
    SQL Report Builder is a report creation tool designed for users who want to stay in Microsoft Office. It can be used by developers or end users. 
    http://technet.microsoft.com/en-us/library/dd220460.aspx
    Both environments let you create reports that can be shared (published) on a report server or through SharePoint.
    So it's really a matter of what you're most comfortable using.
    Hope that helps.

  • Creating Business Object Reports and Dashboards utilizing Informatica

    I need to create Business Object Reports and Dashboards utilizing Informatica database. Please let me know what connections I need to create to integrate the data into Web Intelligence, Universe, Xcelsius, and Crystal Reports.
    Thank you

    I've just done some quick checking and I don't see a native connection type for Infomatica in Designer or Crystal.  (Designer is a tool for building universes - WebI and Xcelsius both read data through a universe, Crystal can read data through a direct connection to the database or through a universe.) This means you'll probably have to set up a "generic" ODBC connection in order to connect to it.
    -Dell

  • LabView Exe Applicatio​n file not launch Excel applicatio​n for report generation

    Dear All,
    I created one LabVIEW application file for report generation (using Excel Template).
    While I run the program in programming mode it works well and create the report file in the specified path.
    After creation of the application file(exe), it gives the correct path of where the excel template is placed. The same path is given to New Report.vi, but it gives the error 'File Not Found'.
    Tell me, is any other configuration required for generating Excel reports? (During exe application mode)
    Give me the solution.
    Thank You
    Jegan.

    Hello,
    Most likely you are encountering a problem of stripping and/or building paths.  Probably the easiest thing to do is put a couple indicators on your front panel for the path or paths you care about, build your exe, and make sure you are really using the path you'd like.  If you always put the report at some deterministic place relative to the exe (that is, even it the exe is moved, it will go with the exe and remain in the same relative path location, then you can use the Current VIs Path funtion found in the ... File I/O -> File Constants palette as a start path (where you will want to strip at least the exe name off of course).
    I think this will bring some clarity to the issue!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Report generation Toolkit: Excel report functions error -2146827284

    Hi,
    I'm trying to create an automated report using excel functions from the report generation toolkit in labVIEW. When I run the program that generates the report first time round (the report consists of several worksheets, each worksheet is added onto the report at a diffferent state in a state machine) it always works fine and no error is generated. However, when I run the program again it will infrequently (sometimes it does, other times it will not) generate the undefined error -2146827284, this is coming from one of the excel report functions and it cannot find it on highlight execution mode.
    Does anyone know anything about this error, why it occurs, how to prevent it?
    I would appreciate any help.
    Thanks,
    Rowan

    mebels_cti wrote:
    Found something that helped; https://forums.ni.com/t5/LabVIEW/Error-code-quot-2146827284-quot-when-trying-to-open-an-Excel/m-p/20...
    Excel still open
    So I added this;
    You should use the Application Quit method instead of killing the task. I doubt this is the cause of your issue.
    Ben64

  • How to use active X controls to read/write protect an excel or word document created by created by Save Report to File VI

    Hi all,
    I'm trying to creat a word and excel documents using Save Report to File VI. When wiring a password to this last VI, the document created are only protected against writing but not reading. How can I use active X controls to password protect these documents against reading?
    Thanks a bunch!
    O

    There is no predefined functionality available in LabVIEW. So you have to implement this on your own.
    It seems to me that you own the Office Report Generation Toolkit. You can use the Excel Get ActiveX References.vi from the Excel Specific >> Advanced palette to get access to the "generic" ActiveX Excel references. Starting from this point, you can use property and invoke nodes to get to the setting you are going to modify.
    Please refer to this link for information on Excel password protection. I have not searched for the object giving you access to those settings though....
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Using Word Easy Table Under Report Generation takes long time to add data points to table and generate report

    Hi All,
    We used report generation tool kit to generate the report on word and with other API 's under it,we get good reports .
    But when the data points are more (> 100 on all channels) it take a long time  to write all data and create a table in the word and generate report.
    Any sugegstions how to  make this happen in some seconds .
    Please assist.

    Well, I just tried my suggestion.  I simulated a 24-channel data producer (I actually generated 25 numbers -- the first number was the row number, followed by 24 random numbers) and generated 100 of these for a total of 2500 double-precision values.  I then saved this table to Excel and closed the file.  I then opened Word (all using RGT), wrote a single text line "Text with Excel", inserted the previously-created "Excel Object", and saved and closed Word.
    First, it worked (sort of).  The Table in Word started on a new page, and was in a very tiny font (possibly trying to fit 25 columns on a page?  I didn't inspect it very carefully).  This is probably "too much data" to really try to write the whole table, unless you format it for, say, 3 significant figures.
    Now, timing.  I ran this four times, two duplicate sets, one with Excel and Word in "normal" mode, one in "minimized".  To my surprise, this didn't make a lot of difference (minimized was less than 10% faster).  Here are the approximate times:
         Generate the data -- about 1 millisecond.
         Write the Excel Report -- about 1.5 seconds
         Write the Word Report -- about 10.5 seconds
    Seems to me this is way faster than trying to do this directly in Word.
    Bob Schor

Maybe you are looking for

  • Ejb-link not working when i access ejb in different ear

    Hi All I am here trying to access ejb's which is in different ear, I am providing ejb-link inside web.xml of war file deployed inside deffirent ear file. I am using wls8.1sp5. I tried different combination with elb-link name , but its not working . <

  • Macbook Pro 10.6.8   Beeps 3 times upon start up.

    My Macbook Pro (4 GB RAM) - is beeping LOUDLY 3 times when I start up.  It has been performing poorly lately.  It seems to have trouble coming out of sleep.  It will just become unresponsive and have to restart.  I took it to Apple and they kept it o

  • IE8 crashes when iTunes is installed

    Hi I have tried to download iTunes several times recently, and each time it installs OK, but when I tried to load up IE8, this doesn't work and gets a exception window. Each time, I have done a system restore, and it then IE8 works fine. Has anyone h

  • Exception - sealing exception while starting weblogic

    i get the following exception while starting weblogic , pls let me know what changes needs to be done!! D:\bea\user_projects\mapos>"d:\bea\jdk131_06\bin\java" -hotspot -Xms64m -Xmx256m -Dserver.id=01:7001 -Ddomain.home=D:\bea\user_projects\mapos -Dwe

  • Why does Safari crash within a min or two after opening?

    Even when I don't touch the keyboard or mouse it crashes. Any help would be appreciated! Thanks Date/Time: 2009-03-05 19:17:29.061 -0600 OS Version: 10.4.11 (Build 8S2167) Report Version: 4 Command: Safari Path: /Applications/Safari.app/Contents/MacO