Data are skewed between saving and loading

Hello

I'll have a problem saving and loading the data in my VI. My software allows the user collect data from an acquisition of data which is then displayed on a graph for them to see. They can save the data, then load it back later to compare with the current data. Here is the basic methodology:

1. the data are read in the program via a data acquisition

2. data are saved in a file in spreadsheet to a table with the VI 'save in the spreadsheet file.

3. the data is loaded to the program with the VI "read the spreadsheet file.

4. the data are transferred in the same graph is was originally shown on

However, when I save the data and reload, my chart is slightly distorted. I noticed a few things:

1. the values of X are a little more for the loaded data vs the same data front to save/load (DECIMAL NUMBERS)

2. the values of are are not affected. (WHOLE NUMBERS)

3. the loaded data are more straight lines, which means that the same data point is used for row X or Y values

attached is a screenshot of the graph - red data is from this session, Green data is loaded.

export excel to this same graph is attached.

No one noticed an interesting trend in this anomaly, or have any ideas on what I can check? My code does not change the values, but only manipulates them. Please let me know if you need more information, I've tried including as much as I could without a useless book.

Thank you

Joe

To solve this kind of problem, replace the random number generators with a simple signal that you can easily identify as a linear ramp, the number of iterations or a low frequency sine wave. By selecting a signal that is suitable for your application, you should be able to tell if the data are all be recorded and in the right order.

The use of nodes property to move data around sounds like a disaster in the making.  Examine the queues, user events, or functional global variables.

Lynn

Tags: NI Software

Similar Questions

  • Saving and loading data to the Local computer

    I'm new to Flash/ActionScript, and I'm having a lot of fun to create a project in Flash.

    I'm working on a tracker of character (yes I am totally geeking) an I was wondering how to save the data, I walked into the draft (hit points etc...) and load it back the next time I opened it. The data would be stored on my local computer. How can I get Flash/ActionScript for this?

    Thank you.

    Sorry, I copied your code.

    getLocal(), should be getLocal()

  • Saving and loading of a meter

    Hey everyone, I am currently faced with data backup, I have a counter, then loading what was saved. Right now, I'm just a jump every time cash counter as you jump.

    Right now I have:

    var JumpCounter: int = 0;

    Then, when you jump:

    JumpCounter ++;

    Output in the text box called JumpBox with:

    JumpBox.text = JumpCounter.toString ();

    And I want to load and save by using this line of code:

    var so: SharedObject = SharedObject.getLocal("myStuff","/");

    I don't know how to incorporate that into my code.

    Currently, the meter is incremented by jumping and everything, I'm just not sure what the record using so.flush (); and it's not. I have other objects in the backup set and loading fine, I just haven't yet done with a variable. It seems that if a variable would be easier, but I can't put my finger on. If anyone has any ideas, please let me know.

    Thanks in advance!

    use:

    var JumpCounter: int = 0;

    var so: SharedObject = SharedObject.getLocal("myStuff","/");

    {if (SO. Data.JumpCounter)}

    JumpCounter = so.data.JumpCounter;

    }

    Then, when you jump:

    JumpCounter ++;

    so.data.JumpCounter = JumpCounter;

    so. Flush();

    Output in the text box called JumpBox with:

    JumpBox.text = JumpCounter.toString ();

  • Saving and loading of specific properties of an Image

    Hey everybody. I am currently developing a game that allows you to customize the color (hue) of your character through a cursor. What I want to happen is: when you click on accept or play, it will record the current hue of the image, return to this page will take care of this standard that has been saved previously (dyed), as well as at the start of the game, it will replace the graphic with the recorded image previously.

    Here is the code I have in this moment that relates to the image with a base not working correctly save and load this code:

    import flash.events.KeyboardEvent;
    
    
    // open a local shared object called "myStuff", if there is no such object - create a new one
    var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
    
    
    Accept.addEventListener(MouseEvent.CLICK, SaveData);
    PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
    
    
    function SaveData(MouseEvent){
               savedstuff.data.username = Sliders.Dino.MovieClip // changes var username in sharedobject
               savedstuff.flush(); // saves data on hard drive
    }
    
    
    function LoadData(event: MouseEvent) 
    {
               if(savedstuff.size>0){ // checks if there is something saved
               Sliders.Dino.MovieClip = savedstuff.data.username} // change field text to username variable
    }
    
    
    // if something was saved before, show it on start
    if(savedstuff.size>0){
    Sliders.Dino.MovieClip = savedstuff.data.username}
    
    
    

    What I have above is only to save the actual image, which is inside a movie clip names cursors.

    This is the class that I use and which associates the cursor that changes the color of "Dino".

    package 
    {
              import flash.display.Sprite;
              import fl.motion.AdjustColor;
              import flash.filters.ColorMatrixFilter;
              import fl.events.SliderEvent;
      
              public class Main extends Sprite
              {
                        private var color:AdjustColor = new AdjustColor();
                        private var filter:ColorMatrixFilter;
      
                        public function Main():void
                        {
                                  /* Required to create initial Matrix */
      
                                  color.brightness = 0;
                                  color.contrast = 0;
                                  color.hue = 0;
                                  color.saturation = 0;
      
                                  /* Add Listeners function */
      
                                  addListeners();
                        }
      
                        private final function addListeners():void
                        {
                                  colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                        }
      
                        private final function adjustHue(e:SliderEvent):void
                        {
                                  color.hue = e.target.value;
                                  update();
                        }
      
                        private final function update():void
                        {
                                  filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                                  Dino.filters = [filter];
                        }
              }
    }
    
    

    Overall, what I'm asking is: how to save the current hue of an image by clicking on a button, then having this recorded image be previously loaded on reloading or clicking a button? To me, it doesn't seem it should be too hard, but for some reason that I can't grasp it.

    Thanks in advance for reading this and for any assistance, you have to offer!

    It is not possible to trigger this error message for the line of code that you mentioned and the line above to not trigger an error.

    in any case, use:

    so. Data.Hue = e.target.value;

  • The data are different to iTunesconnect and Omniture

    Hi guys, is there anyone know the differences of download data from Apple and Adobe Omniture iTunesconnect?

    I now have a viewer multi-question on app store application.

    The app and all the slips are free to download.

    However, I found something strange, iTunesconnect download units completely different app is moved from https://digitalpublishing.Acrobat.com .

    Even if I count the install download and app folios together, the results are always different iTunesconnect units, sometimes longer, sometimes less.

    I read the AppStoreReportingInstructions.pdf yesterday and found nothing useful to this question.

    Is there anyone get any what index?

    Hello

    Some reasons for the differences in iTunesConnect (Apple) data and analytics of DPS:

    1. DPS account the first launch of the app, Apple account app install start - there will be a delta between users that are starting to download the app and those who actually run the application. Also consider that if someone downloads the app in iTunes (office), Apple will be marked as a download, even though the application has not been used / started.
    2. DPS cache analytics on the device and sends the resulting data only every 60 seconds. So if a user launches the app, but leaves before the 60 second mark and never returns, Adobe DPS receive data
    3. DPS records hits when the device has been disconnected but sends when the unit starts again online. This means that the count for a particular day could continue to grow over the days or weeks.
    4. Time zone differences - DPS records hits on Eastern time, Apple uses a different threshold for each day.

    Bottom line is that the scope of the DPS are not the same and is not expected to match Apple iTunesConnect numbers.  You can assume that Apple is precise with what they measure and Adobe DPS is accurate to what is measured within the app.  It's two different approaches, measured at two different times, offering two different types of data.

    With sincere friendships.

    KlaasJan Tukker

    Adobe Systems

  • How data are populated by catA and catB

    Hi guys

    If I change all the data of bcc and deploy the project

    So how my app store that will select data amended because it points to the different data source

    Please clarify my doubt

    and also why we have four different sources of data instead of a

    Why some repositories are oriented production datasource and some point to the switching of data source

    Please clarify my doubt

    There are two data sources live datasource and source of data in offline mode.

    Ideally if site points to direct datsource, BCC must point to the offline data source.

    This can be maintained with the initialDataSourceName property in the SwitchingDataSource component

    Switching database deployment:

    1. say you changed the ProductCatalog repository and you have two datasouces swticha and switchb.live site points to switcha and BCC server points to switchb.

    2. when the project is deployed, it gets first deployed datasouce (switchb) offline

    3. the successful deployment, data sources are enabled, IE. the site points to switchb (recent changes to database on site) and bcc point to switcha.

    4. now the project is deployed to switcha, inorder to synchronize the two datasouces.

    Steps to create the data source switching:

    1 create the first Datasouce

    SwitchingDataSourceA.properties

    $class = atg.nucleus.JNDIReference

    JNDIName = java: / ATGSwitchingDS_A

    2. create the second Datasouce

    SwitchingDataSourceB.properties

    $class = atg.nucleus.JNDIReference

    JNDIName = java: / ATGSwitchingDS_B

    3. create switching jacks datasocue

    SwitchingDataSource.properties

    $class = atg.service.jdbc.SwitchingDataSource

    dataSources =.

    DataSourceA = / atg/dynamo/service/jdbc/SwitchingDataSourceA,

    DataSourceB = / atg/dynamo/service/jdbc/SwitchingDataSourceB

    initialDataSourceName = DataSourceA

    4 see this this componet Datasouce switching in your repository.

    dataSources = / atg/dynamo/service/jdbc/SwitchingDataSource

    Steps to create the data source that is not commutative:

    1 create the first Datasouce

    JTDataSource.properties

    $class = atg.nucleus.JNDIReference

    JNDIName = java: / ATGCoreDS_A

    2 see this this not commutative Datasouce componet in your repository.

    dataSources = / atg/dynamo/service/jdbc/JTDataSource

    Why some repositories are oriented production datasource and some point to the switching of data source?

    For any repsository you can configure datasource, only the problem switching, that is it should be changed with the BCC, otherwise it makes no sense to create data source switching. You can create, but will not be used.

    say for the repository of the order, you will not modify the Bcc, so that it points to datasource (JTDatasource) not switchable by default

    but for the catalog, you can have switching Datasouce as mentioned above the example deployment. If u point to datasource (SwitchingDataSource) switchable.

    Also you can create an unlimited number of switching or not commutative datasources for repositories, just be prepared to manage the it.say you need to create shemaes separated order, catalog, Core (rest of the Production of the ATG)

    and also why we have four different sources of data instead of a

    ATG provides the following:

    (1) SwitchingDataSource:-SwitchingDataSourceA, SwitchingDataSourceB

    by default, switching of data source for production server components.

    (2) JTDataSource

    on the prodction server: default datasource(non-switching) for production server components.

    on the server of newspapers: by default the data source for the publishing server components.

    (3) JTDataSource_production

    on the prodction server: no need, if you wish, can point to same schame pointed to by JTDataSource.

    on the server of newspapers: by default the data source for production server components.

    (4) JTDataSource_staging

    on the server of newspapers: by default the data source for the staging of server components.

    With these ATG also provides FakeXADataSource and DirectJTDataSource.

    As a u referring?

  • Saving and loading of values on a 3rd party ownership of arbitrary data to the plugin?

    Here I am again, asking weird questions.

    I am trying to find a way that I can save and restore values/keyframes on a 3rd party property of the plugin.

    It's easy to do with standard property types as I can just get/set values, but with arbitrary data, I don't see a clear way to do this.

    I can make a preset effect which will restore the correct arbitrary values when applied and use ExecuteScript() to apply the preset.

    But, I prefer a method that does not need to apply a preset, because this solution would require the installation of a special it somethere preset in path predefined AE.

    It is the risk that the user could delete the preset, and then the plugin is broken.


    I thought that maybe I could trick the plugin from 3rd party to give me a copy of the flattened data of arbitrary property by sending PF_Cmd_ARBITRARY_CALLBACK, passes along a custom made PF_ArbParamsExtra with the which_function the PF_Arbitrary_COPY_FUNCvalue.  Now, I have a copy of arbitrary data.  I can use the same trick to get the flat size of data (PF_Arbitrary_FLAT_SIZE_FUNC), flatten the dataset (PF_Arbitrary_FLATTEN_FUNC), and then save the data flattened on the disk in a binary file.

    If it works, I would basically do the opposite to restore data from the disk and apply arbitrary to a new/different instance of will assume it.


    Typing all this, it sounds pretty crazy, and I barely understand the arbitrary data how works.  I'm not even sure I can do the above without things get messy.

    Any ideas on that?  I'm far from base? This is another technique that can do this with techniques less hacky?

    Thank you!

    -Andy

    your assumptions are correct.

    You cannot change add an effect to a layer while your effect is

    ground of appeal.

    It doesn't have the o effect with javascript. It's just, as you say,

    change the scene while working on it.

    How to work around this problem:

    have two plug-ins effect and a CEAP.

    result call the CEAP via a special series (see "order" and)

    samples of "honey" to see how it works) and set some data there.

    do not have the CEAP run changes immediately! store these data only!

    Let the effect finish its execution and return.

    now.

    during the call to idle_hook, the CEAP checks all messages left by the effect.

    new data is present? God. run now that the effect is not in call mi.

    TADA!

    with regard to the getPlatformData,.

    platform commands specific for data such as the path to self

    .dll, but you can just have the effect the data desired in the CEAP

    When it sends the message.

  • Saving and loading of specific orders of façade

    Hello

    I found this example to save the values of front panel control. He used a node invoke with 'Ctrl Val.Get All (not recommended). With a little research, I found that I had to adapt, using the "Ctrl Val.Get All" and by replacing the variant data type. Works of savings (at least, something is saved), but when you try to load the file, nothing works (strangely enough, she has worked with the (outdated) version of the invoke node). So, obviously, I must have done something wrong, but I can't know exactly how I would change the data types. The version that I came with is attached.

    But the main question is this: How do I back up only certain controls? That invoke node records the value of each control, so I think I'll need to use the node 'Get the value', but I don't know how to use it, either. Maybe the problem lies in my first question and I just need to send a string containing all values of control I want, but it's so that you can see where I am going.

    Thank you and have a nice day.

    There is an example that shows the whole process - https://decibel.ni.com/content/docs/DOC-15349

  • Font colors are lost after saving and reopening files with WordPad

    WordPad allows me to change the colors of fonts in my file very well. But, after I've close it and reopen it, the color disappeared and returned to black. The files in question are plain text files.

    Hello MG-10,

    I was not able to reproduce this problem, as my font color has been saved.
    I open Wordpad. Typed in the text, it turns red. Saved the file. Reopen the file and the police were always in red.

    If this isn't what you've tried, please let me know your steps.

    Sincerely,

    Marilyn

  • generated querys SQL are different between DEV and PROD environment

    Hello

    I have a problem with the results of the querys in response, I get different results with the same repository, the same query in Answers (catalog), same OS... between DEV environment and PROD environment. The generated SQL querys are also different.

    The BI vesion is 10.1.3.4

    Any idea on this issue?

    Concerning

    Guillermo

    You have two queries in dev because you use for a table of two logical source:
    * VEIS_HECHOS_ACUMULADOS
    * and VEIS_HECHOS_GLOBAL

    How OBIEE select this table? This tables are selected if:
    * all of the columns in the answer belongs to the source table
    logical level of each source table is defined with the same parameters for the table two source

    This is the case for you?

  • What usage data are PC Companion capture and send without asking?

    Having an automatic update since the previous synchronization of PC to PC companion, I found the other day that the "PC companion settings" is a link that includes a checkbox "send technical data and use anonymously."

    I have several questions:

    Why is - it is enabled by default?

    Why we did not mention of it during the update process?

    Is what data the collection and sending?

    Why is there no data privacy statement associuated with this "option"?

    Given the concerns modern on the security and confidentiality of the data, why was it introduced by a supposedly reputable company in a sneaky manner?

    Well, I can't find anything that could make PC Companion that PC suite could not, so I uninstalled and reinstalled PC suite to my original upload. End of the story!

  • 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.

  • Table does not work correctly between LabView and TestStand

    I'm doing a TestStand program that reads data from a LabView VI.

    If I run the VI in LabView, it works perfectly well and generates a table with 18 points in length, the first 3 are numbers between 0 and 10 and the rest being-1 as I intended. Re-run the VI causes the re - initialize correctly and I get a new table that also meets my specifications.

    When I run the VI of TestStand, it works fine once, producing a table with 18 points, the first 3 are numbers between 0 and 10, and the rest is-1.

    If I run the VI in TestStand once again it increases the length of array in 18 each time. In so doing, it fails to write the new 3 numbers and just add - 1 in table 18 times. If I restart TestStand will work fine once more, he repeats the error if I re - run the VI. I don't understand why this is happening.

    I have re-product the error in a separate VI and the order, and I have attached an example in this post. The VI contains all the necessary information (if not, please say so and I will correct it), and TestStand sequence is configured to put all results, I would find useful in the report (as additional results).

    Your problem is your VI.   Specifically the comment nodes.  They initialize on the first call.  TestStand retains the VI in memory.  So when the VI is called again, the comments always nodes have their last value.  You will get the same results if you have VI your ArrayBuild.vi twice appealed.

    The way you use the feedback nodes, they really replace with Shift Registers.  I like your comment nodes, but since you pass the value of the node in the loop, the SHIFT registers are much more appropriate.  Just make sure you initialize your Shift Registers.

  • Follow-up - what kind of data are followed?

    Hello

    I have to wright a policy of confidentiality for the app and I wonder what kind of data are followed by the app.

    Their personal data are followed?

    And there is no option to disable the default trace, with the exception of the opt-in option?

    THX!

    Analytics is basic analytical or analytical Site catalyst, different data are followed. Read the help guide Analytics to understand what is followed. http://www.Adobe.com/devnet/digitalpublishingsuite/analytics.html

    Yes, analytical monitoring is enabled by default. Activation of opt-in option in the app Builder is the way to let the user choose whether to follow-up.

  • My date and time settings are set in Egypt and whenever updates of the laptop with microsoft server time, it increases of 1 h.

    My date and time settings are set in Egypt and whenever updates of the laptop with microsoft server time, it increases of 1 h.
    Recently in Egypt, changes of daylight has been cancelled and I guess that's the cause of the problem!
    Any ideas?

    If time was recently cancelled, you can go to your control panel:
    Panel-> data and time-zone (tab) >
    and uncheck the "automatically adjust clock for daylight saving time.

    Otherwise, you probably need to adjust your zone settings on your computer using Microsoft time zone Editor.

    TZEdit: <> http://download.microsoft.com/download/5/8/a/58a208b7-7dc7-4bc7-8357-28e29cdac52f/tzedit.exe >

    HTH,
    JW

Maybe you are looking for