Labview graph from excel data

Hello,
I need some help. I have data in excel The first column is a timestamp and the other columns are the data needed.and I am trying to get a graph with multiple plots with these data.
attached here are the excel file and a labview file. In the labview file, the top part is an example I got from the forum, an interesting graph I am trying to follow.
The bottow part is my tentative to extract the data from excel into array and try to use it. but I am stuck here. Any help please!
Thank you,
Agyna
Attachments:
graph.vi ‏13 KB
Histo.xlsx ‏53 KB

Hi agyna,
I've saved xls file into csv and then i'm reading into labview and plotting the graph. Please check it this is what you need.
Thanks
uday,
Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
Certified LabVIEW Associate Developer (CLAD) Using LV13
Attachments:
graph.vi ‏18 KB

Similar Messages

  • Display graphs from excel data

    Hi,
     I have the data in Excel(sample.xls). there are 2 columns of data. I want to read the data from excel and display in the form of XY graph (x-axis -one column of data and Y-axis one coumn of data).
    can anyone please provide the VI for this or else give me procedure how to do this.
    Thanks,
    Paleti.
    Attachments:
    time-mc.xls ‏5 KB

    Hello jason,
          Thanx for your reply. I will clarify what my concern is i need to display the graph with two columns(A-column as X-axis and B-column as Y-axis). I understand that Bijay provided example for waveform graph,and that is working for sample 3 data. when i use the same example for the different data like sample 1  which i am attaching below is not working. so i have tried to create the vi that will display the XY-graph instead of waveform graph. Still i am unable to display the graph. I will be attaching the VI i have tried. So anyone please help me to modify my vi to display as XY graph and make it work for the samples data i have provided in sample1.
    Thanks & Regards,
    Paleti. 
    Attachments:
    sample1.xls ‏1 KB
    sample2.xls ‏1 KB
    Refexample2.vi ‏12 KB

  • How to call a labview dll from excel-VBA?

    How to call a simple Labview DLL from Excel VBA?
    I have seen examples of DLL calls from VB but does it work the same way for VBA? I have 2000 excel and Labview 8.5. I created the DLL and tried to call it from VBA using the same type of code as in NI's website example(ofcourse its a bit diff with 8.5)
    http://zone.ni.com/devzone/cda/tut/p/id/...
    BUT it errors out when called from excel
    ERROR: The object invoked has disconnected from its client

    You would need to provide more details about the LabVIEW DLL, such as the prototypes of the functions (VIs) that you're trying to call, and your actual VBA code. Specifically, what object you're trying to create. You should also make sure the Run-Time Enginer is installed, as well as any required libraries such as the VISA Run-Time if you're using VISA. Have you made sure to enable the ActiveX server for the DLL?
    A search yielded the following items that you may wish to peruse:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=261345&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=45099&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=299209&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&message.id=195846&requireLogin=False

  • Why do I get jumbled text when pasting a graph from Excel (mac 2011) into Illustrator cs6

    The Goal: To copy a graph from Excel (mac 2011) and paste it into Illustrator cs6 as a vector graphic.
    The graph's vector and layout is okay. Yet, the text / copy is jumbled text:
    $%"
    $#!!!!"
    Do I have to change a preference in either Excel or Illustrator?
    Thank you!

    In Excel, right click and choose Format Chart Area. In the dialog at the left, choose Fonts. Change the font to Arial or something other than Calibri (Theme Body). Then copy/paste.

  • Importing Data into Sql Server 2012 from Excel Data

    Hi,
    I got errors like this when i am doing import data into sql server from excel Data. Can you please help us?
    - Executing (Error)
    Messages
    Error 0xc020901c: Data Flow Task 1: There was an error with Source - demotable$.Outputs[Excel Source Output].Columns[Comment] on Source - demotable$.Outputs[Excel Source Output]. The column status returned was: "Text was truncated or one
    or more characters had no match in the target code page.".
     (SQL Server Import and Export Wizard)
    Error 0xc020902a: Data Flow Task 1: The "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]" failed because truncation occurred, and the truncation row disposition on "Source - demotable$.Outputs[Excel Source Output].Columns[Comment]"
    specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
     (SQL Server Import and Export Wizard)
    Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - demotable$ returned error code 0xC020902A.  The component returned a failure code when the pipeline engine called PrimeOutput().
    The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.
     (SQL Server Import and Export Wizard)

    Are you attempting to import into a newly made table or into an existing table? It looks like it's trying to insert data where it cannot be inserted (invalid column or lack of data size in your column).
    Try the following:
    1). In your excel sheet, highlight the whole sheet and make sure the cells are in 'text' form and try re-importing
    2). save the document as ms dos TEXT and import as a text document.
    3). double check your columns are correct for the data, for example if you have a column that has a string of 100 characters and your column is 'NvarChar(90)' - that might cause the error? Or just correct data type in your column
    3). If that doesn't work and you're inserting into a new table, try importing it as string first and writing a query to insert columns that should be float/integer or whatever. You may want to convert float texts to a 'bigint' first rather than string
    > float as that can cause problems if I remember correctly.

  • Excel Inplace - Update SAP R/3 tables from Excel Data

    Hi,
    I developed a report displaying using Excel inplace.  After user finished editing the Excel workingsheet, I called method get_ranges_data of interface I_OI_SPREADSHEET to get data contents.  But this method or almost all the methods of this interface requires user hit a enter key after edit a cell.  Without hit a enter key or click different cell, this method will not be able to get any data contents. 
    Is there a way I can force a user click or enter event?
    An example is apprieciated.

    I have not tested this, but you might try the following.
    The inline excel should be created from a template. And in the excel VB code should exists which call a customer event in Workbook_SheetChange. This code is executed each time a change occurs on the worksheet.
    so in you r worksheet you should have the following code:
    Private Sub Workbook_SheetChange(ByVal Sh As Object, _
            ByVal Source As Range)
        ' runs when a sheet is changed
      Call ThisWorkbook.Container.SendCustomEvent("DATA_CHANGE")
    End Sub
    this event you can catch in SAP, and reread the data from excel.
    so now each change in excel triggers an event in SAP.
    Not sure it works, but worth a try.
    Joris.

  • How can I populate a dynamic form from Excel data (beginner)

    I am reasonably certain this is beginner-level but I cannot seem to figure out how to do this. I have data in an ecxel file and I would like to import that data into a form using LS. I need to distribute the unique data to each recipient. (I have included an example below) I would really appreciate any advice. If there is a tutorial that explains this I would be happy to go through that. Thanks in advance.
    Customer
    Acct No
    Equipment
    Sales Rep
    Email
    Pear Computing
    1
    Motherboard A
    Jim Smith
    [email protected]
    Pear Computing
    1
    Video Card A
    Jim Smith
    [email protected]
    Orange Computing
    2
    Motherboard B
    Jim Smith
    [email protected]
    Orange Computing
    2
    Super Mouse
    Jim Smith
    [email protected]
    Plum Computing
    3
    Awesome Monitor
    Tanya Smith
    [email protected]
    Apple Computing
    4
    Motherboard S
    Tanya Smith
    [email protected]
    Apple Computing
    4
    Super Mouse II
    Tanya Smith
    [email protected]
    Raisin Computing
    5
    Motherboard R
    Bob Smith
    [email protected]
    Cherry Computing
    6
    SoundLoud Soundcard
    Bob Smith
    [email protected]
    I would like to send a template e-mail to each sales rep at "PC.com" that says:
    Dear <SalesRep>,
    <Customer> has the following equipment:
    <Account No> | <Customer> | <Equipment>
    I would like all the data for each customer to go to the sales rep. For instance, Jim should get an e-mail stating that "Pear Computing" has two items, and a separate e-mail stating that "Orange Computing" has two items. What I want to avoid is the MS Word mail merge solution that equates to Jim getting 4 emails. I would like the equipment to be grouped by customer number or account number. I would prefer to have a dynamic layout with flowed page as the number of items per customer will vary.
    PLEASE HELP!
    JD

    you can copy/paste data from Excel to Illustrator

  • Can illustrator populate a pie chart from excel data?

    I was wondering if there was a way to import excel datat into illustrator, then it populates a vector pie or bar chart for me?  Is this even possible?
    Thanks in advance,
    Jenny
    http://texturedwallpaper.org

    you can copy/paste data from Excel to Illustrator

  • YTD report generated from excel data yielding incorrect results

    I am trying to generate a YTD report from the data present in an excel sheet. However the result is coming out to be incorrect for YTD sales
    The data sheet looks like this.(SaleDate is in *3/14/2009 format).
    SNo     manufacturer     date     # of CarsSold
    1     Hyundai     1/2/2010     10
    2     Maruti     1/2/2010     15
    3     Hyundai     1/14/2010     11
    4     Maruti     1/14/2010     15
    5     Hyundai     2/1/2010     10
    6     Maruti     2/1/2010     13
    My logical layer consists of the following 3 tables
    Manufacturer Dim table with only 1 column 'manufacturer'
    Date dim table with only 1 column 'date'. Additional derived columns in this logical table created for YTD calculations are as follows:
    CALENDER_YEAR_NAME---- EXTRACT( YEAR FROM testdata.TimeDim."date")
    QUARTER_OF_YEAR------- EXTRACT( QUARTER_OF_YEAR FROM testdata.TimeDim."date")
    MONTH_OF_YEAR----------- EXTRACT( MONTH FROM testdata.TimeDim."date")
    CALENDER_QUARTER_DESC------ CONCAT( CAST (testdata.TimeDim.CALENDER_YEAR_NAME AS CHARACTER ( 30 )), CAST (testdata.TimeDim."QUARTER_OF_YEAR" AS CHARACTER ( 30 ))) ////appending year name to month name for uniqueness
    CALENDER_MONTH_DESC------ CONCAT( CAST (testdata.TimeDim.CALENDER_YEAR_NAME AS CHARACTER ( 30 )), CAST (testdata.TimeDim.MONTH_OF_YEAR AS CHARACTER ( 30 )))
    After that time dimension was created with the following levels.
    timedimtotal
    year
    quarter
    month
    timedimdetail-Chronological key has been specified at all levels of the time dimension created for YTD calculation.The key at the lowest detail level was specified as 'date' column. At the upper levels it was CALENDER_MONTH_DESC,CALENDER_QUARTER_DESC,CALENDER_YEAR_NAME etc
    Fact table with 1 column '# cars sold'.The fact table is joined with both the dim tables by complex logical join. Sno has been ommitted and not used in any of the logical tables. Sale YTD column was created in fact table using todate function(year).
    The result am obtaining if i run the report today is:
    CALENDER_YEAR_NAME QUARTER_OF_YEAR MONTH_OF_YEAR # of CarsSold SaleYTD
    2,010 1 1 51 51
    2,010 1 2 23 46
    As you can see YTD for month 2 is coming incorrect it should be 51+23. This is jst test records and the same difference exists even if i run against my actual excel sheet
    I would like to know:
    1. Is it right to run YTD report against excel sheet as I checked for the query beign generated by answers, and its firing a lot of functions like Quarter name and monthname etc which i am not sure are supported by excel for answers.
    2. If i am going fundamentally wrong somewhere in this entire approach as i am new to obiee and chances are i might be missing something important.
    Would highly appreciate your help
    Regards
    Himanshu Hira

    I have another solution and that is to actual discard the result before you get to the report stage.
    You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
    Check out this link.
    Regards
    Ray Farmer

  • Active X bringing a graph from excel to LV

    Is there a way to display an excel graph in labview. not just data but actual graph with functionality like rollover display.  I feel like this could be done with active x but im not sure how to get it done.
    Thanks,
    Triff

    Hi Triff,
    It does not look like you are able to. With Excel I would recommend getting the data and regraphing it in LabVIEW. Here is another forum post that has as similar question to yours.
    As for getting the data, here is an example also. You can then create a graph using LabVIEW.
    Regards,
    Nathan B
    Applications Engineer
    National Instruments

  • Hw can we plot a graph from the data given in a flat file

    i need a program that reads a file with 2 columns:
    - time in minutes for the x axis
    - value (e.g. temperature, heart freq.) for the y axis
    Plot the last m minutes, the y axis shall have a range from min...max.
    Start with parameter values m=5, speed s=1, min=20, max=120.
    After m=5 minutes, the graphical display shall plot the curve of the
    last 5 minutes. In other words, you have to implement a sliding window
    with a 5 minute history
    The speed s is useful for testing, 1=real time, 10=10 times faster.
    To implement the real time behaviour, you have to let the program wait the
    time interval between two values. The time interval is not constant.
    A sample file looks like this (lines 1..3 are always comments):
    -------8<-------cut-here-------8<-------
    Logfile of program temperature_monitor.cpp
    Temp sensor #42, range 30..60 degrees Celsius
    2007-06-21 20:30
    0.017737 45.2
    0.045122 42.7
    0.073591 43.1
    -------8<-------cut-here-------8<-------
    You can download the test data file here:
    http://alf42.dyndns.org/oost/temp_testdata_2007-06-21
    An axample how the output can look like is here:
    http://alf42.dyndns.org/oost/temperature_diagram_example.gif

    hi
    i have tried the code for it and i am getting the
    barcharts but not the graph as the output
    Your code is rubbish. You also did not use code tags. But let's examine the rubbish points shall we?
    import java.awt.*;
    import javax.servlet.*;There is no need for you to import servlet here. Especially as this later appears to be an applet.
    import java.lang.*;Importing java.lang is redundant.
    import java.applet.*;
    public class classfile{This is a poorly named class for several reasons. One it does not follow conventions, class names should begin with a capital letter. Two classfile is just a stupid name.
    Also your class should most likely extend applet if indeed you mean to write an applet. This is probably pointless because you probably don't mean to write an applet, it's just that you have no clue.
    >
    int n=0;
    String lable[];
    int value[];
    blic void init()
    try{
    n= Integer.parseInt(getParameter("column"));n is pointless since everything is hardcoded anyways for four elements
    lable = new String[n] ;
    value=new int[n];
    lable[0]=getParameter("lable11");
    lable[1]=getParameter("lable12");
    lable[2]=getParameter("lable13");
    lable[3]=getParameter("lable14");
    value[0]=Integer.parseInt(getParamater("c1"));
    value[1]=Integer.parseInt(getParamater("c2"));
    value[2]=Integer.parseInt(getParamater("c3"));
    value[3]=Integer.parseInt(getParamater("c4"));
    catch(NullFormatException e )This is garbage.
    System.out.println("Null format Exception");
    public void pain(Graphics g)While I am forced to agree with the sentiment here the correct name for this method is paint.
    for(int i=0;i<n;i++)
    g.steColor(color.red);That is garbage for a variety of reasons.
    g.drawString(lable, 20, i*50+30);
    g.fillRect(50, i*50+20, value[i], 40);
    So try again. Maybe learn some Java first? Just a suggestion.

  • Populate PDF from Excel Data

    I have an excel worksheet with employee sales data. this worksheet has a column that has a drop-down list. I want to set it up so that whenever "Warning" is selected from the drop-down, a pdf is created. this pdf will be like a warning notice, and pull certain information from the selected row in excel and populate several fields in the pdf form. I also would want an electronic signature to be at the bottom with a calendar that can pull the date.
    I know that the bulk of this question is probably best answered on an excel forum, but I want to understand the best way to do this with each application...

    Something like this?
    // Import the first row of data from "myData.txt".
    this.importTextData("/c/desktop/myData.txt", 0)
    if (typeof cnt == "undefined") cnt = 0;
    this.importTextData("/c/desktop/textdata.txt", cnt++ % 4)
    // Specify the name of the template
    var template_name = "Student Information Sheet";
    // Get a reference to the template
    var t = getTemplate(template_name);
    // Add a new page based on the template
    if (t !== null) {
        t.spawn({
        nPage: numPages,      // Add the new page to end of document
        bOverlay: false,      // Create a new page, not an overlay
        bRename: true         // Rename the fields
    } else {
       app.alert("The template named \'" + template_name + " does not exist in this document.", 1);
    But how would I tell the new page to take the second row from the chart, and will I have to click the button for each one of the fields in the data?

  • Time stamp conversion and graphs from array data

    How can you read time stamps and data currently in an text file as an array and split in for display on a graph. I think I need to convert the time stamp back into seconds to do this but not sure how to do so?

    If you're using 8.2, the Read From Spreadsheet File VI can read string files. If not, you will need to open the VI and read the instruction on the diagram for how to change it.
    Once you have your string array, you can use the VI found here to convert the time column (note - read the thread) and convert the second column using the String to Number functions.
    Try to take over the world!

  • Is there a way to allow users to paste in a graph from Excel into a textfield?

    I have not seen this capability, wondering if it is possible.  Users of my form will need to past in a graph they created in Excel as part of the write-up they will discuss in a textfield.  Barring that, is there a way to identify an image object that the user can populate at run time, associating a JPG they select to be embedded into the form as opposed to attached to the form?
    This form will have digital signatures so form attachments will not be possible.  I can default to a portfolio and have the user drop in the Excel sheet, etc., but it would be nice if they could type up info in to the textfield and drop in an image into the same textfield.
    Thanks,

    In my experience, the biggest problem is most users are not aware of how to attach files as comments. There's a specific tool for this in the "Comments > Annotations" panel in Acrobat/Reader 10/11 (paperclip icon). Previous versions are different. So it's a good idea to provide instructions. I will usually include a button that when clicked will provide instructions in a popup, tailoring them to the version of Reader/Acrobat being used. This is done with a relatively simple JavaScript.

  • Need help loading data from Excel data file to oracle tables

    i need to load an Excel spreadsheet to Oracle table.
    The spreadsheet contains 20 columns, the first 8 columns contains basic info, but the rest 12 columns contains info like
    1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
    So what i need to accomplish is:
    break that one record(with 20 fields) in Excel to 3 records for each fiscal year in the Oracle table, so each record in the database table will look like
    8 basic field + fiscal_year + 1stQtr_08, 2ndQtr_08, 3rdQtr_08, 4thQtr_08
    8 basic field + fiscal_year + 1stQtr_09, 2ndQtr_09, 3rdQtr_09, 4thQtr_09
    8 basic field + fiscal_year + 1stQtr_10, 2ndQtr_10, 3rdQtr_10, 4thQtr_10
    There are about 10000 rows in the data file, so how can i use sqlldr to perform such task? beside sqlldr, any other good suggestions?
    thx

    External Tables is just an Oracle API for sqlloader. If you going to load this data over and over again, External tables would be a good idea, but if it's a one time thing, sqlldir is simpler, unless you just want to learn how to use External Tables.
    I used to run a data warehouse, so I have done, at least similar, to what you are doing in the past.

Maybe you are looking for

  • Vendor Master Duplication

    Hi All I need to make a setting where I dont want the vendor master data to be created more than once, and I want the deciding field to be the VAT Registration number {Field STCEG} from the vendor master. I have already set up a message to appear in

  • Isight not working & found in system profiler after efi firmware upd 1.17f0

    hi there, i got a brand new macbook core 2 duo to my birthday yesterday. the isight worked when setting up my user account right in the beginning. right after that i downloaded all system updates including the efi firmware update 1.17f0 which is vers

  • Save STO in inbound delivery

    Hi Gurus, Requirement is to save Stock transfer order number in Inbound delivery line item when STO is created in SAP.STO will be captured in purchase order level as reference field. ME_PROCESS_PO_CUST is this BADI can be used.Pls suggest Regards Rav

  • How can I stop the Struts messages

    How can I stop getting Struts messages such as: RequestProcessor - -Processing a 'POST' for path '/login'RequestProcessor - -Processing a 'GET' for path '/Welcome' I cannot deploy my application on the production server because these messages will be

  • Regarding plant maintenance module

    Hi Experts, Can you please guide me where I can get the vanilla attributes for all the objects available in SAP ECC 6.0. Please give me an idea on maintenance planner groups. Thanks in advance.