Efficiency of using activeX for Excel

I've been using data logging for our test fixtures in .tsv files, but our engineers want to automate it further by organizing some new data into several sheets, so I'm looking into manipulating Excel directly using ActiveX.
My question is how efficient is it to write this in ActiveX compared to just making a text file? I'm concerned that, since we're going to be writing some 50000 cells or something, that it'll suck up a lot of memory to do it through ActiveX. 
Is this a legitimate concern, or am I just being paranoid?
Anything worth doing is worth over-doing.
LabVIEW Junkie

Thanks for all the help, guys! 
A couple of things -- first off, I'd love to look at that code if you get a chance. But what I'm concerned about is if I create an array of 50000 values or something like that and write it all in one go at the end of the program, two things are going to happen: 1) it's going to take a really long time to finish the program, and 2) if the program crashes in that final step, I'll lose all the data. That second reason is why I currently write a line every cycle to the .tsv file. 
What I'm thinking of doing, is meeting you halfway -- rather than write each cell individually, write each line individually within the spreadsheet. This should reduce the memory used (hopefully) and increase performance.
I haven't really played around with TDMS yet, I'll look into it. A couple questions on that -- does it write in excel format? The reason I ask is the second sheet that I'm supposed to add is not going to contain any changing data -- it's just to store some constants that are set on the front panel. If TDMS stores data in excel format, I can write it to TDMS, transfer to Excel, and then use ActiveX to add the second worksheet with the constants at the end of the program. How's that sound?
Thanks again!
Anything worth doing is worth over-doing.
LabVIEW Junkie

Similar Messages

  • Problem using ActiveX for excel app to determine row/col no.s

    hello,
    I would like to develop an app, which would find out the total no. of rows and columns from a given excel sheet and read out the data in the same. I have made use of few vi's I found on forum, but having trouble runing them,
    can anyone please suggest me what could I be doing wrong? I have never used activex before...
    Now on LabVIEW 10.0 on Win7
    Solved!
    Go to Solution.
    Attachments:
    excel used range.vi ‏25 KB
    test.vi ‏19 KB
    read_excel_values.llb ‏382 KB

    Hi
    Yesterday I sent an email to a guy, explaining how to install it. Download the toolkit and the instructions I have attached and you should be fine.
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Attachments:
    _Excel.zip ‏1393 KB
    Howto Install Excel Toolkit.pdf ‏1270 KB

  • Using Gui_download for excel output

    Hi,
    I am using gui_download to output in excel format, my requirement is i want to start records from 3rd row in excel.
    On first row first column title shoud come? Second row blank,  i used fieldname for header in export paramenter from 3rd row.
    Plz help me to sove this issue.
    Thanks in advance.
    Vishnu.

    Hi vishnu,
    Here is the sample code below.
    *& Report  ZVK_TEST1
    REPORT  zvk_test1.
    TYPES:BEGIN OF ty_ekko,
            ebeln TYPE ekko-ebeln,
            bukrs TYPE ekko-bukrs,
    END OF ty_ekko.
    TYPES:BEGIN OF ty_fields,
            field TYPE dd03l-fieldname,
          END OF ty_fields.
    DATA:lt_ekko TYPE STANDARD TABLE OF ty_ekko,
         lt_dummy TYPE STANDARD TABLE OF ty_ekko.
    DATA:lw_ekko TYPE ty_ekko.
    APPEND INITIAL LINE TO lt_dummy.
    APPEND INITIAL LINE TO lt_dummy.
    SELECT ebeln bukrs INTO TABLE lt_ekko
      FROM ekko UP TO 10 ROWS.
    DATA:lt_fields TYPE TABLE OF ty_fields,
         lw_field TYPE ty_fields.
    lw_field-field = 'PO NUMBER'.
    APPEND lw_field TO lt_fields.
    lw_field-field = 'COMPANY CODE'.
    APPEND lw_field TO lt_fields.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
       bin_filesize              =
        filename                  = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
        filetype                  = 'ASC'
      CHANGING
        data_tab                  = lt_dummy
      EXCEPTIONS
        file_write_error          = 1
        no_batch                  = 2
        gui_refuse_filetransfer   = 3
        invalid_type              = 4
        no_authority              = 5
        unknown_error             = 6
        header_not_allowed        = 7
        separator_not_allowed     = 8
        filesize_not_allowed      = 9
        header_too_long           = 10
        dp_error_create           = 11
        dp_error_send             = 12
        dp_error_write            = 13
        unknown_dp_error          = 14
        access_denied             = 15
        dp_out_of_memory          = 16
        disk_full                 = 17
        dp_timeout                = 18
        file_not_found            = 19
        dataprovider_exception    = 20
        control_flush_error       = 21
        not_supported_by_gui      = 22
        error_no_gui              = 23
        OTHERS                    = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
       bin_filesize              =
        filename                  = 'C:\Documents and Settings\krishnavatte\Desktop\kris.xls'
        filetype                  = 'ASC'
        append                    = 'X'
        write_field_separator     = 'X'
        fieldnames                = lt_fields
      CHANGING
        data_tab                  = lt_ekko
      EXCEPTIONS
        file_write_error          = 1
        no_batch                  = 2
        gui_refuse_filetransfer   = 3
        invalid_type              = 4
        no_authority              = 5
        unknown_error             = 6
        header_not_allowed        = 7
        separator_not_allowed     = 8
        filesize_not_allowed      = 9
        header_too_long           = 10
        dp_error_create           = 11
        dp_error_send             = 12
        dp_error_write            = 13
        unknown_dp_error          = 14
        access_denied             = 15
        dp_out_of_memory          = 16
        disk_full                 = 17
        dp_timeout                = 18
        file_not_found            = 19
        dataprovider_exception    = 20
        control_flush_error       = 21
        not_supported_by_gui      = 22
        error_no_gui              = 23
        OTHERS                    = 24
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Error when trying to email report using Analyzer for Excel template

    I have a report for which I have created both "RTF" and "Analyzer for Excel" based templates. I can email the report using the RTF template, but when I try to email it using the A4E template (using the 'Send' button from the report screen), it never arrives. If I schedule the report to be emailed, it fails, and I get the following error information:
    oracle.apps.xdo.servlet.scheduler.ProcessingException: oracle.apps.xdo.servlet.data.DataException: Invalid format requested: html
         at oracle.apps.xdo.servlet.scheduler.XDOJob.generateReport(XDOJob.java:959)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:404)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: oracle.apps.xdo.servlet.data.DataException: Invalid format requested: html
    Ideas?

    HI,
    Is this qury is running fine in SQL?? Have you checked this query in Sql server(Management studio) whether working or not??.
    I feel there is some mismatch with relations in query.. Cross check your query once in SQL itself. once it is running well, we will take a look.
    Regards,
    Salah.

  • Issue whith action pane when using BPC for excel in Spanish - BPC 7.5 NW

    Hi experts,
    We just migrated from BPC NW 7.0 to BPC NW 7.5 and we are having a situation with our BPC for excel client now that if we open it with an english instalation everything is ok but if one client with a spanish instalation opens BPC for Excel, the action pane is empty. On 7.0 version everythng worked ok on spanish. Any idea of how to solve it?
    Thanks in advance.

    Please note that the best practice is to use one language. However, if a number of languages must be used the following solutions may be applied:
    If you want end-users to see the very same descriptions in various languages, you may copy the descriptions from one language over to another in BPC Admin Client.
    If you want them to see native descriptions in the language the end-user is logged on under, you may log on to BPC Admin Client in the language(spanish) the descriptions are missing for and enter them. Do not forget to process the dimension. Refresh dimension members on client side and process all the dimensions. Now, English descriptions are seen under English and Spanish  under Spanish anit is the way it works because SAP has description against EN language only and not spanish
    See the notes 1552856 and 1613170 which would be helpful. Thanks.
    Regards,
    Sanjeev

  • Move from Windows to Linux or a RT system that uses ActiveX and Excel?

    So I have a Labview Windows application, which access an Excel file via an ActiveX VI.  I want to port this to Linux or even a RT system.
    Can this be done and still access the Excel file?
    Thanks.

    no.
    ActiveX is pure Windows, you can't use this technique on another platform. only thing you can do is to write your data to a file (text or binary) using the file IO functions and then re-read these files with a second app on a windows platform and write it to excel or access.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How to change series or line color in excel 2007 using ActiveX

    I am trying to change series color using Excel 2007 with ActiveX as below. It seems the color cannot be controlled correctly. For example, if I chosse red color, my curve will be changed to blue. Any ideas?
    Also, I googled and found a guy ran into similiar problem using VBA for Excel 2007. See the link below:
    http://help.wugnet.com/office/change-series-line-color-excel-2007-vba-ftopict1062646.html
    Set ch = Worksheets("Chart").ChartObjects(1)
    Set objSeries = ch.Chart.SeriesCollection(1)
    objSeries.Format.Line.ForeColor.RGB = RGB(255, 127, 0)
    According to the post, it need to be done as follows
    objSeries.Border.Color = RGB(255, 127, 0) . But I cannot find the border property/method in ActiveX.
    The color seems to be abitrary. and I found the 

    Xubuli,
    I looked into your question and confirmed that Border.Color is not located under the Excel.Series library. Instead, you must locate it under _Worksheet.UsedRange as seen below in the figure. I am attaching the VI file where I located the the Border.Color property node, and I am also including a SubVI on the block diagram that goes into explicitly set the cell color and border. This SubVI can be found under Programming>>Report Generation>>Excel Specific>>Excel Format>>Excel Set Cell Color and Border.vi, if you have the Report Generation Toolkit installed. I hope this helps.
    Larry H
    Applications Engineer
    National Instruments
    Attachments:
    CellBorder.vi ‏8 KB

  • RDL reports(2008).File name after using Export to Excel is not comming properly in mozilla firefox.

    I am using Export to Excel functionality in rdl report.
    File name should be "Profitabilty By Buyer". It is working as expected in IE and chrome.
    But in mozilla firefox the file name appears as "Profitabilty".
    So the issue is it doesnt consider anything after space and user requirement is such that I cant put underscore("_") also instead of space.
    Kindly suggest the proper solution.

    Hi Mukesh,
    Reporting Services, we use a Web browser to view the report that deploy to Report Service. However, not all report functionally is supported by all browsers. Such as, the print button is not supported in Mozilla Firefox. It works only in Internet Explorer
    due to it uses ActiveX for the print button.
    I have tested it on my local environment, (SQL Server Reporting Services 2008, Firefox 28.0), we cannot reproduce this issue. So the issue can be the custom setting of your browser. Since SSRS reports are not about targeting NON-IE browsers, so in your scenario,
    we recommend you use IE to view report on Report Manager.
    And you said that you cannot put underscore ("_") also instead of space. However we can do this which you can see on the screenshot below.
    Regards,
    Charlie Liao
    TechNet Community Support

  • BO Analysis for Excel – How to connect to SAP BW

    Hi Gurus,
    We recently upgrade to BO 4.1 (from 3.1).  And want to start to use Analysis for Excel.
    We are little unclear how to connect from Analysis for Excel to SAP BW 7,3.
    From Analysis select “Select Data Source” Then get a pop-up “Logon to SAP BussinessObjects BI Platform” with User, Password and Web Service URL.  All those are blank.  For the Web Service URL there is a message “Error while checking availability of SAP BussinessObjects BI Platform system”
    If choose “Skip” then get SAP Logonpad and can log on to BW.  From there I can choose the BW queries directly.
    What is the best practice to connect from Analysis for Excel to SAP BW?
    Is it not possible to connect to the BO server?  And choose OLAP connection from there to connect to BW?
    If so, is something missing in our setup?
    Regards,
    Reynir

    Yes you need to define an OLAP connection of you are connecting to BW through the BIP - see tutorial http://scn.sap.com/docs/DOC-20625
    You can also connect directly to BW without going through BIP
    I also recommend searching before you post per SCN rules - there are many posts about creating OLAP connections
    Tammy

  • "Authorization error" while accessing Multiprovider in Analysis for excel tool

    Hi,
    We are using "Analysis for excel" 1.4 version. My users are executing all queries out of any MP with out any issue. But while accessing Multi Provider in "Analysis for excel" tool they are geeting "Authorization" error.  Any suggestions please.
    Thanks,
    Deepa.

    Hi Deepa,
    I'm facing the same problem, which basically is no issue but expected behaviour?!
    Reason: When allowing access on Multiproviders via queries you probably restrict the data selection with authorization variables, where users have to select characteristics they are allowed to see.
    In that way, you prevent that users can see data for which they are not authorized.
    Finally, if the direct selection via Multiprovider was allowed without any restriction, your whole authorization concept would be for the birds :-)
    In my case, I wanted to give users just an overview of the "last update dates" of several infocubes:
    =SAPGetSourceInfo("DS_1"; "DataSourceName")
    =SAPGetSourceInfo("DS_1"; "LastDataUpdate")
    (... we all know that Multis can display only the oldest load date of any of all Cubes below....)
    I even deleted the cross-tabs, and kept only the reference to the DS_x ... But still, when users try to refresh the data sources they are not even allowed to select pure technical Cube Information :-/
    Regards, Martin
    PS: If anyone else has a different idea as solution to my problem, just let me know :-)

  • IO operations using ActiveX with Windows 8 64bit and IE 11 not working

    We are using ActiveX for downloading file from the server, It works well with Windows 7 and XP but there is issue with Windows 8 and IE 11.It doesn't give any error for downloading files using ActiveX but file not downloaded and even does not generate log
    file for the issues and error.
    We are confused because it doesn't throw any error while log generation or downloading file
    Is there any limitation for ActiveX with Windows 8 for IO operations.
    We are stuck at this point. please help
    Thanks

    Hi,
    check Tools>Manage Addons>Show all addons
    find your activeX control in the list, make sure it is enabled and supports both x86 and x64.
    also
    Internet Options>Security tab, click "Reset all zones to default"
    file>Properties menu to find out which IE Security zone your web page with the activeX maps to.
    Regards.
    Rob^_^

  • ActiveX for Sony SNC-RZ30

    Howdy Ya'll!!
    How do I build up the logic when using activeX for downloading live pictures
    from SNC-RZ30P? I'm having problems getting a stable conection Is there
    other and easy alternatives, than to import the cameracontrol with a
    browser?
    Thanks to Ya'll, Jon Kåre

    I have never actually used the Sony SNC-RZ30. Since there were no other responses, it unfortunately looks like not many have. You may want to try posting this in the Image Acquisition Discussion Forums. Or, on the other hand, you could contact Sony and see if they have any examples for doing this. Just some suggestions in case you don't hear anything in this forum. Good luck!
    J.R. Allen

  • How to use Analysis for Exel in SSO ?

    Hello,
    For the moment we have only few users which use Analysis for Excel because they have to enter their login & password.
    We'd like to install Analysis for Excel for a larger population.
    Do you know how to implement SSO in Analysis for Excel (as in BO Web) ?
    Thank you in advance
    Regards,
    Nicolas

    Hello Nicolas,
    Use the following steps :
    Step 1
    Locate the File “global.properties”
    Drive:\SAP BusinessObjects\Tomcat6\webapps\BOE\WEB-INF\config\custom
    The following values should be present:
    vintela.enabled=true
    idm.realm=Domain Name (u can get the name from C:\Windows\Krb5.ini)
    idm.princ=SPN User
    idm.allowUnsecured=true
    idm.allowNTLM=false
    idm.logger.name=simple
    idm.logger.props=error-log.properties
    Step 2:
    Locate the file “web.xml”
    D:\SAP BusinessObjects\Tomcat6\webapps\dswsbobje\WEB-INF
    Uncomment the Kerberos Proxy Filter and the Kerberos Filter sections to enable Kerberos SSO for Windows Active Directory (secWinAD) authentication. The following options must be specified (the rest are optional)
    idm.realm = SPN user (the same as the default_realm specified in the Krb5.ini file)
    idm.princ = SPN User (the same as specified for idm.princ in the global.properties)
    idm.keytab = (the same as specified for idm.keytab in the global.properties )
    Please note, if you are using the hardcoded password set in Tomcat's Java Options do not make any changes to the keytab lines in the web.xml
    Step 3:
    Backup and edit Drive:\Tomcat6\webapps\dswsbobje\WEB-INF\classes\dsws.properties by setting kerberos.sso to 'true' Restart Tomcat
    KR,
    MD

  • How can I add excel pictures using activex

    I would like to be able to use activex to insert an image into an excel spreadsheet. I know how to read and write data, but the chart feature is too cunmbersome and when I updated excel to 2007 most of the calls stopped working. I see that there is a pictures property/method that lets me specify an image file, but I don't know which property/method(s) to call it from.

    2007 does take more time to draw the data on the chart. I am not having any problems with errors on the active X for 2007. I is much slower than 2003 I would agree. My IT group moved us to 2007 so I am stuck with it no matter how slow it is. I am trying to figure out how to get the help file back. I had these in 2003 myself. I know it has nothing to do with LabVIEW. It is an add in or some switch that you need to throw in excel to allow for this connection.
    Tim
    Johnson Controls
    Holland Michigan

  • Writing to Excel using ActiveX improvement?

    Hello,
    At my company we have Labview 2011 basic version with DAQmx. I am writing a program to get temperature data from thermocouples (16), dump it in an array and then store it in Excel using ActiveX. ActiveX seems only to allow writing element by element to my spreadsheet.  When you do acquisition for a long period of time it can be very long! I like using ActiveX because it allows some flexibility such as choosing which sheet and cell I can write my data. Is there a solution to dump the array in one operation using ActiveX?
    I know there is a block call write to spreadsheet which accept 1D and 2D array of data but doesn't allow the same flexibility. I also found report generation but is it made to write data? While waiting for your answer I'll try to dig a little more that blockset.
    Thank you very much and I hope to hear from the community really soon.
    Regards

    I have to appologize. The solution given by Electromecha was good but only outside a loop. Again, I have 16 thermocouples and when I use Electromecha's solution inside a For loop it will copy only the first element. I attached two pictures. One is the program and the second is the result in the spreadsheet. You will notice that inside my loop I added an indicator to read the array before writing it in Excel. The indicator shows the array perfectly with all elements in it. The only way I found to work around this issue is to use indexing and write element by element in Excel. That is way too long!
    For your information, the loop itteration is defined using the array size which is 16 (for 16 thermocouples). The subvi inside the loop allows me to get the column letter from the itteration number. Finally using the size of one full array of results I get the end cell row. 
    If more explanation is required please let me know. 
    Many thanks!
    Attachments:
    Excel.JPG ‏89 KB
    Program.JPG ‏69 KB

Maybe you are looking for