How do I show a Waveform using the Labview Report Generation Toolkit?

I am using LV 6.0.2 & have charts that consist of Waveform array type data - how do I break this down properly to using in Easy Graph.vi for the report generation tool kit which accepts on 2D arrays ?

It looks to me like you want to use the Get Waveform Components VI in the Waveform Subpalette on the Functions Palette. The Waveform data type is a cluster of three elements, one of which is the data array. Because you have an array of Waveforms you will want to extract the data from each waveform in the array and build a 2D array of data for the Report Generation VI. The easiest way to do this would be auto-indexing into a for loop. The for loop should have the Get Waveform Components VI in it and then each data array (1D array) will be added to a 2D array using auto-indexing on the way out of the for loop as well.
Hopefully my description was able to help out. I am including a bit of code which isn't really useful other than illustrating the code I des
cribed above. It simply takes an array of waveforms, extracts the data and creates a 2D array of data.
As a side note, I find the Context Help Window extremely useful when using new data types. This is especially true when using Graph and Charts
Good luck!
-scraggs99
Attachments:
Waveform_Array_to_2D_Data_Array.vi ‏30 KB

Similar Messages

  • How do I put data into a template using the Labview report generation toolkit for Microsoft Office?

    I am running Lookout 5.0 and have recently purchased the Labview Report Generation Toolkit for Microsoft Office to create reports from my Lookout logged data. Since I have never used Labview I am having my problems. I tried following the tutorials but they do not seem to be examples of what I want to do.
    I log rainfall totals (1 spreadsheet)in Lookout from 40 different sites in 5 minute increments. I copy these totals and paste them into another spreadsheet which sums them up to give me hourly totals and then paste those totals into a spreadsheet for distribution.
    In Labview I create a new report and use the distribution sheet as my template, but how do I complete
    the steps of loading the raw 5 minute data into labview and then paste it into the hourly total spreadsheet and then transfer those totals into the distribution template?
    I have been trying to figure this out for over a week, and I am getting nowhere.
    Any response would be appreciated.
    Thanks
    Jason P
    Jason Phillips

    Lookout saves the files in .csv form which can be opened in Excel. I did make some progress by using the "append table to report" vi which allowed me to put values into an array and then those values were entered into my template on my report vi.
    Where I am stuck now is I want to be able to put values into my template from a .csv file, not from an array I have to manually put numbers in.
    Once those values are in my template I want to pull summed values from the template and place them into a final excel file for printing.
    I have attached examples of the files I am working with to help you better understand what I am trying to do.
    I hope that makes sense.
    Jason Phillips
    Attachments:
    HourlyTotalsTemplate.xls ‏120 KB
    eb_rain_gauge_ss.csv ‏23 KB
    EastBankHourlyRainReport.xls ‏28 KB

  • How to set tabstops in MS Word using the LabVIEW Report Generation Toolkit

    Using the Report Generation Toolkit of LabVIEW, I need to set multiple tabstops that very in distance in MS Word.  I also have different sets of tabstops that I use and re-use at different times in the same report.  Is there a way to set the tabstops under program control?  I searched through the various VIs and found that there is a property ("Tabstops", "Word.Tabstops") in the _ParagraphFormat property node that refers to tabstops.  I found it in the Word Format Paragraph (adv) VI.  Unfortunately, I could not determine how to use it.  Any suggestions?  Is this an operational element?

    Bluebell,
    Sounds like you've already done some fantastic work to expose the various properties and methods of MS Word. It took me about 20 min before I could find the specific property that you were talking about! I found it under Word.Document>>Paragraphs>>Tabstops>>Add. There is a position, alignment and leader parameter that you can set from this property node. I've found that the best way to discover what these parameters do is to simply experiment. You could also try using the macro recorder in Word, perform the specific task, and then look at the code generated. I'm guessing that position sets the position of the tabstop itself. It sounds like your application is really specific. For such a specific task, I think I'd write a macro and call that macro from LabVIEW.
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

  • How to obtain the table index in word use LabVIEW Report Generation Toolkit for Microsoft Office

    I created a word templete and it had several tables. When I use the "Word Edit Cell" function in LabVIEW Report Generation Toolkit for Microsoft Office, the function need "table index", and I didn't find any function to get or set the table index in word document. How can I achieve my attention to write value to specified table cell using the "Word Edit Cell" function?
    Thanks for reply!
    YangAfreet

    Hi yangafreet
    You do not need to get the table index for the word edit cell.vi from anywhere. LabVIEW will automatically index all the tables in the document. See the attatched vi for an example.
    Rich
    Attachments:
    Table Edit.vi ‏23 KB

  • Assistance with Printing to Zebra QL220 using the LabVIEW report VI

    I currently am trying to use the LabVIEW report VI to output a formatted set of strings to the above mentioned printer.
    The UMPC hardware that runs the developed application is bare bones XP box and doesn't' have MS office installed
    I use the LV new report set to a standard report and  successfully set orientation to portrait or Landscape, set margins and set report fonts and headers.. However  in sending the text strings to this label printer (labels are 45mm X 60mm) I find that that two issues arise.
    1. Printing out double labels. The pagination fails and prints a blank label after each print when text is output.  However if I disable all headers and body text (i.e blank label print). This pagination works fine.?
    2. The formatting of the information on the page reliably, I currently use inserted blank spaces, is there a better way?
    I thought, perhaps I should try using the ZLP programming language, but then not sure how to I send it to a USB printer? Has any one had any experience with this and these label printers ?  
    Thanks
    Greg Nicholls

    hi all
    i am C sharp programer
    and i have zebra QL 220 plus
    and roll type is 42X20mm
    and i have the zebra sdk
    and i create mobile application in C# smart device
    and i tring to connect to printer from my application by bluetooth
    in sdk i got this and use
    using System;
    using ZSDK_API.Comm;
    using System.Text;
    using System.Threading;
    // This example prints "This is a ZPL test." near the top of the label.
    private void SendZplOverBluetooth(String theBtMacAddress) {
    try {
    // Instantiate a connection for given Bluetooth(R) MAC Address.
    ZebraPrinterConnection thePrinterConn = new BluetoothPrinterConnection(theBtMacAddress);
    // Open the connection - physical connection is established here.
    thePrinterConn.Open();
    // Defines the ZPL data to be sent.
    String zplData = "^XA^FO20,20^A0N,25,25^FDThis is a ZPL test.^FS^XZ";
    // Send the data to the printer as a byte array.
    thePrinterConn.Write(Encoding.Default.GetBytes(zplData));
    // Make sure the data got to the printer before closing the connection
    Thread.Sleep(500);
    // Close the connection to release resources.
    thePrinterConn.Close();
    } catch (Exception e) {
    // Handle communications error here.
    Console.Write(e.StackTrace);
    // This example prints "This is a CPCL test." near the top of the label.
    private void SendCpclOverBluetooth(String theBtMacAddress) {
    try {
    // Instantiate a connection for given Bluetooth(R) MAC Address.
    ZebraPrinterConnection thePrinterConn = new BluetoothPrinterConnection(theBtMacAddress);
    // Open the connection - physical connection is established here.
    thePrinterConn.Open();
    // Defines the CPCL data to be sent.
    String cpclData = "! 0 200 200 210 1\r\n"
    + "TEXT 4 0 30 40 This is a CPCL test.\r\n"
    + "FORM\r\n"
    + "PRINT\r\n";
    // Send the data to the printer as a byte array.
    thePrinterConn.Write(Encoding.Default.GetBytes(cpclData));
    // Make sure the data got to the printer before closing the connection
    Thread.Sleep(500);
    // Close the connection to release resources.
    thePrinterConn.Close();
    } catch (Exception e) {
    // Handle communications error here.
    Console.Write(e.StackTrace);
     and once i use ZPL method it print 17 barcod always with 16 blank Patches (labels)
    and  when i use CPCL method it print 12 BarCode always with 11 blank Patches (labels)
    and i dont know why ?
    it must print 1 Patch (label)
    what i can do  and i dont think there is eny rong with my code
    all waht i want is how i can give Length and width and how much label print coz it is always print 17 or 12 what i can do ?

  • LabVIEW Report Generation Toolkit in the application does not work

    I have LabVIEW7.1 and LabVIEW Report Generation Toolkit for Microsoft Office 1.0.1, which was updated after installed. I made a VI in LabVIEW7.1 enviroment using the Report Generation Toolkit and it works very well. After the VI was build an application.exe and installed even in the same PC, the Report Generation Toolkit didn't work. Excel that should pops-up does not do anything.
    the office i used is office xp. would you like to help me?
    thank you very much.
    Jing

    When you build the application, you have to include as "Dynamic vi" in Source file tab the vi:
    _Word Dynamic VIs.vi. from _wordsub.llb
    _Excel Dynamic vis.vi from -Excelsub.llb
    in the following library
    ...\National Instruments\LabVIEW 7.1\vi.lib\addons\_office\"
    Refer to the following discussion thread
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000053460000&ECategory=LabVIEW.LabVIEW+General

  • How to update data to excel in runtime with LabVIEW Report Generation Toolkit

    hi,All
         i am using LabVIEW Report Generation Toolkit,and a newer.i want to insert the data in excel for every loop.
         so at first,need to creat a excel file(xxx).and when every loop end,the test data can be insert into the file(xxx).when the test finished,the file will be saved.
         i have seen the examples in LabVIEW Report Generation Toolkit, all of them need to creat a new file.i need update the data in the same file.
         can you give me some advances for that?
         my labview's version is 8.5 and LabVIEW Report Generation Toolkit's version is 1.1.0.
         thanks a lot.

    Hi cat099,
    One question, why don't you store data of each loop, say in shift register and update all data in excel  at once when your test is finished.
    It will be easy. Or else, if you want to build same functionality as you mentioned, then you can build your own vi to write in excel. No need to use report generation toolkit.
    See attached example.
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.
    Attachments:
    write to excel.vi ‏21 KB

  • How to Run teststand sequence file using the LabVIEW

    Hi
    I want the execute the Teststand Sequence file using the LabVIEW .Net containers.I didnt find out the Execution Parameter in the .Net Container.Do you any suggestion regarding this question.Please let me know.
    Jayavel

    TestStand comes with loads of Operator Interface examples some simple, some full fledged. You can find it in teststand public folder win7 path here:C:\Users\Public\Documents\National Instruments\TestStand 2010 SP1\UserInterfaces
    You can take these examples or use ideas from here, also read the teststand reference manual. It has a section about Operator Interfaces.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Saving only a portion of a Microsoft Word template into a new document using LabVIEW Report Generation Toolkit

    I have a Microsoft Word template I want to populate programmatically with test data. The template contains both explanatory text and a data sheet section with test data placeholders (bookmarks). Using the Report Generation Toolkit for Microsoft Office, I have been able to successfully populate the placeholders with data and save the results into a new Microsoft Word document. The problem is the new Word document contains not only the test data but also the explanatory text that was in the original document template. Ideally, I would like to have the generated document contain just the test data without the accompanying text. Is it possible to do this usi
    ng the Report Generation Toolkit?

    Hello Ryan,
    Two easy options come to mind.
    1. You may want to consider using an �ink annotation� instead of regular text for your explanation.
    2. You can programmatically do a find and replace on the explanatory text. Have LabVIEW find the whole paragraph, and replace it with nothing.
    If none of these suggestions help, or if I�m not correctly understanding your issue, please reply with comments or answers to the discussion above and any additional information that may help, and I�ll be happy to look further into it.
    Have a nice day!
    Robert Mortensen
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments

  • Hide Excel Chart Legend Using LabVIEW Report Generation Toolkit or Active

    Hello Eveyone:
    I work on the report generation toolkit in labview and creat the report in excle. I create the chart into report but I can't hide the chart legend or change the font size using report generation toolkit.
    I appriciate you guys time.
    Thanks
    Solved!
    Go to Solution.

    Howdy!
    What is the version of LabVIEW and Report Generation Toolkit you are using? Have you taken a look at the LabVIEW Example Column Graph (Excel).vi
    and looked at the help for Excel Insert Graph VI and Excel Set Graph Font?
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • Setting the title font and axis labels in a graph created with the Report Generation Toolkit

    I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
    Thanks for your help,
    Zach Lerner
    Software Engineer
    OnWafer Technologies, Inc.
    Attachments:
    Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls ‏14 KB

    Hello Zeidan
    The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
    Best Regards,
    Ayman Kabire
    Attachments:
    Excel_Insert_Chart.JPG ‏99 KB

  • Does the Report Generation Toolkit support Office 2007?

    With the hot-out-of-the-oven Office 2007, Microsoft has done a complete overhaul of the Office environment that we all have spent many years learning to perfection (well.. almost). Lucky those who got a head start as part of the Office Beta program.
    Well, NI claims that the current version of the LabVIEW Report Generation Toolkit supports "Microsoft Office 2000 (Word, Excel, and Graph) or later" and therefore literally also the new Office 2007.
    I doubt that the ActiveX API has remained unchanged when developing Office 2007, so let's use this thread to uncover the experience you have with calling Office 2007 applications using the LabVIEW Report Generation Toolkit.
    Anyone???
    - Philip Courtois, Thinkbot Solutions

    We are currently working on a maintenance release for the Report Generation Toolkit to support Office 2007.  You can install the current toolkit with Office 2007, but you will have some problems.  If you copy the four LLBs from the Compatibility\Office 2003\vi.lib\addons\_office folder on your Report Generation Toolkit CD to the corresponding vi.lib\addons\_office location in your LabVIEW folder after installing the toolkit, things will work for the most part.  But you won't have 100% compatibility until the maintenance release is done.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Distribution with the report generation toolkit

    I am using the LabView report generation toolkit to put data into an
    Excell spreadsheet. It works fine in Labview and the executable works
    on my development PC, but not on a client PC - it opens a template XLS
    spreadsheet OK but does not insert the data.
    I have included the required dynamic vis in the application builder and checked 'NI Reports Support' in the installer settings.
    LabView 7.1
    Thanks,
    Jim/.

    Is it a different version of Excel?  I have had problems with different versions of Microsoft Office products not connecting or behaving correctly.  That it opens the template seems to indicte that this is probably not the problem, but it is something to check.  There have been many posts about that problem here, so if that is what is going on, the solutions may be here as well.
    Let us know what you find.
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How to save Charts to a word document using LabVIEW Report Genereration toolkit?

    I just started using the LabVIEW Report Genereration toolkit, but I can't figure out how to save Waveform Charts (one dimensional data versus time, instead of Graphs) to a Word document. Can somebody give a suggestion? Thanks!

    Nina,
    In MS Word, you have 2 options when you select Insert Object:
    Microsoft Excel Chart
    Microsoft Graph 2000 Graph
    If you select Insert Picture, you can choose Chart. This is the same chart as when you select Microsoft Excel Chart.
    To insert this chart, you will use Word Insert Graph.vi. This VI calls Word_Insert_Chart.vi, that uses ADO object Graph.Chart and its properties and methods.
    From the Microsoft Help:
    Create a chart by using Microsoft Graph
    When you create a chart by using Microsoft Graph, a chart and its associated data are displayed in a table called a "datasheet."
    Zvezdana S.
    National Instruments

  • How to create a working link anchor in an EXCEL document with the report generation toolkit?

    I am using the latest report generation toolkit and want to add links on the first worksheet pointing to the other worksheets in the same document.
    I am using the "Append Hypertext Link Anchor to Report" VI. The links are created, but don't work when clicking them.
    Question now is: How does a link to a cell on a different worksheet needs to look like?
    It can not be that complicated but all variations I tried did not work and I could not find any information about this problem. So any help is appreciated!
    Thanks and Regards,
    Ingo
    Solved!
    Go to Solution.

    Thanks, Brian, for your support! - It's working.
    It's hard to understand why NI did not pass this parameter to the top of the call chain...
    I also needed some time to understand the syntax of the string passed to the subaddress node:
    The name of the worksheet needs to be framed by single quotation marks and the following cell address must preceeded by an exclamation point (!).
    A working link pointing to cell "A1" of "Worksheet 1" looks like:
    'Worksheet 1'!A1
    Maybe also of interest: If you want to point the link to a worksheet inside the document itself, the parameter "address" (URL of link - href) can be left empty.
    Thanks and Regards,
    Ingo

Maybe you are looking for