Can I select when do i want to write my data into a file?

What I want is like,
When I click a button as ON then only it goes an writes the data into a spreadsheet.
Now i have made the bolllean so that it will show TRUE when you have to write...but if FALSE nothing should happen...
and I cant see any option in Write to Spread Sheet function for it..
So can you help me out with what should I do
Solved!
Go to Solution.

You put the Write to Spreadsheet file in a case structure.
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

Similar Messages

  • Want to write some data into xls or cvs  in defferent sheet

    Hello,
         I want to write some data into xls or cvs in defferent sheet (under one xls or csv file).
         suppose i have 3 StringBuffer i want to to write one StringBuffer into one sheet1 another one in sheet2 and last one in sheet3.
         Please suggest me somthing.

    First of: csv files don't have sheets. Only Excel files have that.
    Second: for Excel you'll have to find a library that implements that format for you. Apache POI is one possible choice, jExcelAPI is another one.

  • I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    I want to use the SQL Toolkit of NI and SQL Server as my databasis on a server. Do I need to install a client in each computer I want to handle the data into SQL tables or I need only a ODBC driver?

    You only need the ODBC driver on each computer. If you are distributing the SQL Toolkit app as an executable and do not install the whole toolkit on each computer, you'll need the SQL Toolkit support files. This is about a dozen files. You can get the list at http://digital.ni.com/public.nsf/websearch/b814be005f9da9258625658700550c75?OpenDocument.

  • Unable to write data into excel file when it's close

    Hi,
    I'm facing this problem and it's a bit weird. I'm using the following method to insert data into excel file. But when excel file is close, it unable to write data into the excel sheet. But it was able to write the data into the excel sheet if i open the excel file when running the program.
    Can anyone please tell me what's wrong to the code?
    public int updateLog(String sheet, String no, String cpId, String CatId, String rbtCode, String rbt, String rbtName, String artistName, String price, String rbtFileName, String songId, String msg){
            int result = -1;
            try{
                SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss",Locale.ENGLISH);
                String actionDate = formatter.format(new Date());
                rbtName = rbtName.replaceAll("'", "''");
                artistName = artistName.replaceAll("'", "");
                String sql = "insert into [Sheet3$] (Code, CpID, CategoryID, RBTCode, RBT, RBTName, ArtistName, Price, RBTFileName, SongID, UploadStatus, FileUploadedDateTime) ";
                sql = sql + " values ('" + no + "', '" + cpId + "', '" + CatId + "', '" + rbtCode + "', '" + rbt + "', '" + rbtName + "', '" + artistName + "', '" + price + "', '" + rbtFileName + "', '" + songId + "', '" + msg + "', '" + actionDate + "')";
                System.out.println(sql);
                log.writeLog(sql);
                result = stmnt.executeUpdate(sql);
            } catch(Exception e){
                e.printStackTrace();
                log.printStackTrace(e);
            return result;
        public int openConnection(){
            int result = -1;
            try{
                Class.forName(dbDriver);
                c = DriverManager.getConnection(conStr + excelFilePath+";ReadOnly=0;");
                stmnt = c.createStatement();
            } catch(Exception e){
                e.printStackTrace();
                log.printStackTrace(e);
                return -1;
            return 1;
        }Thanks

    HI,
    i hv a doubt regarding reading / opening of a
    password protected Excel file using jxl( java ) .
    How to read / open a password protected Excel file
    thro Java (jxl ) program .plz let me know some
    example also .
    Regards,
    Ramesh P
    845935822cross posting !! answered here
    http://forum.java.sun.com/thread.jspa?threadID=710466&messageID=9507085#9507085

  • Java.io.NotSerializableException when overwrite the JTable data into .txt file

    hi everyone
    this is my first time to get help from sun forums
    i had java.io.NotSerializableException: java.lang.reflect.Constructor error when overwrite the JTable data into .txt file.
    At the beginning, the code will be generate successfully and the jtable will be showing out with the data that been save in the studio1.txt previously,
    but after i edit the data at the JTable, and when i trying to click the save button, the error had been showing out and i cannot succeed to save the JTable with the latest data.
    After this error, the code can't be run again and i had to copy the studio1.txt again to let the code run 1 more time.
    I hope i can get any solution at here and this will be very useful for me.
    the following is my code...some of it i create it with the GUI netbean
    but i dunno how to attach my .txt file with this forum
    did anyone need the .txt file?
    this is the code that suspect maybe some error here
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    String filename = "studio1.txt";
              try {
                  FileOutputStream fos = new FileOutputStream(new File(filename));
                  ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(jTable2);
                   oos.close();
              catch(IOException e) {
                   System.out.println("Problem creating table file: " + e);
                   return;
              System.out.println("JTable correctly saved to file " + filename);
    }the full code will be at the next msg

    this is the part 1 of the code
    this is the full code...i had /*....*/ some of it to make it easier for reading
    package gui;
    import javax.swing.*;
    import java.io.*;
    public class timetables extends javax.swing.JFrame {
        public timetables() {
            initComponents();
        @SuppressWarnings("unchecked")
        private void initComponents() {
            jDialog1 = new javax.swing.JDialog();
            buttonGroup1 = new javax.swing.ButtonGroup();
            buttonGroup2 = new javax.swing.ButtonGroup();
            buttonGroup3 = new javax.swing.ButtonGroup();
            buttonGroup4 = new javax.swing.ButtonGroup();
            jTextField1 = new javax.swing.JTextField();
            jLayeredPane1 = new javax.swing.JLayeredPane();
            jLabel6 = new javax.swing.JLabel();
            jTabbedPane1 = new javax.swing.JTabbedPane();
            jScrollPane3 = new javax.swing.JScrollPane();
            jTable2 = new javax.swing.JTable();
            jScrollPane4 = new javax.swing.JScrollPane();
            jTable3 = new javax.swing.JTable();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
    /*       org.jdesktop.layout.GroupLayout jDialog1Layout = new org.jdesktop.layout.GroupLayout(jDialog1.getContentPane());
            jDialog1.getContentPane().setLayout(jDialog1Layout);
            jDialog1Layout.setHorizontalGroup(
                jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 400, Short.MAX_VALUE)
            jDialog1Layout.setVerticalGroup(
                jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 300, Short.MAX_VALUE)
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jLayeredPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);
            String filename1 = "studio1.txt";
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   jTable2 = (JTable) ois.readObject();
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   jTable3 = (JTable) ois.readObject();
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
            jTable2.setRowHeight(20);
            jTable3.setRowHeight(20);
            jScrollPane3.setViewportView(jTable2);
            jScrollPane4.setViewportView(jTable3);
            jTable2.getColumnModel().getColumn(4).setResizable(false);
            jTable3.getColumnModel().getColumn(4).setResizable(false);
            jTabbedPane1.addTab("STUDIO 1", jScrollPane3);
            jTabbedPane1.addTab("STUDIO 2", jScrollPane4);
            jTextField1.setText("again n again");
            jLabel6.setText("jLabel5");
            jLabel6.setBounds(0, 0, -1, -1);
            jButton2.setText("jButton2");
            jButton1.setText("jButton1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
          

  • I want to write and read a hex file from the flash buffer of the microcontroller through the USB serial port

    hello sir,
    I am developing a GUI screen from that i want to write and read a hex file from the flash buffer of the microcontroller through the USB serial port. the driver i am using is FTDID2XX driver.if anyone having examples of loading file through serial port.Please reply me .
    Thanks

    Looks like you should post your request in the LabVIEW forum, this one here preferentially is for LabWindows/CVI...

  • I want to write a program to download file from particular location

    I want to write a program to download file from particular location to client side in jsp.
    Need guidance...

    Hi Hello333,
    You have to use a servlet :
    public class SomeServlet extends HttpServlet {
        public void doPost(HttpServletRequest req, HttpServletResponse resp) throws
                                   ServletException, IOException {
            ServletOutputStream out = resp.getOutputStream();
            resp.setContentType("application/pdf"); // here is an example for a PDF file
            resp.setContentLength(fileLength); // length of the file
            out.write(fileBinaries); // the binaries of the file
    }

  • How can I select the area I want linked, to other page?

    Hi,
    I have been creating multiple stand alone PDF files with links to various documents within a given PDF.  Up until yesterday I would select the Link Button, move my curser to the top left corner of the area to be selected, press the button and drag a box over the area I want selected.  It worked great.  Then BOOM, all of a sudden when I do that now it will not let me select the area I want, it will show a fixed box that appears to be snapped to a formatting line above or below the area I want.  Is there a setting somewhere that might have changed?
    Davey 

    Make sure you do not have the Snap to Grid option selected.
    In Acrobat 8, it is under the View menu.

  • Can't select when I click in a box of type – is it a bug?

    When I click in a box for the first time I can't select the type – can you?
    click click bloody click.
    Nothing happens.
    I have to click again and highlight the text.
    Inevitably– it's driving me around the bend.

    I am not the brightest person sometimes.
    I put the mouse in the text and click.
    Then I click and I click and I click and I click ( I can send you a film) and nothing happens.
    Do I need to buy a different type of computer?
    I have only been using indesign for 10 years.
    And this happned when I upgraded to CC.
    Sorry for being a twit.

  • Can't select the element I want

    Hi Experts,
    I am trying to customize the
    Two-column Left Nav Layout that is provided by DW.
    My first modification is to place everything within the body
    tag inside a new div called
    divWrapper, in order to establish a width of 800px and to
    center the entire page by setting the left and right margins to
    auto.
    The problem is that with divwrapper inserted, the only
    element I can select
    when I am in design view, is divWrapper. I can't select any
    of the divs or the contents of any divs that are inside divWrapper,
    only the whole divWrapper.
    Selecting in code view is still possible, but when I switch
    back to design view, divWrapper is automatically selected, and
    there seems to be no way to grab any element within divWrapper, or
    to get DW to display the child element along with its entire
    ancestral hierarchy in the bar at the bottom of the window.
    Does anyone out there understand what is happening, and how
    to fix it?
    I'm very grateful for any help
    Richard

    Richard,
    It sounds like "divWrapper" has the CSS overflow property
    (and you are
    using DW8). If so, right-click and use:
    Element View > Full
    to edit the overflow element. Note that the shortcut is to
    double-click
    on it. Use:
    Element View > Hidden
    to get back to the original state. Shortcut is F5.
    Hope this helps,
    Randy
    > The problem is that with divwrapper inserted, the only
    element I can select
    > when I am in design view, is divWrapper. I can't select
    any of the divs or the
    > contents of any divs that are inside divWrapper, only
    the whole divWrapper.
    >
    > Selecting in code view is still possible, but when I
    switch back to design
    > view, divWrapper is automatically selected, and there
    seems to be no way to
    > grab any element within divWrapper, or to get DW to
    display the child element
    > along with its entire ancestral hierarchy in the bar at
    the bottom of the
    > window.
    >
    > Does anyone out there understand what is happening, and
    how to fix it?

  • How do I create Themes/Chapters in my video before burning to DVD so that Scenes can be selected when DVD is loaded to player?

    How do I create Themes/Chapters in my video before burning to DVD so that Scenes can be selected using on screen icons when DVD is loaded to player?

    "I don't know what you mean by this. There are no chapter markers in FCP." - you puzzle me by this! Yave You ever made some DVDees after editing in FCP 7? Every chapter in the timeline could be transfered to DVD Studio Pro, and then used in DVD navigation. This is very important feature, decause you don't have to lookfor some parts of your video while creating navigation! Less work - more joy! Another downscore of FCPX!

  • Which of the distribution can I select when I setup webmin?

    I ran the setup.sh of webmin, it asked for my distribution of linux. There was no archlinux, which one can I select? gentoo? slackware? FreeBSD? Or RedHat?
    I have selected RedHat9, It can worked, but not perfect. Because the service script is not in /etc/rc.d/init.d

    You can update it online from within webmin.
    Under webmin configuration, upgrade webmin, the default is to get latest from the web which works fine. (I have just done it)

  • I dowloaded a book to itunes and i can played but when I dowloaded to mi i pod nano 6 the file is wrong i tryed several times and do the same thing :( what can i do?

    I dowloaded a book to itunes and i can play it BUT when I downloaded to my ipod it get the wrong file! I tryed deveral times and keep doing the same thing, how can i fix it? I apreciate your help.

    You may need to put the iPad into recovery mode : http://support.apple.com/kb/ht1808 - you should then be able to reset the iPad and restore/resync your content to it.
    If you do it via a different computer that it's not normally synced to then (from here) :
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.

  • I want to read calibration data from a file

    I have some calibration data from an experiment. There are 14 channels and the data is arranged in a spreadsheet 14 rows x 4 columns, where each column is a different constant from a best-fit equation of the form y = b1 + b2.x1 + b3.x2 + b4.x1.x2, per channel.
    I need to get the data into labview so that I can use it during an experiment. Can anyone recommend the best way to do this? I've tried the 'read from spreadsheet file.vi' but can't get it to work. Any recommendations or example code? Or do you think it is better to use a text file?
    Thanks
    Dave
    Solved!
    Go to Solution.

    They do. From the Help file:
    Reads a specified number of lines or rows from a numeric text file beginning at
    a specified character  ... can use this VI to read a spreadsheet file saved in text format.
    Note: The underlining is my emphasis. Still, I understand what you're saying, and as I said, it's been poorly named from the beginning. 

  • Want to load excel data into oracle table with out changing it to CSV

    Hello all,
    I have a requirement in dumping excel data into oracle database table without changing it to CSV file and this has to be used in normal sql/plsql environment i.e., pkg/procedure cant be used in the forms also...
    so, can u guys can help me out in this
    thanks.............

    The link Pavan provided discusses Oracle Heterogeneous Services. This allows you (using ODBC) to create a database link from Oracle to a non-Oracle data source like Excel. This would allow you to query the Excel data source from SQL*Plus or any other client tool. But that is probably going to require that your Oracle database is running on Windows since I'm not aware of any Excel ODBC drivers for Unix.
    Another potential option would be to write a Java stored procedure that parsed the file. There are a few different Java libraries that can read and write Excel data files. You could load one of those libraries into the database's JVM and then write Java code that parsed the file. You would then be able to call your Java stored procedure from PL/SQL.
    Justin

Maybe you are looking for

  • Is it possible to organize photos into years that the photo were taken?

    Is it possible to organize groups of photos by the year that the photo was taken (in the same way as the old iPhoto 6)?

  • Creative ZEN V PLUS 8GB

    Japan already seem to have the Creative ZEN V PLUS 8GB?when will the UK get this item? and at what cost ?

  • MBP shutting down despite near-full battery charge?

    This is making my crazy, crazy. My battery appears to charge just fine and my adapter works as it should. However, if I wake up my laptop and work without the adapter, I'll only get a little under five minutes worth of time before it shuts down sudde

  • Updating to 4.2 on 3gs

    'er indoors has a 3gs and when trying to update from 3.1.3 to 4.2 iTunes just says "the version of itunes is the current one 9.1.1" Any ideas?

  • BIOS doesn't recognize HD

    We have different of this PC's in our factory. Before, my colleague did all the fixes if there were problems. Now he has left the company...  So my problem: this pc has a faulty harddisk. I have some spare parts, also this harddrive. Harddrive = West