Write a string and an integer and a table all in the same file?

Hello

I am currently it several different types of values with LabView.

I have a shot, a few numbers and several paintings.

Thus, for example, I have a timestamp of the chain, several values of "integer" amplitude of the signal for example, RMS value, frequency and I have several paintings - table of signal, the FFT (PIC and location) values.

Basically, I'm trying to find a way to write all the values in a single file. I can write all the individual types to separate files (so I can write the RMS, amplitude and frequency to a single file, some of the tables in the other)
but is it possible to write a string and an integer and a table all in the same file?

Pointers would be much appreciated,

Thank you

Paula

Your file will be all text... any format in a table of text, to build as a single table, "table chain worksheet", to write to the file.

(I'm sure this has been on the forums before... a search it would have thrown upward)

Tags: NI Software

Similar Questions

  • Everything was fine until my Windows 10, lost the start feature, if I ever go back to Windows 7, in this process, I lost my Adobe Reader software, I tried about ten times with different versions and different locations, all with the same download error

    Please forgive me for not knowing how to use this forum, I am an old man and not good at computers, I called Adobe, they said it was my only hope!

    Sorry to repeat

    Everything was fine until my Windows 10, lost the start feature, so I had to go back to Windows 7, in this process, I lost my Adobe Reader software, I tried about ten times with different versions and different locations, all with the same error message that is download "the feature you are trying to use is on an unavailable network resource"... are looking for It seems that it does not find when I search there, and I no longer seem to have the AcroRead.msi... the most difficult file, I try, I get deeper and deeper into things I don't know... I am looking for a simple solution!

    When it gets to this point, it is probably better to start from scratch.

    First of all, download, install and run Adobe Reader cleaning tool to get rid of all remains little. Here is a link to the tool: Download Adobe Reader and Acrobat tool - Adobe Labs

    Then go to the following link to download the full installer for the reader.

    https://get.Adobe.com/reader/Enterprise/

  • Problem saving and loading multiple images in the same file

    Hello

    I am having a problem, I have a thah program creates a fileOutputSteam and a gzipOutputSteam and finally an imageIO wrote several images, then I do the reverse process, a
    FileInputsteam and an inputsteam of gzip, imageIO.read read only image of frist, not the rest.

    Can someone help me?
    PS: Sorry for my bad English, I'm Spanish

    Code:
    class Lector {
    
        // Atributos
        private String ruta;
        private static Collection<Imagen> imagenes;
    
        /**
         * Clase que carga un fichero .zip lleno de imagenes
         * @param ruta: ruta donde se halla el fichero .zip a cargar
         */
        public Lector(String ruta) {
        }
        /**
         * Constructor sin parametros
         */
        public Lector() {
        }
        /**
         * Metodo que setea el archivo que queremos cargar
         * @param ruta: Ruta del fichero a cargar
         */
        public void setArchivo(String ruta) {
            this.ruta = ruta;
            imagenes = new ArrayList<Imagen>();
        }
    
        /**
         *
         * @param output: Lugar donde sera representada la salida de la carga de imagenes
         * @return retorna 1 si la carga fue bien y 0 si fue mal
         * @throws FileNotFoundException : excepcion por  no haber encontrado el fichero
         * @throws IOException: excepcion por no poder leer el fichero
         */
        public int cargarImagenes(JTextArea output) throws FileNotFoundException, IOException {
            ZipEntry entrada;
            int contador = 0;
            String archTemp = "temp.jpg";
            FileInputStream fis = new FileInputStream(ruta);
            ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
            BufferedOutputStream dest = null;
            byte[] data = new byte[9000];
    
            // Leemos secuencialmente el archivo zip
            while ((entrada = zis.getNextEntry()) != null) {
                File bufferTemporal = new File(archTemp);
                System.out.println("Archivo " + entrada.getName() + " cargado!");
                output.append("Archivo " + entrada.getName() + " cargado!\n");
                if (!entrada.isDirectory()) {
                    FileOutputStream fos = new FileOutputStream(bufferTemporal);
                    dest = new BufferedOutputStream(fos, 9000);
    
                    while ((contador = zis.read(data, 0, 9000)) != -1) {
                        dest.write(data, 0, contador);
                    }
                       //Cerramos los buffers
                    dest.flush();
                    dest.close();
                    fos.flush();
                    fos.close();
    
                    FileInputStream fin = new FileInputStream(bufferTemporal);
                    BufferedImage bi = ImageIO.read(fin);
                    //Guardamos el fichero
                    imagenes.add(new Imagen(bi, entrada.getName()));
                }
               bufferTemporal.delete();
            }
     
            // Cerramos los bufferes
    
            fis.close();
            zis.close();
    
           
    
            saveAsGzip("dato.gz");
            loadAsGzip("dato.gz");
            return 1;
        }
        /**
         * Funcion que carga la simagenes de dentro del .zip y las guarda en el objeto Imagen
         * @return retorna 1 si la carga fue exitosa
         * @throws FileNotFoundException: Excepcion por no encontrar el archivo
         * @throws IOException: Excepcion por no poder leer el archivo
         */
        public int cargarImagenes() throws FileNotFoundException, IOException {
            ZipEntry entrada;
            int contador = 0;
            String archTemp = "temp.jpg";
            FileInputStream fis = new FileInputStream(ruta);
            ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
            BufferedOutputStream dest = null;
            byte[] data = new byte[9000];
    
            // Leemos secuencialmente el archivo zip
            while ((entrada = zis.getNextEntry()) != null) {
                File bufferTemporal = new File(archTemp);
                System.out.println("Archivo " + entrada.getName() + " cargado!");
    
                if (!entrada.isDirectory()) {
                    FileOutputStream fos = new FileOutputStream(bufferTemporal);
                    dest = new BufferedOutputStream(fos, 9000);
    
                    while ((contador = zis.read(data, 0, 9000)) != -1) {
                        dest.write(data, 0, contador);
                    }
    
                    dest.flush();
                    dest.close();
                    fos.flush();
                    fos.close();
                    java.io.FileInputStream fin = new FileInputStream(bufferTemporal);
                    BufferedImage bi = ImageIO.read(fin);
    
                    imagenes.add(new Imagen(bi, entrada.getName()));
                }
               
            }
    
            // Cerramos los bufferes
            fis.close();
            zis.close();
    
            dest.flush();
            dest.close();
    
            
            return 1;
        }
        /**
         * Funcion que retorna el array de peliculas
         * @return retorna el array de peliculas
         */
        public Collection<Imagen> getImagenes() {
            return imagenes;
        }
        public int saveAsGzip(String pathFichero) throws FileNotFoundException, IOException{
    
            FileOutputStream fos = new FileOutputStream(new File(pathFichero));
         //GZIPOutputStream gzip = new GZIPOutputStream(fos);
            BufferedImage temp2;
            Imagen img;
    
            Iterator ite = imagenes.iterator();
            while(ite.hasNext()){
                img = (Imagen) ite.next();
                temp2=img.getBufferedImagen();
                
                boolean i= ImageIO.write(temp2, "JPEG", fos);
                System.out.println(i);
    
            }
            System.out.println();
    
            //gzip.finish();
            fos.flush();
             
            fos.close();
           
            //gzip.close();
    
            return 1;
        }
        public int loadAsGzip(String pathFichero) throws FileNotFoundException, IOException{
    
            imagenes.clear();
            
            FileInputStream fos = new FileInputStream(new File(pathFichero));
         //GZIPInputStream gzip = new GZIPInputStream(fos);
            BufferedImage img;
    
    
                for(int i=0;i<=100; i++){
                    
    
                 
                    img=ImageIO.read(fos);
    
                    
                    if (img != null){System.out.println(img);
                    imagenes.add(new Imagen(img, String.valueOf(i)));}
                       
                    
    
    
            
                }
    
    
    
    
           // gzip.close();
            fos.close();
    
            return 1;
        }
    }
    Published by: sabre150 on October 28, 2010 01:43

    Moderator action: added
     tags to source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    805814 wrote:
    Oh, sorry again, Ii have commented on all of the code not clear in my best English and posted the image of class:

    (sigh) OK, it's an improvement, but it is not yet an NBS! I think it would take me less time to write code that is a NBS that try to explain more (perhaps an example is better here?). In all cases, your code still seems to be mixing the two Zip and GZip. I've never dealt with GZip and could not be disturbed from now just for this problem, so I focused on using the Zip classes.

    Try this code:

    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.imageio.*;
    import java.util.*;
    import java.util.zip.*;
    import java.io.*;
    
    /** SSCCE that demonstrates how to:
    1) Create some random images.
    2) Store them to a Zip File.
    3) Restore them from a Zip File
    Please study the code carefully, and note how in a single Java source of less
    than 100 lines of code, it manages to achieve the entire demo.!
    @author Andrew Thompson */
    class StoreImagesAsZip {
    
        static Random random;
        static int size = 60;
    
        public static BufferedImage getRandomImage() {
            BufferedImage bi = new BufferedImage(size,size,BufferedImage.TYPE_INT_RGB);
    
            Graphics2D g = bi.createGraphics();
            GradientPaint gp = new GradientPaint(
                (float)random.nextInt(size),
                (float)random.nextInt(size),
                new Color(random.nextInt(255),random.nextInt(255),random.nextInt(255) ),
                (float)random.nextInt(size),
                (float)random.nextInt(size),
                new Color(random.nextInt(255),random.nextInt(255),random.nextInt(255) )
                );
            g.setPaint(gp);
            g.fillRect(0,0,size,size);
    
            return bi;
        }
    
        static public void writeImagesToZip(File file, BufferedImage[] images) throws Exception {
            OutputStream os = new FileOutputStream(file);
            ZipOutputStream zos = new ZipOutputStream(os);
            // Zip does nothing for otherwise compressed media formats such as JPEG and PNG
            zos.setLevel( ZipOutputStream.STORED );
    
            for (int ii=0; ii< images.length; ii++) {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                ImageIO.write(images[ii], "png", baos);
    
                ZipEntry ze = new ZipEntry( ii + ".png" );
                zos.putNextEntry( ze );
                zos.write( baos.toByteArray() );
                zos.closeEntry();
            }
            zos.flush();
            zos.close();
        }
    
        static public BufferedImage[] readImagesFromZip(File file) throws Exception {
            ArrayList images = new ArrayList();
    
            ZipFile zipFile = new ZipFile(file);
            Enumeration en = zipFile.entries();
            while (en.hasMoreElements()) {
                ZipEntry ze = (ZipEntry)en.nextElement();
                InputStream is = zipFile.getInputStream(ze);
                BufferedImage bi = ImageIO.read(is);
                images.add(bi);
            }
    
            BufferedImage[] imageArray = new BufferedImage[images.size()];
            for (int ii=0; ii
    

    Also note that I now invested a lot of time trying to help you. If you like what I've done, the best way to show that is on the occasion of my responses as "Helpful" or "correct". If the problem is "answered", make sure that mark also.

  • What happens if someone has 2 iPhones and both of them has been incorporated into the individual Apple Watch and they are all with the same Apple ID?

    What happens is someone has 2 iPhones and both of them matched with a Apple Watch on its own and that they use the same Apple ID?

    Sharing activity is based on Apple ID? or iPhone?

    Just curious.

    Hello

    Apple Watch can only be coupled to a single at some point iPhone.

  • When I write an email and contects repeatedly changed. The sender can see what I changed in Andriod email.

    I've found that when I write an email and have changed the content of the e-mail several times before that I send. It's ok for the sender to see it with an e-mail client. Also, it shows normal when I received the reply to the sender and visualize it with Thunderbird.
    However, he shows, when I received the email to reply back and it shows all of the content, I've changed with emails from difference in Android mails.
    I think it must be something to do with Thunderbird, because it does not happen with the other mail client.

    (Alt + T) Tools menu > options > composition > general and turn off auto save.

  • Hello everyone! I need an application where I can hand write or type and draw, all in the same...

    Hello everyone! I need an application where I can hand write or type and draw, all on the same page,.

    I'm taking courses in biology and chemistry and sometimes I need to draw and explain

    Can someone help me?

    Thank you!

    I need an application where I can hand write or type and draw, all on the same page, I'm taking courses in biology and chemistry and sometimes I need to draw and explain

    @manuelito.castro,.

    Discover the "Mobilenoter" application, that includes the possibility of ink in free form. If you need to be able to classify and organize your writings, Mobilnoter works perfectly with a single Note.

    -Doc

  • How to record the numbers and words in the same file

    Hello:

    I did a vi where I record the spectrum and its integration in different positions of a two-dimensional net. I save the information in two spreadsheet with the comand "write to file measure."

    Now, I am recording the parameters initial positions, end X X and space between measurement points. I want a file with two columns that looks like:

    Initial position X 1000

    final position X 2000

    space 100

    But idon't know how to save the words and numbers in the same file.

    As I have to perform several steps I want to automatically choose the name of the file (something like parameters_1, parameters_2...)

    Thank you for your attention

    Hi bitxor.

    You can use all the functions of the WriteTotext file to write strings to a file.

    Then you could set up WriteToMeasurementFile' to add new data to existing files (instead of overwrite or renaming)...

    BTW. It is not a good idea to mix lvm files containing arbitrary spreadsheet data!

  • Please help im trying to import pictures from a SD card and get this set up the following files were not imported because it couldn't be read items 1-100 101-200 201-300 itmes points

    Please help im trying to import images from the SD card and get this set up the following files were not imported because it couldn't be read items 1-100

    "Could not be read" indicates that the Destination Directory has no WRITE permission in your operating system.

    To resolve this problem, you must

    1. Determine the Destination folder - it's on the right side of your import under Destination dialog box
    2. Change permissions in your operating system on this particular file have WRITE permission (or switch the destination to one that has the WRITE permission)
  • Me and my dad is from the same Apple ID and I want to set up his own, but how it will get all his contacts, photos etc from my Apple ID? Or he will lose all? or I could keep them saved for him and send more via an application any?

    Me and my dad is from the same Apple ID and I want to set up his own, but how it will get all his contacts, photos etc from my Apple ID? Or he will lose all? or I could keep them saved for him and send more via an application any? I don't know how to resolve this issue, if someone could point me in the right direction.

    Have him create a id Apple here- create and start using a Apple - Apple Support ID, and then both you can create an album-photo sharing Photo Sharing - Apple Support iCloud

  • I have 10 devices all under the same identity of apple my partner can see all my contacts, call logs and use of all other web internet devices. How can I change this, to keep my contacts and call log on my phone only?

    I have 10 devices all under the same identity of apple my partner can view all my contacts and call logs and vice versa.

    The device can also see all internet pages use the devices, but mine isn't... How to get our contacts and call the newspapers private their own device and how can I get to keep an eye on web pages using my children? So how do for my phone, the master device / hand who is in control of access for all, because it has my info from apple id and card credit on all devices.

    Stop sharing an ID first. They are not meant to be shared. Then set the sharing of family. Each individual should have their own code.

  • So, now that the iPhone 7 no longer a listener, how can we charge the iPhone and listen to music at the same time?  There is an adapter that will be a separator so that the two things are possible?

    So, now that the iPhone 7 no longer a listener, how will we be able to charge phone and listen to music at the same time?  Will it be a card which will be a dispatcher?

    You can use a dock of lightning to reload everything using plug the dock integrated headset for listening to music.

    http://www.MacRumors.com/2016/09/08/lightning-dock-iPhone-7-charging-with-music/

  • iPhone 7: how to charge and listen to music at the same time...

    The new iPhone is great! But a quick question that I can't find the answer to... In the car, I use the TomTom app and listen to the music on my phone. Because it must be reloaded when I use TomTom, I have a cable for music and one for the load. The new iPhone means that I can't load and listen to music at the same time? Or will there be some accessory available?

    Thank you!

    You can read what is known on the Apple site.

  • My macpro is backup in the capsule of time even when I was at work, which means that the time capsule is consumed my data plan. Can anyone suggest a way I can have it the backup only when my mac pro and time capsule is in the same local wifi

    my mac pro is backup in the capsule of time even when I was at work, which means that the time capsule is consumed my data plan. Can anyone suggest a way I can have it the backup only when my mac pro and time capsule is in the same local wifi

    If the Time Capsule and MacBook Pros are not on the same network, the MacBook is not backup in the time Capsule. You probably see what snapshots leaving MacBook on the local disk, until the two are reconnected. If you don't want that to happen, disable Time Machine on a different network.

    Good day.

  • I use firefox as my home page. It says im not up to date. If I click on the help icon it says that I am up to date. Tried to uninstall and download again but still the same thing. Help would be appreciated

    I use firefox as my home page. On a regular basis, it tells me im not not using the latest version. When I click on the help icon it says im update. Sometimes a large orange icon appears to the left of the part that says im not not using the latest version. Have uninstalled and downloaded again but still the same.
    Help would be appreciated

    Firefox is a web browser, not a homepage.

    Looks like you have the old www.google.com/firefox/ start page to be the default home page in Firefox before Firefox 4.0 sometime. It is not maintained by Google more so either ignore the message or while in Firefox, go to tools-> Options-> general-> home page section and change your home page.

  • When I try to install firefox again once it is said, the computer must be restarted to complete the uninstall of the previous version, but when restarted and tried again, it says the same thing, what do I do?

    When I try to install firefox again once it is said, the computer must be restarted to complete the uninstall of the previous version, but when restarted and tried again, it says the same thing, what do I do?

    Please try this: copy the files formhistory.sqlite (or formhistory) and places.sqlite (or places) if they exist and remove the entire Mozilla folder in %APPDATA%\protector.exe and also the Firefox folder in Program Files. Please see.

Maybe you are looking for

  • How can I change this setting to display on a TV and laptop?

    original title: when I connect my laptop to the tv, I opted for the display on the tv only tobe.  Now, I want to display my computer and the TV. How do I change this setting? I used the vga connection to connect the entire computer and television.  T

  • Configuration update loop - new

    I have s similar or the same problem that happened before on this forum, however the answers have not solved the problem. I can re - start the computer by using comments presuppose that I can connect to the computer from safe mode. I can't. It just g

  • Lens EF - s 55-250 is lens

    Is the Vivitar hd 2.5 x telephoto lens compatible with the canon lens. I can't get focus (af or mf) if the canon lens is zoomed beyond 130 mm.

  • My users will not be displayed when I slave my hard drive with Vista on a computer running Windows 7.

    How can I solve this problem and have my admin and my user appear in the directory?  My hard drive went out on me on my other computer, so I tried to slaves in the top of the tower.  All other folders appear in my directory, but not users.  There are

  • Get the parent (paragraph) of the text

    Hi allI met a problem and can't seem to find the solution myself. It's like this:Let's say you have a story with two paragraphs. A paragraph has 'Hello' in it and the other a 'world' in as text.You can select e.g. 'Hello', then click on a button, and