How can I set Excel Data In LabVIEW

Hi,
There is an example about  how to use LabVIEW and ActiveX to programmatically read in Excel data. It uses Range and then by reading Value2 it is possible to read excel values in that range in a specific sheet.
http://www.ni.com/example/28409/en/
Now I would like to write data ( 2D string ) to specific excel sheet. Could you please let me know if there is a way to modify this code to use it for writing to Excel instead of reading
I actually would like to write 2D data to specific sheet of an Excel form. The Read_Excel_Values.llb works perfect for opening an Excel file, specify a sheet and then read the data but I would like to write instead of read.
Thanks 

Hi Tintin,
Please find the attached VI where i tried to write a 2d array using activeX functions to an excel sheet.
Regards,
Srikrishna.J

Similar Messages

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • How can i set the date time year to my i pod

    how can i set the date time year to my i pod touch

    Hello Theodora,
    You can do this via your iPod's Settings application.
    B-rock

  • How can I set document date automatically as system date?

    I use FBV1, FBV2, F-02, FB02. Posting date is automatically set as system date. I want to set document date automatically as system date.
    How can I set document date automaticall as system date?
    Wbr.
    İlker Çokkeçeci
    Computer Engineer
    Ankara, Turkey

    Hi Expert,
    Please refer the below link..
    Document date to be defaulted as system date for all FI transactions
    as there mentioned, please go to T-Code: SHD0.
    Regards,
    GK
    SAP

  • How can I set the date today as default value in a parameter?

    Hi,
    I have in my report a date parameter and I want to set as default value the date today.
    How can I do this?
    Thanks in advance

    If you are using a datatemplate , you can have a beforereport trigger that will have a package call.
    In the package spec, define a date variable and also define the function beforereporttrigger that retruns boolean.
    In the body, define the beforereporttrigger function with
    begin
    select sysdate into specvariable from dual
    return(true);
    end;
    You can then use the variable in the datatemplate as :variable.
    Hope this helps.
    - Vasu -

  • How can I set a Date

    Can someone please help me ?
    I need to set a date variable, with a resultset date field, and then set a GregorianCalendar.
    This code works ok :
    java.util.Date MyDate;
    GregorianCalendar gc = new GregorianCalendar();
    MyDate = new java.util.Date(); //default value
    gc.setTime(MyDate);
    But this code doesn't work :
    java.util.Date MyDate;
    MyDate = new java.util.Date(objResultSet.GetDate("DateField"));
    or
    MyDate = new java.util.Date(objResultSet.GetString("DateField"));
    and then, set the calendar.
    How can I do this ?
    Thanks

    Sorry, for any reason if I set two variables with the same field, the second time cath an error.
    For example, this code works ok :
    //only one time
    MyDate = objResultSet.GetDate("DateField");
    //if I use two times the same field, it doesn't work
    strDate = = objResultSet.GetString("DateField");
    MyDate = objResultSet.GetDate("DateField");
    I don't know what.
    Thanks for help !!!!!

  • How can I set system date from java code?

    Hi. I need to set the system date from my application. It must works on Windows7 so the "cmd /C date" must be executed with Administrator privileges.
    I tried do it that
    Process p = rt.exec("runas /user:" + env.get("COMPUTERNAME") + "\\Administrator \"cmd /C date " + dateYYYYMMDD + "\"");
    Then process ask me for password for administrator but it terminates befor i send it. exitCode() returns 1.
    Have you some idea how can I do it?
    Regards for you.

    At the very least, you need to read this and follow the advice it gives. That may or may not solve your problem, but it's a bare minimum.
    http://www.javaworld.com/jw-12-2000/jw-1229-traps.html

  • How can I set my date and time to ebay network time server?

    In the system preferences I would like to set the date and time to ebay UK time?
    I thought a quick google would be bring up the server and I can't find it.
    At the bottom of every ebay page there is a link to official ebay time
    But its not a live feed of time to get it to the second.
    I want it to be accurate so that I can use applescript to snipe bargins.
    Many Thanks
    Matt

    Just trying to go along the free route. I found Garage Buy   This doesn't work to well but lets you create an applescript and enters the auction into ical. Then you can set ical to run the script once it gets closer to the time.
    Ical only lets you set a time of a minute before the date. So you have to edit the script to add a Delay 59 to have it run 1 second before. From a few refreshes of the time page it looks like ebay time is a second behind, that could be easily be due to time to load the page. anyway i'll opt for a delay of 57secs and give that a try.

  • How can I set a date range for a Date/Time Field in LiveCycle ES2?

    I need to set a specific date range for a form set up in LiveCycle ES2. Cannot see where i allows me to do that without a code entered.

    Hi,
    You can't set a start and end date for the date/time field, the best you can do is validate the range after the user has selected it.
    An alternate is to make your own date / time field, like this sample http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2013/05/an-alternative-date-p icker-for.html
    Regards
    Bruce

  • How can I set the date of my PC using Java?

    Which class has the function to set system date and time.
    Thanks in advance.

    but the following sentence
    Process p=Runtime.getRuntime().exec("date
    11-03-2002");
    always throw IOExecption error
    java.io.IOException: CreatePreocess:date 11-03-2002
    error=0
    and why?
    How to settle it?
    'date' is an internal command which means you need a shell to run it. Depending on the OS this will either be 'cmd' or 'command'. If you search the forums with the following keywords you will find examples on how to use this: "exec", "Runtime", "cmd" or "command"

  • How can you set Dos date as YYYYMMDD in After Action script?

    Hellos...
    I have been trying the standard method to get the DOS date as a format string YYYYMMDD
    It seems to cause the AfterAction script to bomb.
    I am trying this script ...
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ResourceAction name='ISSHP-enable-email'>
    <ResTypeAction restype='Windows Active Directory' timeout='60000'>
    <act>
    rem Action for MSE2007 test/development to Enable-Mailbox a new AD User created by IDM.
    rem Set up environment as necessary (copy of idmadm account's environment)
    rem Local script environment settings
         SET LogFileDrive=C
    SET LogFileDir=%LogFileDrive%:\Sun\ADAfterActionsLog\
    SET DBtoUse=idmex.sks.local\Mailbox Database
    rem set TODAYDATE as yyyyddmm and TIMENOW as hhmmssdd to be used in the Log file name
         set TIMENOW=%time:~0,2%%time:~3,2%%time:~6,2%%time:~9,2%
         for /F "tokens=2-4 delims=. " %i in ('date /t') do set TODAYDATE=%k%j%i
    set >> %LogFileDir%AfterActionLog.txt
    rem PS Commands from here...
    exit
    </act>
    </ResTypeAction>
    </ResourceAction>
    </Waveset>
    But the line
    for /F "tokens=2-4 delims=. " %i in ('date /T') do set TODAYDATE=%k%j%i
    is causing problems..
    How have others managed to turn date /T into YYYYMMDD within an after action ??
    I know in our Gateway date /T will output (today): pe 29.01.2010
    GF

    The output from the for command when run in the cmd shell is as expected.
    I have tried both batch and command line variable settings in my action script i.e.
    for /F "tokens=2,3,4 delims=. " %i in ('date /T') do echo %k%j%i
    and
    for /F "tokens=2,3,4 delims=. " %%i in ('date /T') do echo %%k%%j%%i
    with no joy. I suspect that its the Gateway launched shell executor that is having problems with the for do command.
    Anyways, using
    set todaysdate=%date:~9,4%%date:~6,2%%date:~3,2%
    solves my problem. Just curious why the for construct bombs in the resource action.
    Thanks. GF

  • How can I secure confidential data within LabVIEW?

    I am writing a VI hierarchy that handles confidential data received across a network and sends it out over another communications link.
    If I password-protect all the VIs that handle the confidential data, will this render it as secure as it can be within the LabVIEW domain?
    Or is there still a way of intercepting the data as it is passed between VIs in the call hierarchy?
    Is it possible to hook into low level TCP components that don't show up in the call hierarchy?
    I'm anxious to do the best I can without going completely OTT. Please can someone advise?
    Many thanks
    Nick

    Nick;
    A trick I do is to use a state diagram and a local variable. With the
    state diagram I force LabVIEW to keep the data in memory and then
    outside I rewrite the control with an empty value. That way the data
    will not stay in the control so somebody can read it and will go away
    as soon as the VI finishes. This is to get the data into the sub VI.
    See the attached picture.
    Encrypt data and keep it encrypted until need to be processed. Check my library Crypto-G at:  www.visecurity.com
    Regards;
    Enrique
    Message Edited by Enrique on 07-05-2005 04:23 PM
    www.vartortech.com
    Attachments:
    sample.gif ‏2 KB

  • How can I set the date field to auto populate the current date?

    I have many forms to create where the current date dictates a specific change in options or conditions for the form filler to follow. I cannot see any way to handle that issue. Is it possible to simply set the current date as a default?
    jcytrny

    Sorry, we currently do not support having today's date show up in a date field by default
    Randy

  • How can i know the data that labview takes when calls visa read?????????????

    First sorry for my english!
    I have a program in wich i read data trough USB(in bulk mode) from a FIFO(from a microprocesor) . I don´t know if when i do a visa read and the program that is running in my microprocessor is waiting for the FIFO full, what data catch the visa read?, because labview don´t wait, always take data when visa read is call!!
    THANKS THANKS......

    A read operation just retrieves the bytes that are available on the serial port. Means that these bytes are there because they have already been sent by the connected device. They may be remains from a previous communication.
    Your protocol should ensure that
    1/ the serial buffer is empty before your start your communication session.
    2/ you read either a specified number of bytes, or all the incoming bytes, using a timeout in case of failure
    3/ you leave things clean after communication (empty buffer, close port...).
    Try to be e more specific if you need further help.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How can I set the Lock Model and data structure ?

    Hi ,
    I just have two questions about JE:
    1) Is there some method for me to set the lock mode level , such as record lock, page lock and database lock in JE?
    2) I learned that there are Btree and Hash,etc , data structures , How can I set the data structure when using JE ?
    Thanks in advance !
    Chris

    I think you're confusing our DB (C-based product) with JE. JE does not have lock mode levels, page locks (it does not have pages), or database locks. JE only has the BTREE method, it does not have the HASH method. For JE, please be sure to reference the JE doc page:
    http://www.oracle.com/technology/documentation/berkeley-db/je/index.html
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • There was a problem connecting to the server message

    I have started to get the following message when I run Final Cut Pro X There was a problem connecting to the server "soundmedia" The "sound media" server is a PC running windows XP and is switched off. I closed all libraries & set up a new library -

  • Extremely Urgent - Help Please - ( PA Interview Q & A )

    Hi Guys, I wanted to know Personnel Administration interview question And Answers , it is most urgent for me. Your detail response will be highly appreciated. Thanks – Sam Edited by: Sameer Sameer on Mar 6, 2008 10:07 PM

  • Static method

    If I'm trying to write a method that accepts a String argument and prints it on the screen, but the method itself is supposed to return nothing, what exactly does that mean??? This is the question itself: Write the definition of a class� Telephone .

  • Monitor all service Start with the word "SAP"

    Hallo i have sccm 2012  Can monitor services start with the word "SAP" Instead of monitoring all service set separately . thanks 

  • Function convertion from blob to clob

    Plesae need help,to make function convert from blob to clob i have function but not work when coulmn of blob is vey large ========================================================================================= CREATE OR REPLACE PACKAGE BODY "SHB_PA