Cluster to excel

 Just a quick question.
I have some test results. From a cluster I am creating a CSV file... But how do I make it to get the results in excel sheet, shaped as shown in the attached excel sheet. Please note that those are different tests (test1 to test4). They will be classified based on the Frequency such that test 1 is taking all the results based on Frequency 100, test2 will be taking all the results based on frequency 200 and so on.
Thanks for your help.
Attachments:
Untitled 2.vi ‏8 KB
Book1.xls ‏18 KB

Option 1: Use the Write to Spreadsheet File VI. This creates a delimited text file that can be opened with Excel.
Option 2: Buy the Report Generation Toolkit for Office
Option 3: Use ActiveX directly (which is what the Report Toolkit uses) to write to Excel. Examples ship with LabVIEW on using ActiveX to manipulate Excel. You can also find lots of other examples in the Excel thread. (NOTE: DO NOT POST QUESTIONS IN THE EXCEL THREAD)

Similar Messages

  • Using USB NI-6008 on LV7.1 the results data has to be in Excel. It looks as cluster data format that i can not insert into excel VI

    I am Using USB 6008 with LV 7.1. The application is voltage logger and i would like to use excel and upload the data . The Columns will be the channels and the rows will be the data.
    The data comes from the DAQmx vi not like a simple string or an number it is kind of cluster data
    which contains strings and numbers and more for each measurement.
    I tryed to work with spraedshit and it goes ok but it is not conveniant to convert later to excel.
    Do you have a solution for that please?
    (How to extract the data from the cluster type format that is used with USB6008).
    TX arik
    Attachments:
    USB-6008-r3.vi ‏80 KB

    Arik:
    I hope all is well. If you are trying to write data to a text file along with the header information, you could do the following:
    1. Open a reference to a file and write the header information right away.
    2. Do your continuous acquisition (in a loop) using the 6008 and write the data to a file everytime.
    3. With the proper formatting, your colums will represent channels and your rows data.
    Please take a look at the attached example and let me know if you have any other questions.
    Regards,
    Rudi N.
    Attachments:
    WriteFilewHeaders.vi ‏64 KB

  • Import a column from an excel spreadshee​t, then enable/dis​able boolean controls in a cluster based on imported values

    Greetings all. I have an application I've been developing and refining for some time.  Part of it entails an interactive periodic table of elements where the user can select multiple elements to include in a multi-element chemical standard.  The part I'm having difficulty with now is disabling multiple elements within the periodic table.  Specifically, what the scientist wants is to be able to reference an excel inventory that they keep of available on-hand single-element standards.  I need to be able to read in column A of that spreadsheet, build a distinct array of those elements listed (some are listed more than once) and then disable the boolean controls in my periodic table for those elements not in the array (or enable those elements which are in the array, whichever makes themost sense).  This way, the analyst cannot select elements in the periodic table for which thay have no on-hand inventory.  I see how to enable or disable all controls in a boolean cluster, and I see how to enable/disable a single control, but I'm looking for an elegant way to import the excel column, build an array of thsoe values and then enable only those values.  Any help is always appreciated.  Thanks again.

    hi
    try this
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.
    Attachments:
    Excel column read.vi ‏29 KB

  • Excel Cluster Connector for Microsoft HPC Pack 2012 R2 load error

    Hi,
    I tried to load the 'Excel Cluster Connector for Microsoft HPC Pack 2012 R2' but get an error 'A runtime error occured during the loading of the COM Add-in'.
    My environment:
    Windows 2012 R12 Std edition
    HPC Pack 2012 R2
    Excel 2010 - 64 bits
    I have generated a Fusion file (see below). Has someone an idea what went wrong? I already tried to copy 'Microsoft.Hpc.Excel.XllConnector.DLL' to 'C:/Program Files/Microsoft Office/Office14' but that did not help.
    Thanks.
    Theo.
    *** Assembly Binder Log Entry  (1/19/2014 @ 10:16:20 PM) ***
    The operation failed.
    Bind result: hr = 0x80070002. The system cannot find the file specified.
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  C:\Program Files\Microsoft Office\Office14\EXCEL.EXE
    --- A detailed error log follows.
    === Pre-bind state information ===
    LOG: DisplayName = Microsoft.Hpc.Excel.XllConnector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/Microsoft Office/Office14/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = EXCEL.EXE
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Download of application configuration file was attempted from file:///C:/Program Files/Microsoft Office/Office14/EXCEL.EXE.config.
    LOG: Configuration file C:\Program Files\Microsoft Office\Office14\EXCEL.EXE.config does not exist.
    LOG: No application configuration file found.
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Microsoft.Hpc.Excel.XllConnector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector/Microsoft.Hpc.Excel.XllConnector.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector/Microsoft.Hpc.Excel.XllConnector.EXE.
    LOG: All probing URLs attempted and failed.
    *** Assembly Binder Log Entry  (1/19/2014 @ 10:16:20 PM) ***
    The operation failed.
    Bind result: hr = 0x80070002. The system cannot find the file specified.
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  C:\Program Files\Microsoft Office\Office14\EXCEL.EXE
    --- A detailed error log follows.
    === Pre-bind state information ===
    LOG: DisplayName = Microsoft.Hpc.Excel.XllConnector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/Microsoft Office/Office14/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = EXCEL.EXE
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Download of application configuration file was attempted from file:///C:/Program Files/Microsoft Office/Office14/EXCEL.EXE.config.
    LOG: Configuration file C:\Program Files\Microsoft Office\Office14\EXCEL.EXE.config does not exist.
    LOG: No application configuration file found.
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Microsoft.Hpc.Excel.XllConnector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector/Microsoft.Hpc.Excel.XllConnector.DLL.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector.EXE.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector/Microsoft.Hpc.Excel.XllConnector.EXE.
    LOG: All probing URLs attempted and failed.
    *** Assembly Binder Log Entry  (1/19/2014 @ 10:26:05 PM) ***
    The operation was successful.
    Bind result: hr = 0x0. The operation completed successfully.
    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
    Running under executable  C:\Program Files\Microsoft Office\Office14\EXCEL.EXE
    --- A detailed error log follows.
    === Pre-bind state information ===
    LOG: DisplayName = Microsoft.Hpc.Excel.XllConnector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/Microsoft Office/Office14/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = EXCEL.EXE
    Calling assembly : (Unknown).
    ===
    LOG: This bind starts in default load context.
    LOG: Download of application configuration file was attempted from file:///C:/Program Files/Microsoft Office/Office14/EXCEL.EXE.config.
    LOG: Configuration file C:\Program Files\Microsoft Office\Office14\EXCEL.EXE.config does not exist.
    LOG: No application configuration file found.
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Microsoft.Hpc.Excel.XllConnector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: GAC Lookup was unsuccessful.
    LOG: Attempting download of new URL file:///C:/Program Files/Microsoft Office/Office14/Microsoft.Hpc.Excel.XllConnector.DLL.
    LOG: Assembly download was successful. Attempting setup of file: C:\Program Files\Microsoft Office\Office14\Microsoft.Hpc.Excel.XllConnector.dll
    LOG: Entering run-from-source setup phase.
    LOG: Assembly Name is: Microsoft.Hpc.Excel.XllConnector, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    LOG: Binding succeeds. Returns assembly from C:\Program Files\Microsoft Office\Office14\Microsoft.Hpc.Excel.XllConnector.dll.
    LOG: Assembly is loaded in default load context.

    Hi,
    The
    Windows HPC (High Performance Computing) forum will be a better forums for you to ask this question. You can post your thread for HPC forum.
    Thank you very much for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Importing rows and columns from Excel to Cluster and Array in Labview

    An excel table consist of  4 columns and variable number of rows, the first column is the position number and the other 3 columns are series of coordinates (X,Y,Z). I would like to import the excel table into Labview such that each row in the table will form a cluster which consist of the position number and the coordinates of each position and each formed cluster should converted to a 1D-Array(double).
    I would be glad if someone can tell me the best way to go about this or better still show me some examples because i am very new in Labview.
    Thanks
    Omoba

    The easy way would be to save the excel file as csv (colon seperated values) and load it into ascii via load spreadsheet file (use ; as delimiter).
    The more advanced way is to interface excel via ActiveX. Use the example finder and search for ActiveX to find some examples that interface excel (they should be shipped with LabVIEW).
    Post back if you have more detailed questions. 
    Felix 
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • How to save cluster in some excel file

    Hi,
    I have been using bundle function to draw XY graph from 2 one dimensional array. However, I need these values to be saved in some excel file so that I can look at the graph in future. However, I could not connect the "output" of "Bundle" function to "ClusterToArray" function and so, I am not able to save the date, please let me know how to do.
    Thanks,
    Dushyant

    One way of doing it would be to create a 2D array from you one dimensional arrays rather than the output of the bundle. Then you would need to transpose the 2D array and using the Write to spreadsheet VI to save the data in excel. See the attached picture.
    Andrew Alford
    Production Test Engineering Technologist
    Sustainable Energy Technologies
    www.sustainableenergy.com
    Attachments:
    array to excel.JPG ‏14 KB

  • Excel 2007 and Smartview 11.1 file open slow

    We are in the process of upgrading to HFM system 11.1 and smartview 11.1.1.3 and as part of this process we are starting to use Excel 2007. I am encountering an interesting problem when opening files in Excel 2007 using smartview 11.1 and I am wondering if any one else has seen this problem and found a solution.
    First I converted an excel 2003 file to excel 2007 and saved the file as an xlsx file type. Then I am able to open the file and it would take about 30 seconds to open the file. The file has about 15,000 formulas on for spreadsheets. If I click on each spreadsheet individually and use the "Refersh" button I can save the file in about 10 seconds and then close the file. When I open the file again it will open in 30 seconds. Now using the same file I click "Refresh All" and the file processes fine. I am able to save and close the file in about 10 seconds. However, when I try to open the file again it takes about 20 minutes to open, and then 20 minutes to close.
    This only happens with two or three files. I have another file that is 40 spreadsheets and about 3,000 formulas that is not affected when I click Refresh or Refresh All.
    Any help would be apperciated.
    Rich

    Hi
    On metalink i found some notes about this issure
    "Background
    SmartView communicates over HTTP using .NET. This just means that requests and responses are sent in a standard XML format that is tucked in the HTTP headers. The mechanism is the same as when your internet browser requests a file or submits a form (simplification). A standard Microsoft component that is part of Internet Explorer is used for this.
    There are three components (four if you include the network) in a SmartView refresh:
    -the client
    -the web server
    -the HFM application server
    It is easiest to troubleshoot when they are on separate machines. (Running SmartView on the server to see whether it works better is a useful test to see what effect the network is having, but doesn't show any other bottlenecks.) If you run Task Manager on these 3 machines showing the Performance tab, you will see initial activity on the client as Excel clears the cells and the request is converted into XML. Then you see the web server get busy as it receives and parses the request. Then the application server is busy as it send the data, then the web server is busy as it compiles the results into XML again, and finally the client parses the XML, pushes the data into cells and runs an Excel calculation. This last stage is the longest of all. Overall, it is typical to see the client doing 90-95% of the work, so client performance is a very important factor. Look out for Excel's memory usage increasing and RAM becoming in short supply. Often, user dissatisfaction with refresh times can be alleviated by giving them more RAM or a faster PC.
    The situation we are dealing with here, however, is when the chain of events described above is interrupted. In this case, you will see the client or the web server wait in vain for a response from the next machine in the chain. The case of invalid XML is similar, but the response is truncated so that the XML is not well-formed when it arrives. XML consists of matching pairs of tags and is not well-formed when a closing tag is missing. This can be caused by certain network settings such as packet size (see later). The end result in either case is the same: as Excel cleared the cells before sending the request, cells are left blank or with zeroes.
    Your job now is to work out why the particular component is failing.
    Client
    Check the HTTP time out in the registry:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]\
    "ReceiveTimeout"=dword:00dbba00
    "KeepAliveTimeout"=dword:002BF20
    "ServerInfoTimeout"=dword:002BF20
    The time-out limit is five minutes for versions 4.0 and 4.01 and is 60 minutes for versions 5.x and 6. Also, the time-out limit is 30 seconds for Windows Internet Explorer 7. To change the settings, add the above keys. The above values are hexadecimal, not decimal and correspond to 18000 milliseconds (3 minutes) and 240 minutes for the receive time-out. See
    - http://support.microsoft.com/kb/813827
    - http://support.microsoft.com/kb/181050
    Once you make those changes, my recommendation is that you reboot the client machine.
    Web server
    Look for errors in logs showing that the web app didn't respond/disconnected or timed out waiting for another application (i.e. the HFM application server). Eliminate load balancers etc. during testing in order to isolate the problem and to ensure that the user always goes to the same web server otherwise, logs can be hard to interpret. See also the IIS Tuning Guide for IIS settings. We cannot recommend particular settings, as each client must establish the optimal settings for their own environment after performance testing. If necessary, engage the services of a suitably qualified consultant.
    Application Server
    HFM application server performance is very dependent on whether the data is already in RAM or not. One symptom, where the first refresh fails but the second one succeeds, is probably a sign that the cache needed to be populated and once that had been done (by the first refresh) it went faster. HFM loads whole subcubes (Scenario, Year, Value and Entity) into cache, so asking for lots of accounts in the same subcube is fast, but asking for lots of entities will inevitably slow things down as it runs out of RAM and starts unloading subcubes to make room for more. The HFM event log (HsvEventLog.log) shows this happening, but don't forget that the messages you see are a normal consequence of the way HFM works and are not a problem unless you see a hugely elevated number of them during the period the refresh occurs. Another sign would be page file thrashing.
    If there are several servers in a cluster, use sticky sessions in HFM to make sure tests always go the same server, or hit one server directly rather than using the cluster.
    Solutions here involve giving more RAM to the server (probably not possible because of the 2 GB limit) and changing the worksheet design to restrict the number of subcubes accessed. A separate consolidation server, so that reads are not competing with intensive consolidations and calculations, would be a good thing.
    Network
    To find out if packets get fragmented, use
    ping -l size -f
    to send a big packet with the 'don't fragment' flag. E.g.
    Ping -l 1024 -f oracle.com
    If you see a reply like Reply from 141.146.8.66: bytes=1024 time=200ms TTL=245 then the size you specified is below the packet limit of the network. But if you use, for example, 2000 in place of 1024, you get Packet needs to be fragmented but DF set, then you know you have exceeded the limit. Combine this investigation with a Fiddler trace (https://www.fiddler2.com/fiddler2/) to see what size data messages are being sent and received.
    Troubleshooting Guidance
    If you seriously want to go into this in more detail, then it will take a considerable effort on your and your IT Department's part. My general advice would be:
    1. During this process, fix your environment so that it is predictable. Register a single HFM application server and connect to that. Use a single web server and don't go through Apache or any other redirector. Make sure we know which machine to go to for logs. This would be a temporary measure and it doesn't stop the other users using the full, load balanced system so long as it doesn't involve your server.
    2. As far as possible keep other users from using it during testing, unless you are specifically testing for performance under load. We want to see what activity is due to SmartView and not random other jobs.
    3. Use PerfMon on all three machines: client, web server and application server.
    4. Clear Logs before testing and note the times of each test so the logs can be correlated.
    5. Log CPU activity, memory usage, network throughput, page faults, thread count etc. I'm no expert on this so get advice from someone who is.
    6. In addition to the performance logs, from the IIS Server get:
    * HTTP.SYS Error Log - %windir%\System32\LogFiles\HTTPERR (Default location; configurable)
    * IIS Website Log - %windir%\System32\LogFiles\W3SVC# (Default location; configurable)
    * Event Log (both System and Application) in EVT and TXT (tab separated) formats
    7. From HFM Application server get:
    * HsvEventLog.log (in <HFM install>\Server working Folder)
    * Event Log (both System and Application) in EVT and TXT (tab separated) formats
    8. Be aware of all timeout settings in your environment (i.e. IIS & the network) and time your tests. This can show whether it is an ASP timeout, script timeout, client side timeout or whatever. Note that the Web Session Timeout setting for SmartView in HFM's Server and Web Configuration is a separate issue from IIS timeouts. Web Session Timeout controls the length of idle time before SmartView makes the user log in again. Default 20 mins.
    9. Run Fiddler traces to directly observe the XML and check for HTTP failures.
    Further resources
    - Tuning IIS 6.0 for HFM
    - SmartView Performance FAQ
    Both are available from Support.
    Author: Andrew Rowland
    Version: 11.x (Fri, 30 October 2009)"
    regards
    Alexander

  • Unable to load excel sheet into oracle

    Can somebody help me...
    I just want to load data records from MS Excel spreadsheet into Oracle table without converting that MS Excel file,
    my ENV: Linux (centos 5.4 + Oracle EE 11gR2)
    here what I did:
    -ODBC-Conf on MS
    create a system DSN 'odbc_excel' => OK
    -Create HS initialization File => OK
    cat initexcel.ora
    HS_FDS_CONNECT_INFO = odbc_excel
    HS_AUTOREGISTER = TRUE
    HS_DB_NAME = dg4odbc
    -Modify listener.ora => OK
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = excel)
    (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = dg4odbc)
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /home/oracle/app/oracle/product/11.2.0/dbhome_1)
    (PROGRAM = extproc)
    -Modify tnsnames.ora: => OK
    excel =
    (DESCRIPTION =
    (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = DEDUSOBI)(PORT = 1521)))
    (CONNECT_DATA = (SID = excel)) (HS = OK)
    -lsnrctl reload => OK
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 11-MAR-2010 13:15:32
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    The command completed successfully
    -tnsping excel => OK
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 11-MAR-2010 13:15:09
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = DEDUSOBI)(PORT = 1521))) (CONNECT_DATA = (SID = excel)) (HS = OK))
    OK (20 msec)
    -create link in ORA => OK
    SQL> create database link excel using 'excel';
    Database link created.
    SQL> select * from dba_db_links where DB_LINK like '%EXCEL%';
    OWNER SYSTEM
    DB_LINK EXCEL
    USERNAME
    HOST excel
    CREATED 11-Mar-10
    -check link => NOK :-(
    SQL> select table_name from all_tables@EXCEL;
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    ORA-02063: preceding line from EXCEL
    -listener.log
    11-MAR-2010 13:33:30 * (CONNECT_DATA=(SID=excel)(CID=(PROGRAM=)(HOST=DEDUSOBI)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp) (HOST=127.0.0.1)(PORT=58093)) * establish * excel * 0
    All comments are welcome, thanks
    Zeynel
    Edited by: seyrekel on Mar 11, 2010 4:07 AM

    thanks for the respond Werner, that seems to be the most tricky part (ODBC-Conf@Linux)
    the driver should be available:
    # rpm -qa | grep -i odbc
    unixODBC-devel-2.2.11-7.1
    unixODBC-2.2.11-7.1
    # odbcinst -j
    unixODBC 2.2.11
    DRIVERS............: /etc/odbcinst.ini
    SYSTEM DATA SOURCES: /etc/odbc.ini
    USER DATA SOURCES..: /root/.odbc.ini
    #file /.../dbhome_1/bin/dg4odbc
    /.../dg4odbc:
    ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
    for GNU/Linux 2.6.9, dynamically linked (uses shared libs),
    for GNU/Linux 2.6.9, not stripped
    # odbcinst -s -q
    [ODBC]
    [AnalyticsWeb]
    [Cluster]
    [SSL_Sample]
    but still the same error message...
    thanks
    Zeynel

  • Export To Excel In Visual Composer 7.0

    Hi ,
    i need Exprot Excel Functionality in Visual  Composer7.0  EP7.0 & SP17 . we are getting the data from BI 7 Version Queries in Portal .
    As We Know there is No Direct Open of Export to Excel Functionality
    After Folliowing the Great Link
    Using Web Design API .with Hyperlink  .
    When im trying click on Export To Excel Button It throws Error .
    Im Using Compiler Flash Flex2 Compiler.
    When i am using Flash Compiler it Throws An Error in VC .
    please give me valuehble inputs
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,
    Required information for reproduction  according to note 948490.
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
    <parameterList>
      <param name=" BI_COMMAND_TYPE" value="EXPORT"/>
      <param name=" NULL" value=""/>
      <param name=" SHOW_EXPORT_DIALOG" value="X"/>
    </parameterList>
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
    <parameterList>
      <param name=" BI_COMMAND_TYPE" value="EXPORT"/>
      <param name=" NULL" value=""/>
      <param name=" SHOW_EXPORT_DIALOG" value="X"/>
    </parameterList>
    Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
    Details: Full Exception Chain
    System Environment
    Server
    BI Java Release: 7 - Patch level: 0000000016 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP Release: 700 - Patch level: 0019 - Description: SAP NetWeaver BI 7.0 (PB1CLNT451) - Additional info:  - Production mode: true
    Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_21-b03
    Operating System SunOS - sparcv9 - 5.10
    Context
    ACCESSIBLE false
    CACHE true
    CONTENT_PADDING true
    COUNTRY US
    DEBUG false
    DEBUG_LEVEL 0
    DEBUG_MESSAGES false
    DEBUG_TEXTS false
    DEFAULT_FONT 
    DISPLAY_STACK_TRACE_IN_ERROR_PAGES true
    LANGUAGE EN
    Master System Alias PB1CLNT451
    NAVIGATION_NODE_ACTIVE_IVIEW pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
    PROFILING false
    Query String (Initial Browser Request) BI_COMMAND_1-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_1-NULL=&BI_COMMAND_1-SHOW_EXPORT_DIALOG=X&BI_COMMAND_1-EXPORT_FORMAT=PDF&QUERY=
    RTL false
    Request URL http://d03pp1.saildsp.co.in:50300
    SAP_BW_IVIEW_ID pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
    SERVER_URL_PREFIX http://d03PP1.saildsp.co.in:50300
    THEME_NAME sap_tradeshow
    TRACE false
    TRAY_TYPE PLAIN
    Time Wed Jan 06 16:01:30 IST 2010
    USE_HTTPS_FOR_ADS false
    USE_SAP_EXPORT_LIB false
    User CEP_SIVA (USER.R3_DATASOURCE.CEP_SIVA)
    VALIDATION_DATA false
    Deployed SCAs
    SCA Version SP Patch Compiled Deployed
    ADSSAP 7.00 17 0 2008-09-17 22:26:43 IST 2009-08-29 10:51:50 IST
    BASETABLES 7.00 17 0 2008-09-17 22:41:38 IST 2009-08-29 10:37:16 IST
    BI-BASE-S 7.00 17 20 2008-12-04 07:47:32 IST 2009-08-29 11:55:31 IST
    BI-IBC 7.00 17 0 2008-09-18 06:07:59 IST 2009-08-29 11:45:17 IST
    BI-REPPLAN 7.00 17 0 2008-09-18 07:38:15 IST 2009-08-29 11:56:13 IST
    BI-WDALV 7.00 17 0 2008-09-18 07:38:21 IST 2009-08-29 11:56:24 IST
    BIWEBAPP 7.00 17 20 2008-12-04 07:48:29 IST 2009-08-29 11:47:27 IST
    BI_MMR 7.00 17 0 2008-09-17 22:42:29 IST 2009-08-29 10:52:19 IST
    BI_UDI 7.00 17 0 2008-09-17 22:42:49 IST 2009-08-29 10:53:28 IST
    CAF 7.00 17 0 2008-09-18 08:09:40 IST 2009-08-29 11:30:07 IST
    CAF-KM 7.00 17 0 2008-09-18 07:42:37 IST 2009-08-29 12:06:47 IST
    CAF-UM 7.00 17 0 2008-09-18 08:09:46 IST 2009-08-29 10:47:54 IST
    CORE-TOOLS 7.00 17 0 2008-09-17 22:45:03 IST 2009-08-29 10:37:32 IST
    EP-PSERV 7.00 17 0 2008-09-18 06:14:35 IST 2009-08-29 11:57:13 IST
    EP-WDC 7.00 17 0 2008-09-18 01:31:00 IST 2009-08-29 11:59:04 IST
    EPBC 7.00 17 0 2008-09-18 06:13:01 IST 2009-08-29 11:09:46 IST
    EPBC2 7.00 17 0 2008-09-18 06:13:12 IST 2009-08-29 11:49:55 IST
    JLOGVIEW 7.00 17 0 2008-09-17 21:40:00 IST 2009-08-29 10:37:52 IST
    JSPM 7.00 17 1 2008-12-10 12:16:00 IST 2009-08-28 22:07:33 IST
    KM-KW_JIKS 7.00 17 0 2008-09-17 22:47:53 IST 2009-08-29 11:10:10 IST
    KMC-BC 7.00 17 0 2008-09-18 06:15:00 IST 2009-08-29 11:59:39 IST
    KMC-CM 7.00 17 0 2008-09-18 06:15:52 IST 2009-08-29 12:00:05 IST
    KMC-COLL 7.00 17 0 2008-09-18 06:16:17 IST 2009-08-29 11:51:27 IST
    LM-PORTAL 7.00 17 0 2008-09-18 07:45:59 IST 2009-08-29 11:45:18 IST
    LM-TOOLS 7.00 17 0 2008-10-08 12:18:34 IST 2009-08-29 11:37:41 IST
    NET-PDK 7.00 17 0 2008-09-18 06:16:25 IST 2009-08-29 11:51:29 IST
    RTC 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:51:31 IST
    RTC-STREAM 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:45:19 IST
    SAP-EU 7.00 17 0 2008-09-18 07:47:22 IST 2009-08-29 12:05:04 IST
    SAP-JEE 7.00 17 0 2008-09-17 22:52:28 IST 2009-08-29 10:38:17 IST
    SAP-JEECOR 7.00 17 0 2008-09-17 22:53:35 IST 2009-08-29 10:38:52 IST
    SAP_JTECHF 7.00 17 0 2008-09-17 22:54:39 IST 2009-08-29 10:39:08 IST
    SAP_JTECHS 7.00 17 0 2008-09-17 22:57:28 IST 2009-08-29 11:24:36 IST
    UMEADMIN 7.00 17 0 2008-09-18 08:19:28 IST 2009-08-29 11:38:09 IST
    UWLJWF 7.00 17 0 2008-09-18 06:17:26 IST 2009-08-29 12:07:22 IST
    VCBASE 7.00 17 0 2008-09-18 06:17:33 IST 2009-08-29 12:08:19 IST
    VCFLEX 7.00 17 0 2008-09-18 06:18:04 IST 2009-08-29 11:52:19 IST
    VCFRAMEWORK 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:52:24 IST
    VCKITBI 7.00 17 0 2008-09-18 06:11:41 IST 2009-08-29 11:45:20 IST
    VCKITGP 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:21 IST
    VCKITXX 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:22 IST
    WDEXTENSIONS 7.00 17 0 2008-09-18 07:49:02 IST 2009-08-29 12:08:46 IST
    Full Exception Chain
    Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list: <parameterList>  <param name=" BI_COMMAND_TYPE" value="EXPORT"/>  <param name=" NULL" value=""/>  <param name=" SHOW_EXPORT_DIALOG" value="X"/></parameterList>     at com.sap.ip.bi.base.parameter.impl.ParameterList.getParameterWithUpperCaseName(ParameterList.java:682)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValueWithUpperCaseName(ParameterList.java:748)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:742)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:732)     at com.sap.ip.bi.webapplications.runtime.impl.Page.resolvePageCommandDialogs(Page.java:4471)     at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4422)     at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:3974)     at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3021)     at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2864)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:994)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller._processRequest(Controller.java:883)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:860)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:362)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:279)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)     at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)     at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)     at java.security.AccessController.doPrivileged(Native Method)     at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)     at java.security.AccessController.doPrivileged(Native Method)     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Regards ,
    venkat p

    Hi Apurva ,
    Now I got Variable Id  and Varibale Value i have give From Data Fields of VC  .
    When i click on Button Export To  Excel it gives
    SET_VARIABLES_STATE is Correctly placed For
    VARIABLE_VALUES VARIABLE_VALUE
    if give 
    VARIABLE_VALUES VARIABLE_VALUE instead of SET_VARIABLES_STATE it is giving  No MetaData  is available for VARIABLE_VALUES VARIABLE_VALUE
    it throws like .
    please help in this regard.
    I Have given The Formuls AS Below
    "pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=zmp_prodn_mtef_ccp_1&BI_COMMAND_1-BI_COMMAND_TYPE=VARIABLE_VALUES VARIABLE_VALUE&BI_COMMAND_1-VARIABLE_VALUES VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING="&2009&"&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0P_FYEAR&BI_COMMAND_3-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_3-EXPORT_FORMAT=XLS&BI_COMMAND_3-null="
    Regards ,
    venkat p

  • Can anyone answer this question? What is used to format a string so that it falls into a certain Row/Column in excel? see text for indepth question.

    I'm attaching a file that may help. Just remember this is my FIRST attempt at using NI/FeildPoint so things that would be obvious to the normal users more than likely would slide right by me. So I'll try and explain what the text contains as to make my problem more clear. I'm using a FP-1000, FP-AI-100, and a FP-TB-10. i'm creating a application where I'm using the 8 channels from the FP-AI-100 to monitor a control system ,that we manufacture. The control system is in an environmental chamber. I use the FP-TB-10 to monitor the temperature while in the chamber. The control system is ran for 4 hours under varing enviromental conditions while I monitor vital system voltages with the FP-AI-100. Now the application that i'm building starts with the obvious FP CREATE.VI and so forth I have no problem communicating with the FP's, but the information that I'm monitioring needs to be placed into a file with Headers describing the information below it. Now I use a "WHILE LOOP.VI" to monitor the FP-AI-100 & FP-TB-10 for the 4 hour period. but before that I create and open a file where I use a "CONCATENATE STRINGS.VI" to enter the headers I need. I do this by CONSTANTS, CONTROLS, TABs, AND CARRIAGE RETURN being entered into the "CONCATENATE STRINGS.VI" in the order I want them to appear. I use ROW 1 to enter (OPERATOR:with a CONSTANT) an a (CONTROL so the operator may enter his name and be recorded into the file) using a TAB to seperate Columns and a CARRIAGE RETURNto drop down to ROW 2 for the next headers. I use header names and TABs to seperate the columns. This part works great. I end up with ROW 1 having the operator information then ROW 2 having the headers for all the channels I'm using to monitor the control system with in their own column. The trouble happens when I write to this file during the "WHILE LOOP". The information recorded for DATE:, TIME:, and Channel 0 of the FP-AI-100 end up right under their corresponding header on ROW 3, but the rest of the data ends up on ROW 4 in column 3 and goes down many rows with some of the data not being stored at all. It varies on how many rows are used starting at ROW 4 but hey always stay in column 3. I use the "FP READ.VI" outputing to a "ARRAY TO SPREADSHEET STRING.VI" outputing to a "CONCATENATE STRINGS.VI" for each channel within the "WHILE LOOP" then into the "WRITE.VI". I use the "CONCATENATE STRINGS.VI" to place my data OR atleast I thought you could do that some how I'm not quit doing something write either there is a sampling/timing issue or writing to file issue where things are being confused in the "WHILE LOOP" if someone know a better route to perform what I'm tring here I would be interested. Its not like I'm not giving it the old colledge try here but without proper training and the vagness of the manuals it's difficult to understand what every connection actually does.I'm tring though for everyone who happens to fill pity for me
    Thanks for your help
    John Morris
    Glendinning Marine Product, Inc.
    Attachments:
    ALLchannels ‏273 KB

    > I appreciate your effort to help me, but there is still a slight cloud
    > in front of my eyes here.(I must mention that I'm using Labview 5.1
    Oh, to bad. I'm using LV 6,02 and tried to save the application as LV5.1,
    but it didn't work.
    > Lets start with the easy one which is the SECOND main thing you
    > wanted to mention. In my application I used individual Create Tag.vi's
    > "so your saying that I can use just one Create Tag.vi and one Read.vi
    > and what ever I use to display the values will automatically to show
    > the individual channels" in other words if I use a "Indicator(DBL)"
    > comming out of the Read.vi what ever I use in the "PANEL" layout will
    > expand to show all 8 channel if I was using a FP-AI-100? Cool...
    Allmost right. The 8 channels come out as 1D-array, ch0...ch7.
    > #1--How do I change the delimiter (TAB) to a delimiter (comma) in a
    > Array to Spreadsheet String.vi?
    > ...cut
    I don't use this Spreadsheet VI, because files coming out there allways
    start this time consuming EXCEL wizzard. Because of this, I programmed my
    own CSV-conversion vi. Maybe you could just use a common texteditor, like
    wordpad and put the csv-examples from my last reply down to a text file
    and rename it to *.csv. Texteditors terminate lines with "\r\n" by
    default, so this is a very quick way for testing.
    > FP_Analog_Logging example to record all eight channels it uses a Array
    I didn't find the vi you metione above, but there is another good one:
    Look at examples\FieldPoint\DataLogging\FP Logger.vi.
    In a little case structure, at "false", there is a function called "Format
    into string".
    Pop up on the format string and adjust >>'\' Codes Display<<.
    Then you change the format string into: %.;%-f%s
    A Tab string is connected to the lower input of this function. Replace
    this one with a comma.
    That should do.
    >
    > #2--If using just one Create Tag.vi and one Read.vi and I have the
    > Item Name listed as ALL I take it that the information comming out of
    > the Read.vi is data for each channel in a String format starting with
    > channel 0 and ending with channel 7 for the FP-AI-100.
    Yes, just as explained above. If you put a indicator at the output to
    display the values, you can expand the display to show all 8 channels, but
    you can't name induvidual cells. In a array, all cells have identical
    named labels. If you want to name the individually, you have to attach the
    array to cluster function and put the indicator after this one. Enable
    labe display and name the output values individually.
    > #3--Now I use the following to "Format String" in the Array to
    > Spreadsheet string.vi (%.4f)but I don't see anyway of changing the
    > delimiter from (TAB) to (COMA)
    Explained above.
    > #4 you stated text strings need a "as prefix and sufix" and each
    > string is seperated by a coma, a period is used as decimal number
    > separator and lines have to be terminated by my question is
    > WHERE IS THIS ACCOMPLISHED? WHAT VI OR WHAT CONNECTOR PIN?
    Well, modifying strings are done with string functions.
    Above, as I explained how the sample FP Logger.vi can be modified to do
    the job for numbers. The pre- and suffixing with ", you only need for
    strings, which EXCEL should interpret a string and as nothing else as a
    string, even if there's a number inside. You usually need this only for
    headers. So its easyest, if you just write your string into a string
    constant or control and concatenate it to the previous csv-file contents.
    Oh, I just see by looking at the above mentioned example... Inside the
    case structure, but in the "true" case, there are error messages
    concatenated to the logfile. At this point it is importent, to use " for
    integrating the message into the CSV file, because a error message usually
    looks like this: >> ERROR 2345 in vi yxz <<
    Here you have text and number strings mixed in one line. EXCEL does not
    know, if it should interpret the number inside the error line as separate
    number, separating the line into three colums i.e. string before number,
    number and string after number. So tell EXCEL by putting a " before and
    after the line each.
    For this, expand the Format To String function by one input, move down all
    connections, to be able to insert a string constant with a " to the first
    argument connector. Change the contents of the string constant at the
    bottom argument from tab to ", (quotation mark AND comma)
    > #5 You gave me an example of what a 3 column header could look like:
    > "col0","col1","col2"\r\n Now is this something that you enter
    > somewhere cause I know that \r is carriage return and \n is newline so
    > I take it that the above is entered somewhere maybe in the Write.vi to
    > the connector called Header (F)? See this is what confuses me because
    > NI manuals have no examples of certain connectors types being used or
    > any reference as to how they manipluate data with there varing type
    > inputs. Or maybe I'm just missing them.
    The example I mentioned above help here to.
    Look at the Write File function. This function receves data from a
    function named concatenate strings. Expand this function to have one more
    spare input at the bottom. Create a string constant. Switch the constant
    display to "\" mode. Enter "col0","col1","col2"\r\n into the constant.
    Connect the constant to the spare input.
    Doing this, every dataline in the csv file is followed by
    "col0","col1","col2"\r\n .
    I wish you a nice weekend,
    Rainer Ehrt

  • Intermittent Error 41106 Error when trying to open an Excel file.

    I am having an intermittent problem while opening an Excel file.  The problem only occurs occasionally during execution of my program.  My program has a cluster of buttons each button opens a sub VI that is part of a calibration process.  The first VI generates an EXCEL filename that is used to save all calibration data.  A template is opened, data is placed in this template, and then it is saved under the generated filename.  Most of the time this seems to work fine, but every once in a while I receive a -41106 error indicating that Microsoft EXCEL did not open.  As far as I can tell when I run each sub VI independently they work fine and no errors are generated.  Does anyone know why this might be happening?  I would appreciate any help.
    Thanks 

    What version of LabVIEW and the Report Generation Toolkit are you using?  I remember adding some code in the 1.1 version of the toolkit to attempt to avoid some Microsoft Excel latencies with opening/closing the application repeatedly, but it was by no means fool proof, since Excel sometimes takes its sweet time leaving memory when the application exits.  Without knowing any more specifics, my best suggestion is for you to add a small delay between successive operations regarding opening/closing Excel and see if that helps.  Also, if you could post a simple VI that demonstrates the behavior, that would be extra helpful.
    Oh yeah, and another suggestion would be to open one report reference at the beginning of your program, and use this reference through the whole thing...I understand that this might not be possible, though, if you're opening different worksheets throughout the course of your application running.
    Good luck,
    -D
    P.S. - For those of you reading this wondering why I would automatically assume MegaMan is using the Report Generation Toolkit, he cites error -41106, which is an error specific to this toolkit.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Close excel programmatically after user cancels file selection

    Greetings all. I apologize but I incorrectly posted this question on the wrong board originally so am posting it again here. I have a VI that I wrote with some help from this site that reads in as many user selected Flat Data Files as desired into Excel. The VI opens Excel, places each Flat Data File on one row and ends, allowing the user to manipulate the Excel data as desired. I have tested it without problems with up to 100 files at a time. The VI minimizes Excel at startup so that it will not block the Select File(s) dialogue. MY problem is this: If the user cancels the file selection, it returns an error and leaves Excel open. I understand how to handle the error, but have been unable to make Excel close automatically if the action is canceled. I have tried to invoke the Close without saving node with no luck... probably because I don't understand how to apply it. Ideally, I want to take the error number to a case statement, and if it is anything other than zero (0), meaning no error, I want Excel to close down. This will eventually be an executable so I need to make this right. Can anybody help? I have attached a zip file with the VI's and some sample Flat Data Files.
    Thanks
    Attachments:
    RTS Flat File Data.zip ‏103 KB

    If you want anything to run after an error you must clear the error status boolean from the error cluster. To do this use the bundle by name and set the status value to FALSE, take this output cluster into the function you wish to run.
    Andrew Alford
    Production Test Engineering Technologist
    Sustainable Energy Technologies
    www.sustainableenergy.com

  • Looking for example to export data from a DynPro table to Excel file

    Hello,
    I have a certain content in a table.
    I would like to export this content to Excel file and let the user save it on his PC. I tried to use the Office Controller but with no success.
    Have someone already made something like this and can show me an example?

    Hi
    I already explained this in another post. Anyway i will cut and paste the same for you.Here you go.Sample way to create a Excel file and then download it to a local pc using a FileUI Download element.
    We are developing a generic component for the same requirement which will download data to a excel from any table.
    Anyway here is something which will give you some kind of idea as to how you can write the data from WebDynpro to a excel file.
    For running this application
    Ensure that the requisite JAR files are set for the Excel API's. See the blog link below.
    Steps :
    All your files in the machine running the WAS will be created in the default location
    Alias : webdynpro/resources
    Path : <Drive>:/usr/sap/J2E/JC00/j2ee/cluster/server0/temp/webdynpro/web
    You can open your Visual Administrator and go to HTTP provider service and then create your own Alias. say
    Alias : myAlias
    Path : <Drive>:/mydirectory/myfiles
    Once this is done restart your WebAS.
    The code explained will perform the following.
    There is a button UI element and a Download UI element. On click of the Action associated with the button ui element
    The code below will create a excel file in the location mentioned.
    On click of the download UI element you can view the excel file that was created.
    Now create a New project in your NWDS
    Follow the blog for importing the necessary jar files for Excel
    /people/perumal.kanthan/blog/2005/03/21/reading-excel-data-from-java-using-hssf-api
    Once that is done you can create say a button in your Webdynpro and associate it with a action.
    Then you can write some code like the one below.
    //Declare this in the end between the Begin others block.
      private FileOutputStream out = null;
      private HSSFWorkbook workBook = null;
      private HSSFSheet hsSheet = null;
      private HSSFRow row = null;
      private HSSFCell cell = null;
      private HSSFCellStyle cs = null;
      private HSSFCellStyle cs1 = null;
      private HSSFCellStyle cs2 = null;
      private HSSFDataFormat dataFormat = null;
      private HSSFFont f = null;
      private HSSFFont f1 = null;
    //Code to create the Excel.
      public void onActionExportToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionExportToExcel(ServerEvent)
        try
          out = new FileOutputStream("C:/mydirectory/myfiles/testexcel.xls");
          workBook = new HSSFWorkbook();
          hsSheet = workBook.createSheet("My Sheet");
          cs = workBook.createCellStyle();
          cs1 = workBook.createCellStyle();
          cs2 = workBook.createCellStyle();
          dataFormat = workBook.createDataFormat();
          f =  workBook.createFont();
          f1 = workBook.createFont();
           f.setFontHeightInPoints((short) 12);
    //          make it blue
           f.setColor( (short)HSSFFont.COLOR_NORMAL );
    //           make it bold
    //          arial is the default font
           f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    //          set font 2 to 10 point type
           f1.setFontHeightInPoints((short) 10);
    //          make it red
           f1.setColor( (short)HSSFFont.COLOR_RED );
    //          make it bold
           f1.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
          f1.setStrikeout(true);
          cs.setFont(f);
          cs.setDataFormat(dataFormat.getFormat("#,##0.0"));
    //       set a thick border
         cs2.setBorderBottom(cs2.BORDER_THICK);
    //       fill w fg fill color
         cs2.setFillPattern((short) HSSFCellStyle.SOLID_FOREGROUND);
        cs2.setFillBackgroundColor((short)HSSFCellStyle.SOLID_FOREGROUND);
    //       set the cell format to text see HSSFDataFormat for a full list
         cs2.setDataFormat(HSSFDataFormat.getBuiltinFormat("text"));
         cs2.setFont(f1);
         cs2.setLocked(true);
         cs2.setWrapText(true);
         row = hsSheet.createRow(0);
         hsSheet.createFreezePane(0,1,1,1);
        for(int i=1; i<10;i++)
           cell = row.createCell((short)i);
          cell.setCellValue("Excel Column "+i);
          cell.setCellStyle(cs2);
         workBook.write(out);
         out.close();
    //Read the file that was created.
         FileInputStream fin = new FileInputStream("C:/mydirectory/myfiles/testexcel.xls");
         byte b[] = new byte[fin.available()];
         fin.read(b,0,b.length);
         fin.close();
         wdContext.currentContextElement().setDataContent(b);
        catch(Exception e)
          wdComponentAPI.getComponent().getMessageManager().reportException("Exception while reading file "+e,true);  
        //@@end
    You can now add a Download UI Element to the layout.
    Create a Context Attribute say "dataContent" and this should be of Type Binary.
    The Data property of the File UI download element should be mapped to dataContent.
    In the init method write code like
    This is done for the download element.
         IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("dataContent");   
         IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    //In addition the FileDownload UI element needs for defined resource types  
         binaryType.setFileName("testexcel.xls");
         binaryType.setMimeType(WDWebResourceType.XLS);
    Hope that helps you. Anyway its a sample and it should be helpful for you to see how you can modify it and of course maintain some standards in coding unlike the test sample given above :).
    Let me know if you require further clarifications
    regards
    ravi

  • How to export data from a Dynpro table to Excel file?

    Hi
    Here I go again. I read the post <b>Looking for example to export data from a DynPro table to Excel file</b> and put the code lines into a Web Dynpro Project where we need to export a dynpro table to Excel file but exactly at line 23 it doesn't recognize <b>workBook = new HSSFWorkbook();</b>
    1     //Declare this in the end between the Begin others block.
    2     
    3     private FileOutputStream out = null;
    4     private HSSFWorkbook workBook = null;
    5     private HSSFSheet hsSheet = null;
    6     private HSSFRow row = null;
    7     private HSSFCell cell = null;
    8     private HSSFCellStyle cs = null;
    9     private HSSFCellStyle cs1 = null;
    10     private HSSFCellStyle cs2 = null;
    11     private HSSFDataFormat dataFormat = null;
    12     private HSSFFont f = null;
    13     private HSSFFont f1 = null;
    14     
    15     //Code to create the Excel.
    16     
    17     public void onActionExportToExcel(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
    18     {
    19     //@@begin onActionExportToExcel(ServerEvent)
    20     try
    21     {
    22     out = new FileOutputStream("C:/mydirectory/myfiles/testexcel.xls");
    23     workBook = new HSSFWorkbook();
    24     hsSheet = workBook.createSheet("My Sheet");
    25     cs = workBook.createCellStyle();
    26     cs1 = workBook.createCellStyle();
    27     cs2 = workBook.createCellStyle();
    28     dataFormat = workBook.createDataFormat();
    29     f = workBook.createFont();
    30     f1 = workBook.createFont();
    31     f.setFontHeightInPoints((short) 12);
    32     // make it blue
    33     f.setColor( (short)HSSFFont.COLOR_NORMAL );
    34     // make it bold
    35     // arial is the default font
    36     f.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    37     
    38     // set font 2 to 10 point type
    39     f1.setFontHeightInPoints((short) 10);
    40     // make it red
    41     f1.setColor( (short)HSSFFont.COLOR_RED );
    42     // make it bold
    43     f1.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
    44     f1.setStrikeout(true);
    45     cs.setFont(f);
    46     cs.setDataFormat(dataFormat.getFormat("#,##0.0"));
    47     
    48     // set a thick border
    49     cs2.setBorderBottom(cs2.BORDER_THICK);
    50     
    51     // fill w fg fill color
    52     cs2.setFillPattern((short) HSSFCellStyle.SOLID_FOREGROUND);
    53     cs2.setFillBackgroundColor((short)HSSFCellStyle.SOLID_FOREGROUND);
    54     // set the cell format to text see HSSFDataFormat for a full list
    55     cs2.setDataFormat(HSSFDataFormat.getBuiltinFormat("text"));
    56     cs2.setFont(f1);
    57     cs2.setLocked(true);
    58     cs2.setWrapText(true);
    59     row = hsSheet.createRow(0);
    60     hsSheet.createFreezePane(0,1,1,1);
    61     for(int i=1; i<10;i++)
    62     {
    63     cell = row.createCell((short)i);
    64     cell.setCellValue("Excel Column "+i);
    65     cell.setCellStyle(cs2);
    66     }
    67     workBook.write(out);
    68     out.close();
    69     
    70     //Read the file that was created.
    71     
    72     FileInputStream fin = new FileInputStream("C:/mydirectory/myfiles/testexcel.xls");
    73     byte b[] = new byte[fin.available()];
    74     fin.read(b,0,b.length);
    75     fin.close();
    76     
    77     wdContext.currentContextElement().setDataContent(b);
    78     }
    79     catch(Exception e)
    80     {
    81     wdComponentAPI.getComponent().getMessageManager().reportException("Exception while reading file "+e,true);
    82     }
    83     //@@end
    84     }
    I don't know why this happen? Any information I will appreciate it.
    Thanks in advance!!!
    Tokio Franco Chang

    After test the code lines appears this error stacktrace:
    [code]
    java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook
         at com.sap.tc.webdynpro.progmodel.api.iwdcustomevent.ExportToExcel.onActionAct1(ExportToExcel.java:232)
         at com.sap.tc.webdynpro.progmodel.api.iwdcustomevent.wdp.InternalExportToExcel.wdInvokeEventHandler(InternalExportToExcel.java:147)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:252)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
    Thanks in advance!!!
    Tokio Franco Chang
    [/code]

  • How to get Coordinates of edges from image into excel

    Hi,
    I am new to labview and I am doing a project in which i move an XY stage under a laser to etch pictures.  So far I have managed to get the stage to move by reading off coordinates from an excel spread sheet and so can draw pictures if I have the coordinates.
     I am trying to use the vision module to be able to put any image in and then find the edges, get the coordinates of the edge and so draw the image.  Using the vision assistant I do colour plane extraction (to make greyscale) then use shape detection looking for lines with a small minimum length, this gets the information i want and if i click the button on the right that says send data to excell i get a spread sheet with all the information i need.  However, I cant get it to automatically save to excell (the write to spread sheet function doesnt work as "The type of the source is 1-D array of cluster of 5 elements."
    It would probably be bettter if i could use the output of the vision assistant (shape detection) straight away without having to save to excell but I cannot extract the information i need from the output as none of the array/cluster functions seem compatible with the data.  I am using labview 10 and have attached my VI below any help would be greatly appreciated!
    Attachments:
    image to coords (good).vi ‏109 KB

    Hello hzub1,
    It seems your having trouble getting to the information in the output of your Vision Assistant. You can use Context Help (Ctrl+H to show) to help understand the contents of a large array or cluster when you hover your mouse over the wire (see below).
    Looking at the above I created the code below which breaks out all the contents of one item in the array.
    Here I use the Index Array function to break out one element of the array. Each element is a circle descriptor, cluster of 5 elements so I use the Unbundle by Name function to access each of the values in the cluster
    I hope this helps,
    Jack. W
    Applications Engineer
    National Instruments

Maybe you are looking for

  • 0x101-0x20017 - Windows 8.1 Pro update

    Hey Technet! I've recently been attempting to install Windows 8.1 Pro on my Asus Pro55 F5SR laptop. The specs for the laptop are: - 2GB RAM - 250GB HHD - Intel Core 2 Duo T5800 - ATI (AMD) Mobility Radeon HD 3400 Series - 512MB - Windows 8 Pro x64 Th

  • Upgrade from 10.39 to 10.4 problem on a Power Mac G4

    I'm trying to upgrade from 10.39 to 10.4 using the Tiger install DVD . - When I d insert the dvd, it immediatle pops it back out.. - I tried transfering the dvd data on to a usb drive. When I did this, I cilicked on the "install icon" get the install

  • Business Components not available while using Model Configurator in ID

    Hi, In ESR: I created a ProcessIntegrationScenario PIS_myScenario (and completed with sender and receiver components, actions etc) In ID: I created and activated two BusinessComponents: BC_A and BC_B I created a new Configuration Scenario: CS_Test, a

  • Need help for new iPod Nano user(s)

    Please help: My daughter has an iPod, with an iTunes account. My wife just rec'vd a Nano for Mothers Day. How can I install both iPods on the same computer? I don't want to screw this up. Can I add another user to the first iTunes/iPod account? Thank

  • The purpose of a PSA ?

    I know that in a PSA data can be stored exactly like in it's source, but what is the purpose of this ? why should I use a PSA and why not directly to a data target without a PSA in between ?