Labview ne m'exécute pas une partie du code

Bonjour,
J'ai eu un problème très bizare et grave pour mon cas d'application. 
Il y a une partie dans mon code (voir photo jointe) qui parfois Labview ne l'exécute pas, je dis bien parfois car je l'ai testé et je l'ai mis en place et ça marche.
Mais aujourd'huui c'ai eu ce problème, normalement quand il arrive à cette étape, il doit décrementer le nombre qu'il lit déjà à partir de la fonction globale fonctionnelle et après il enregistre la nouvelle valeur décrémenté dans la FGV (remplace l'ancienne par la nouvelle décrèmentée). Ce qui est bizar est qu'il a bien modifé la partie qui traite le booléen mais n'a pas traité la partie qui traite le nombre entier!!
en plus j'ai remarqué que parfois labview dépasse une étape dans une séquence empilée (par exemple passe de l'étape 1 à 3 directement) parfois je suis obligé de le forcer pour passer à toutes les étapes, est-ce c'est normale??????????
Merci bien pour votre aide c'est vraiment urgent! 
Pièces jointes :
manque execution labview.PNG ‏30 KB

La Structure Séquence Empilées !!!! ... le top du top !  (j'en rêve)   
la structure "séquence empilée" est une abomination qui ne devrait même pas exister.
c'est la meilleure façon de créer du code illisible et spaghetti. (et du code anti-labview)
Dans un Langage dont la colonne vertébrale  est le "flux de donnée", le mot "séquence" ne devrait même pas être prononcé.
ce mot devrait faire crasher Labview   

Similar Messages

  • Une partie de programme ne s'exécute pas

    Bonjour à tous;
    J'ai réalisé un programme pour mésurer la vitesse de phase à partir des fréquences de résonance. Mon problème est le suivant: lorsque j'exécute celui-ci je remarque qu'une partie du programme n'est pas exécutée et pourtant il ne y a pas d'erreurs et meme il ne se bloque pas. En fait, j'arrive pas à croire ce défaut , il m'apparait bizarre. Je travaille sous labview 6i dans l'environnement Windows 95 car la carte d'acquisition de données de NI exige Windows 95. S'il vous plait si vous avez une idée, n'hésitez pas à la transmettre.
    Cordialement;

    Désolé, mais au lieu d'une réponse, voici de nouvelles questions :
    Quel est le défaut exact ?
    La boucle FOR ne s'exécute jamais ?
    La boucle FOR ne s'exécute pas le nombre de fois attendu ?
    La condition "compris entre 1E+7 et 2E+7" n'est jamais vraie ?
    Autre chose ?
    Et puis :
    Quel est le contenu de la séquence 0 de la séquence multiple ? Pourriez-vous également joindre une capture d'écran ?
    Quelle est la taille du tableau (nombre d'éléments) qui entre dans la boucle FOR ?
    Quelle est la valeur du I32 qui sort du VI de recherche des pics ?
    Je suppose que le contenu de la condition Faux est un simple fil puisque dans ce cas l'élément en cours ne doit pas être ajouté au tableau. Prière de confirmer.
    Dans l'attente de vos réponses qui clarifieront les choses et nous permettront de vous aider de manière ciblée, je vous invite à lire le paragraphe Auto-Indexing Loops de ce document. Vous y apprendrez qu'en utilisant l'auto-indexage (comme dans votre code) il ne faut pas relier l'entrée N de la boucle FOR car le nombre d'itérations à réaliser est alors défini par le nombre d'éléments du tableau auto-indexé. Faites des essais pour voir ce qui se passe en utilisant l'auto-indexage et en reliant N et en définissant celui-ci à un nombre inférieur, égal et supérieur au nombre d'éléments du tableau. Si le nombre d'éléments de votre tableau devait différer du nombre de pics trouvés (d'où la nécessité de voir le code de la séquence 0 et mes autres questions), la boucle FOR pourrait ne pas s'exécuter le nombre de fois attendu.

  • Exécuter une partie du programme une seul fois lors du premier lancement

    Bonjour un tous!
    Dans le cadre d'un stage, je suis amené à gérer un spectrophotomètre avec Labview.
    J'aimerais qu'une partie de mon programme ne s'exécute que lors de la première exécution du programme.
    En fait, je désire que lors de la première exécution, le spectro fasse un auto-zéro et que ensuite il fasse ses mesures normalement.
    J'ai testé avec l'outil "premier appel" et une boucle condition mais cela ne fonctionne pas. Quand le programme tourne en boucle, il concidère à chaque fois que c'est la première exécution. Je suppose donc que j'ai mal compris cette fonction.
    Je cherche donc un moyen d'arriver à mes fins.
    Voivi le programme (Labview 2011)
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Mesure spectro.vi ‏32 KB

    Bonjour,
    J'imagine que pour exécuter votre code en continu, vous cliquez sur la double flèche d'exécution qui lance l'exécution du VI en continu. L'utilisation de cette méthode d'exécution revient à lancer le VI à la suite manuellement, autrement dit, le VI s'arrête et se relance entre chaque exécution.
    Il ne faut utiliser cette flèche qu'a des fin de débugage de votre application, par pour lancer une application en continue.
    Dans votre cas, la fonction premier appel renvoi toujours vrai, car le VI est arrêté et relancé donc, oui, c'est toujours un premier appel. Il faut rajouter une boucle while (ou tant que dans votre code pour exécuter en continue la mesure une fois l'initialisation terminée.
    Si joint votre VI modifié. C'est une modification très rapide et pas forcément optimisée, mais pour illustré le principe. Ca devrait tout de même mieux fonctionner pour votre application.
    On configure la ressource, on fait l'initialisation, puis on fait la mesure en continue jusqu'à un appui sur stop.
    J'ai placé l'enregistrement dans la boucle, la encore, je ne sais pas si c'est ce que vous souhaitez vraiment faire. Le but était de vous montrer comment utiliser la boucle while.
    Cordialement
    .mesLeft{float:left} .mesInfo{border-left:solid 1px #989898;font-size:x-small;color:#989898} .mesLogo{float:right;opacity:0.18} .mesLogo:hover{opacity:0.9}
    Maxime R.  
      CLD - Certified LabVIEW Developer / Développeur LabVIEW Certifié  
      CLAD - Certified LabVIEW Associate Developer   
    Pièces jointes :
    Mesure spectro 2.vi ‏20 KB

  • Comment changer le format d'une partie de texte dans un contrôle Texte Message en CVI

    Bonjour
    Après avoir essayé plusieurs méthode pour modifier le format d'une partie de texte afficher dans un contrôle Text message sous labwindows.
    ex : Je veux mettre en gras ou en couleur une partie du texte affiche
    Je me permets de vous poser cette question.
    Peut - on faire ceci ? J'ai vu que l'on peut utiliser une richTextBox mais je n'arrive pas à charger l'activeX pemettant d'intégrer ce control.
    Merci d'avance
    Cordialement

    I'm not exactly sure that I have corretly understood your question, but it seems to me that you want to have part of the text in a textbox with different attributes (color or boldness or so). This in not possible with regular textbox control, which holds only one set of attributes valid for the whole control.
    I am afraid the richtextbox is the only valid control for such a matter.
    As a last note, here the link to the french board of the forums where french-speaking users can discuss in their native language.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How do you cut out the part of an image in a photo?

    How do you cut out a part of an image on a photo that you have added to Pages. For example, if I have added a picture of a giraffe to Pages how would I cut out the giraffe from the image and get rid of the rest of the image

    You can use the instant alpha tool to make the background transparent.
    FYI: Pages is part of iWork, not iLife.

  • I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if I

    I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info/start time and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if If I change the start time on one it will change it on all of them.

    In your library, right-click the song you want to edit.
    select "get info".
    go to "options" and select the start and stop times for your first section of the song.
    click "OK".
    Find the shortened version of the song in your library. It may take a minute for it to show up. right click it again and select "create (????) version". (the ???? is different for different formats).
    The library will spit out a new, second version of the song which you can rename. I suggest you use the original title and add a 1 to the end.
    Now you can go back to the other version and repeat the process with a different  start/stop time.
    Once you are done editing, you can burn all of your versions to a disk, just make sure your interval time is zero so there are no gaps between edits.
    To keep the orginal song on your library, just go back to the original and put the start/stop times back to the original settings.

  • What product do I need to easily cut and paste parts of a photo?

    What product do I need to EASILY cut and paste parts of a photo

    Hi there
    Try going through this step-by-step guide on how to select and move parts of an image: http://forums.adobe.com/docs/DOC-2781

  • I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide? can this be automated?

    I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide?
    can this be automated?

    Not in Illustrator. You will need a CAD program or similar where you can dial in such manufacturing criteria.
    Mylenium

  • Mon Iphone ayant des soucis de plantage d'app, je l'ai restauré ce w/e. Je suis sous mac OS X 10.4.11 et mon Iphone 3GS sous firmware 4.1. Or, à la restauration du portable, une partie de mes applications sont devenues inaccessibles (Facebook, eurosport,

    Mon Iphone ayant des soucis de plantage d'app, je l'ai restauré ce w/e. Je suis sous mac OS X 10.4.11 et mon Iphone 3GS sous firmware 4.1. Or, à la restauration du portable, une partie de mes applications sont devenues inaccessibles (Facebook, eurosport, amazon...), car ces app fonctionnent avec la version 4.3.
    Que puis-je faire, puisque mon mac me dit que sa version d'Itunes est l'actuelle et que je ne peux télécharger sur l'app store des versions compatibles???

  • I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide?

    I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide?
    can this be automated?

    do you mean Anchor Point to Anchor Point should be less than 7mm? A Script could check segment lengths, on demand, not automatically as you draw.

  • My Deskjet 1000 J110 series is cutting off bottom parts of sentences?

    My Deskjet 1000 J110 series is cutting off bottom parts of sentences. I have not had this problem in the past. It only does it to a few sentences & my headers. 
    What could be causing this and what can I do about it?

    Hi IlianaGrace96,
    There are several things that can cause your problem.  I would start by reviewing the following HP Consumer Support document:
    Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems
    1. Perform a hard reset on the printer. Unplug the power cord from the back.  Leave it out for 30 seconds and then plug it back in.
    2. Use the automated tool to align the cartridges.
    3. Use the automated tool to clean the cartridges.
    4. Manually clean the cartridges with a lint free cloth and water.
    5. Try soaking your printheads in semi warm water for about 5 minutes.
    I hope this helps.
    Regards,
    BethenyF
    Click the Thumbs up to say thanks. Mark Accepted Solution if the solution solves your issue.

  • Pourquoi les mises à jour ne disparaissent-elles pas une fois qu'elles sont faites?  Elles demeurent dans la liste et c'est déplaisant.  Merci !!!!

    Pourquoi les mises à jour ne disparaissent-elles pas une fois qu'elles sont faites?  Elles demeurent dans la liste et c'est déplaisant.  Merci !!!!

    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • Is the labview 8.2 compatible with FPGA (altera) thats ordering code is DK-DSP-3C120N ?

    is the labview 8.2 compatible with FPGA (altera) thats  ordering code is DK-DSP-3C120N ?

    Hey Mouath,
    The FPGA module only supports the following:
    Virtex-II 3000 
    Virtex-II 1000 
    Spartan-3 1000 
    Spartan-3 2000 
    Virtex-5 LX30 
    Virtex-5 LX50 
    Virtex-5 LX85
    Please refer to FPGAs - Under the Hood for further information.
    Aashish M
    Applications Engineer
    National Instruments
    http://www.ni.com/support/

  • How to add code in labview exe so that exe don't depend on code

    Hey everybody,
    I am using labview 8.5. I build exe of my code using snapshot folders. After solving conflicts when exe is created. I remove the code from disk but this gives error when exe is executed. I want to build a exe that don't depend on code. I mean i want to get rid of code so that only exe is enough to execute.
    timmy
    Attachments:
    untitled.PNG ‏129 KB

    My main VI is calling many subVIs. Except for these subvis different modules code is present in folders, these folders also include ini files and text based command files. Now when i add these code folders as snapshot and after solving for errors and conflicts. I add these folders to always included section and my main VI as source code. When i build for exe, there is no errors and code exe is generated. This exe works fine if code is present at disk. If i remove the code from disk the exe stops proper execution and gives error. Please tellme if there is any special considerations for making exe that don't depend on code.
    timmy
    Attachments:
    projrct.PNG ‏162 KB
    prjt.PNG ‏154 KB

  • Help needed with part of code

    Hi all,
    Need some advice on how to write part of this code to print cost and retail!SEE ASTERISKS**
    I know its smoething to with this part of code:-
    System.out.println("Part No." +"\t"+ "Quantity." +"\t"+ "Cost Price." +"\t"+ "Retail Price.");
    System.out.println(input_part +"\t"+ "\t" + qty[input_part-1] + "\n");
    Just dont know how to add the cost and retail to printout!!
    Any help appreciated
    Paul
    import java.io.*;
    import B102.*;
    public class ass2{
    public static void main(String[] args) throws IOException{
    char more='y';
    while(more=='y'){
    int i;
    int numrecords = 0; int size = 0;
    int quantity = 0;int input_part = 0;
    String line;
    String filename;
    int qty[];     
    int partno[];
    double cost[];
    double retail[];
    // Get the name of the input file
    System.out.print("Enter the name of the input file: ");
    filename = Keybd.in.readLine();
    // Open the file for reading
    BufferedReader in = new BufferedReader(new FileReader(filename));
    // read the first line of the file to determine the size of the array
    line = in.readLine();
    numrecords = Integer.parseInt(line.trim());
    // create the qty array with the inputed size
    qty = new int[numrecords];
    partno = new int[numrecords];
    cost = new double[numrecords];
    retail = new double[numrecords];
    /* Read part numbers */
    for(i = 0; i < numrecords; i++){
    line = in.readLine();
    partno[i] = Integer.parseInt(line.trim());
    /* Read cost price */
    for(i = 0; i < numrecords; i++) {
    line = in.readLine();
    cost[i] = Double.parseDouble(line.trim());
    /* Read retail price */
    for(i = 0; i < numrecords; i++){
    line = in.readLine();
    retail[i] = Double.parseDouble(line.trim());
    /* Read quantity */
    for(i = 0; i < numrecords; i++){
    line = in.readLine();
    qty[i] = Integer.parseInt(line.trim());
    // close the file
    try{
    in.close();
    }catch (IOException iox){
    System.out.println("problem closing input file");
    // the file is now closed
    System.out.print("Enter part number: ");
    input_part = Keybd.in.readInt();
    // get a quantity
    System.out.print("Enter quantity: ");
    quantity = Keybd.in.readInt();
    // test if there is sufficient stock, if not print message
    if(quantity > qty[input_part-1])
    System.out.println("Not enough stock!");
    else
    System.out.println("Stock level: "+qty[input_part-1]);
    //output contents of arrays
    for(i=0;i<numrecords;i++){
    System.out.print(partno[i]+"\t");
    System.out.print(cost[i]+"\t");
    System.out.print(retail[i]+"\t");
    System.out.print(qty[i]+"\t");
    System.out.println();
    // output
    System.out.println("You entered part number: "+input_part);
    System.out.println("You entered quantity: "+quantity);
    System.out.println("Part No." +"\t"+ "Quantity." +"\t"+ "Cost Price." +"\t"+ "Retail Price.");
    System.out.println(input_part +"\t"+ "\t" + qty[input_part-1] + "\n");
    System.out.println("Do you wish to make another purchase? (y) for yes or any other key to quit.");
    more=Keybd.in.readChar();

    2 things:
    1. Always surround your code with [ code] [ /code] blocks (without the spaces) - otherwise no one can read what you are doing.
    2. Will the following work for you? From your description it is pretty much impossible to tell what you are actually having problems with...
    System.out.println("Part No." +"\t"+ "Quantity." +"\t"+ "Cost Price." +"\t"+ "Retail Price.");
    System.out.println(input_part +"\t"+ "\t" + qty[input_part-1] + "\t" + cost[input_part-1] + "\t" + retail[input_part-1] + "\n");

Maybe you are looking for

  • Display data in excel

    Hi, I have program which display data in Excel layout of ALV loaded from internal table.. It means that in sap i received excel sheet with all its functionality. The problem is that sometimes there are missed some rows with data. Did someone meet wit

  • Why doesn´t the plugins show up after installation and restart?

    In previous versions I have never had plugin problems, but now I have updated to version 13 of Elements and even after several reinstallations of both this program and the plugins these never show up. The possibility to choose a map manually works, b

  • How to access more than one catalog from ECC

    We use the catalogs in SRM from ECC, ME21N. But we are only able to access one catalog. Is there any way to access different catalogs for the users. We have set up different catalogs in customizing but are not able to selcet them. At the moment we ha

  • No startup after update from 10.6.3. to 10.6.8

    Hey there, I started with the 10.5.8 system combined with an bootcamp installation of WIN 7 and installed a complete clean (formated whole disk with help of boot-DVD in front of installation) Mac OS X 10.6.3 system. After installation it works fine.

  • Bought brand new Toshiba A500 laptop, but no Windows 7-64 CD/DVD

    Bought brand new Toshiba A500 laptop, but no Windows 7-64 CD/DVD's came with it, just the programs installed on the computer. Since I have been a long-time Dell customer, where all programs installed also come with various CDs/DVDs, I am rather surpr