Strange run-time problem

I have a problem in my vi. When the vi loads up, everything seems to work fine, however I have two radio buttons at the top of the vi, and when I use them to select something my vi seems to freeze up. I've tried all kinds of debugging, and I can't find the error. I've also tried to eliminate all race conditions. Could someone please help me find the problem. Thanks!
Attachments:
UUT_io_setup_distrib.llb ‏329 KB

Hi Marshall
Your Problem Seems to Stem from the Fact that you have two Event Structures in One Loop. If you look up Caveats and Recommendations under event Structure in Labview Help, there is a Paragraph "Avoid Using two Event Structures in One Loop".
I took your Vi and Did the following Experiments.
1. Verified that the Vi does Hang as Claimed.
2. I Put the Tab control at "TTL" and then Deleted the Event Structure form the case "RS232" and than Ran your Vi. It works fine.
3. Instead of deleting the Event Structure totally, I deleted the event cases which are duplicated in the two event structures. "Yes" Value Change, "No" Value Change event and "Cancel" Event form event Structure under the RS232 Case. Left the timeout Case as is. I ran the Vi Again it Works Fine.
I believe - The Problem is this. Each Event Structure waits for events it has been programmed for. The event structures are in the same loop. The Event structures themselves have no way of knowing that they are embedded in a case structure and only one of them needs to execute. So after the First event the Program kind of hangs as the second Event structure Waits indefinitely for the Program to Pass execution to it.
So the Fourth Experiment -
4. I Used a Local Variable to Change the Tab to RS232 if I was in TTL and to TTL from RS232 if I was in RS232. This Local Vaiables are under the Yes Value Changed Event And Now I checked the Program, If Clicked Yes The TTL Case Executes Changing it and Correspondingly Changing the NO value, then it Changes the Tab Value So on the Next Iteration of While Loop my Program is in RS232 Case and Event Structure Executes and puts the Tab Back to RS232. In effect I have Made My Program Go through Both Event Structures This Works Everytime Only when I click on YES. I click on NO and Program Hangs as I did Not Built the Same Functionality for this case.
The Event Structures Cache the Events they have been Programmed for andthe First Event Must be Handled Before A second Event can take Place. In your Case One Event is in two Structures and at any given time One of these Structures executes. The Other Structure Waits and Inhibits furthur interaction till the Event generated can be handled by it.
On a Side Note. It is Advisable to Create an Event Structure and Embed your Cases within them And Also have Only One Event Node to Handle One Event Such as "YEs" Value Change. So you know what is Going on. and easy to Maintain Code. Also It will Help If you could Club Similar Controls in an Array and handle them that way rather than individually
I Hope I am clear in my explanation. I hope this is the reasoning why Your Program Hangs. I have attached your Vis slightly modified for you to see.
Good Luck!!
Good Luck!
Mache
Attachments:
UUT_io_setup_distrib.llb ‏329 KB

Similar Messages

  • Jar run time problem

    Hi,
    I have an application in SWING where thumbnail images are being created at runtime and displayed in a ListCellRenderer. This is mainly used as a history feature where the user can click on that image and retrieve back the information.
    The problem is: when I run my code without an IDE it works fine as I am giving relative path names at all the places for storing the images. However, when I make a jar file, it is not able to read those images generated at run time.
    Is there a way to read runtime created files outside the jar file?
    Can someone help?
    Thanks in advance........

    sir,
    thanks for your reply.
    Again I give correct class path in Manifest.txt's
    Main-Class.
    ie., I am creating my mainclass as mainEMS.java and
    its .class file is lacated in D:/ram/classes/sdff
    folder. So I am giving the Manifest.txt ,the main
    class as " Main-Class: ram.classes.sdff.mainEMS
    fter that i give enter.
    then create the jar file.
    but, after creating jar file, it will again show,
    "Failed to load Main-Class manifest attribute from
    D:/kbs.jar "
    what's my problem.Does the file META-INF/Manifest.mf containt the Main-Class entry or do you have it only in Manifest.txt... there is a huge difference.

  • Adding panel into JDialog at run time problem

    Hi ,
    I am adding one component at a time into the jdialog at run time.
    What I do , when I launch jdialog instance first time I added one
    component into the jdialog. when OI press next button it removes this
    component and adding next one , but the problem is that is is not showing in the jdialog.
    Please give me any idea that
    How I can add component into jdialog at run time.
    Thaks In Advance.
    - vikas

    Hello,
    without source-code its difficult to understand where your problem is. The following sample code works 'fine':
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class AddCompoDialog extends JDialog {
         int compoCounter;
         public AddCompoDialog(){
              setLocationRelativeTo(null);
              setSize(300,300);
              JPanel mainPanel=new JPanel(new BorderLayout());
              JPanel buttonPanel =new JPanel();
              final JPanel compoPanel=new JPanel(new GridLayout(10,10));
              JButton newCompo=new JButton("add new Component");
              newCompo.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e){
                        compoPanel.add(new JLabel("Compo #"+ ++compoCounter));
                        compoPanel.revalidate(); //Dont forget to relayout your container
              buttonPanel.add(newCompo);
              JButton close=new JButton("close Dialog");
              close.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e) {
                        dispose();
              buttonPanel.add(close);
              mainPanel.add(buttonPanel,BorderLayout.NORTH);
              mainPanel.add(compoPanel);
              getContentPane().add(new JScrollPane(mainPanel));
         public static void main(String[] params) {
              new AddCompoDialog().setVisible(true);
    }Regards,
    Tim

  • Strange track times problem

    ok this is a weird one. i have a song i imported from a CD. its in AAC format. ive listened to it many times on iTunes and my ipod. tonight i was listening on my ipod and it cut off before the end of the song. its not that it cut off and there was still time left in the song. somehow the song just wasnt all there. it had been ok the other times i listened to it. when i got home, i looked at the song on itunes. it had the same track time on itunes, the incorrect time. but when i clicked on it to play it, the time corrected to the proper time and then when i synced my ipod, it fixed the file. what the heck!?

    Hi again,
    We're talking the length in minutes. Strangely it's only occurred on the last batch of CDs my friend did for me ( well I'm 99% sure of that ) and he's only got a CD recorder not a PC recordable drive. This last batch was done on a new ( albeit s/h ) CD recorder. I've imported other CDs burned from PCs etc and all have been ok. I've even checked copies I've done using my CD recorder and the times have been correct when imported into iTunes.
    As you suggest, I might try and use Roxio to make a CD of the 'faulty' run time tracks and see if what happens when I then import to iTunes from them.
    Thanks again for your help.
    SimonJ32

  • Strange Run-time behavior of message mapping

    Dear All,
    This is very urgent
    I have 2 step mapping in my synchronous(ABAP proxy to HTTP_AAE) interface, first step is graphical mapping and second step is java mapping. After both the mapping I am able to get my desired structure by bank(third party), below is what I am getting in testing tab in Operation mapping after 2 step mapping, which is expected.
    strXmldata=<?xml version="1.0" encoding="UTF-8"?><PaymentInfoMessage><PaymentInfoRequest><CompanyCode>TEST</CompanyCode><BankCode>RIBLSARI</BankCode><StartDate>2014-01-21T00:00:00</StartDate><EndDate>2014-01-21T00:00:00</EndDate><TransactionType>940</TransactionType></PaymentInfoRequest></PaymentInfoMessage>
    However, bank is receiving in reverse, I mean the string strXmldata is coming at last. see the below
    <?xml version="1.0" encoding="UTF-8"?><PaymentInfoMessage><PaymentInfoRequest><CompanyCode>TEST</CompanyCode><BankCode>RIBLSARI</BankCode><StartDate>2014-01-21T00:00:00</StartDate><EndDate>2014-01-21T00:00:00</EndDate><TransactionType>940</TransactionType></PaymentInfoRequest></PaymentInfoMessage>=strXmldata
    When I check the trace in SXMB_MONI in the pipelines trace under "request message mapping" it has been reversed by system at runtime.
    <Trace level="2" type="T">Call method execute of the application Java mapping com.sap.xi.tf._MM_Request_MT940_</Trace>  
    <Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>  
    <Trace level="3" type="T">Document start</Trace>  
    <Trace level="3" type="T">Start tag [MT_HTTPReq_MT940]</Trace>  
    <Trace level="3" type="T">Put value [<?xml version="1.0" encoding="UTF-8"?><PaymentInfoMessage><PaymentInfoRequest><CompanyCode>TEST</CompanyCode><BankCode>RIBLSARI</BankCode><StartDate>2014-01-21T00:00:00</StartDate><EndDate>2014-01-21T00:00:00</EndDate><TransactionType>940</TransactionType></PaymentInfoRequest></PaymentInfoMessage>=strXmldata]</Trace>
    Could anyone please let me know why this reversing and putting the string strXmldata at last.
    Please this is very urgent, please help me as soon as you can.
    Thanks,
    Farhan

    Hi Farhan,
    The issue is because of run time behavior but you can try to deploy the java or XSLT map in server and use in receiver adapter (as adapter module).
    How to Create Modules for the J2EE Adapter Engine (NW 2004)
    regards,
    Harish

  • Applet run time problem

    i complie this applet but at run time "I/O EXCEPTION(the system can not find the file speciied)
    plz help
    import java.applet.*;
    import java.awt.*;
    import java.lang.String.*;
    class Hello extends Applet
    public void paint(Graphics g)
    g.drawString("Hello java",20,30);
    </applet code="Hello" height=100 width=100>
    </applet>
    */

    http://java.sun.com/docs/books/tutorial/deployment/applet/index.html

  • URGENT run time problems

    I am having the following problem with JDeveloper when i try to run a project. Any help would be appreciated :-
    I have a project that contains a JSP page and several .java files. The first time that i run the project, everything works fine, the project runs and is diplayed in IE without any problems. But any subsequent times that i try to the project i get the following error displaying in the JDeveloper message box :-
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    I have tryed terminating the server between each run but the problem still occurs. The only way to get the project to run again is to reboot my PC. Therefore i am having to reboot my PC everytime before i run a project. Any ideas on how to stop this would be appreciated.

    Hi, we have the same problem since we installed JDEV 9.0.3.1035 (no such problem in 9.0.2)
    Terminating the OC4J Server does not eliminate the problem. We ran our project, shut down the browser, terminated the embedded OC4J server and get the following when we try to run it again:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Dhttp.proxyHost=DELL -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8888, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized

  • URGENT,,Form Run time problem

    Hi all,
    I just wondering whether you can assist me with the problem I have with running a form.
    When I try to Program Run Form, IE page opens and I have this error msg:
    "Bad Gateway
    The following error occurred:
    The IP address was not found during the DNS lookup. Contact your system administrator. (DNS_NO_DATA)
    -------------------------------------------------------------------Please contact the administrator."
    when I start the OC4J instance,
    It only gives me : "Oracle9iAS (9.0.2.0.0) Containers for J2EE
    initialized"
    I am using Window NT and Oracle 9i Database release 2 and Oracle 9i Developer suite Release 2
    I really appreciate if you can give me some assistance especially in setting up the DNS.
    Thanks
    Regards,
    Silva Hiendra

    The problem seems to be with privileges on the machine running Forms. This is what the online doc said about FRM-30087
    Cause: You lack privileges in the specified directory, or you do not have the disk space required.
    Action: Contact your DBA to make sure you have the access privileges you need.
    Hope this helps
    suvarna

  • Oracle Forms 10g run time problem

    Hello.
    I installed Oracle Dev 10g and I'm trying to use Oracle Forms.
    I configured all files like this:
    [steps in other post]
    1. Install the Jinitiator
    location: <devsuitehome>/jinit/jinit.exe
    2. edit the following files:
    a. <devsuitehome>/forms90/server/default.env
    where you set forms90_path=add your path to your library files (*.pll)
    b. <devsuitehome>/forms90/server/formsweb.cfg
    where you set workingDirectory=path to your *.fmx files
    3. at Forms Builder go to Edit/Preferences/Runtime
    then at the Application Server URL click "Reset to Default"
    4. before attempting to run your forms, run "Start OC4J Instance" first
    start/programs/oracle developer suite/forms developer/start oc4j instance
    After this, when I try to run the form, I don't get any error, but the browser opens and does nothing! Some times appears a small form to acces the data base, other don't, but it always stops!!
    Any ideas?!?
    Many thanks,
    Nuno

    Might also be worth turningon the Jinit console (you can do this from your windows Control Panel). And set the trace level to 5 (just press 5 when the jinit console appears).
    Then check error messages.
    Regards
    Grant

  • Java Run-Time problems

    I am new to Java and am trying to write a simple program.
    The test class will instantiate an object of the "house" class which will in turn contain an array of 20 objects of the "player" class.
    Compiles with no errors or warnings, but gives an immediate:
    Exception in thread "main" java.lang.NullPointerException at test.main(test.java:6)
    test.java
    public class test
            private static house h;
            public static void main(String args[])
                    h.players[3].setName("john");
    }house.java
    public class house
            public player[] players = new player[20];
    }player.java
    public class player
            private static String name;
            public static void setName(String n)
                    name = n;
    }What seems to be the problem? To my untrained eyes I can't find any errors.

    alphacoder wrote:
    Thanks for the help. It fixed my problem.Good to know.
    How do I solve the 20 null references problem?That depends soley on what you want your class to do.
    Do I just initialize all 20 references in the house constructor?If you want it to always reference 20 persons, then do so.
    Alternatively you could track how many persons are currently in there and only add a new one when addPerson() is called (or something similar).
    Also, you should avoid this kind of direct access to other classes member variables, it's against encapsulation (that's probably something you'll learn later in the course/book/tutorial, but I'd like to mention it).

  • Dropdownbykey at run time problem

    Hi..
    i am creating the node and attaching attribute which has value set.
    i am binding the attribute to a dropdown key.
    when i select the values in dropdown, and in actions method if i dont perform any operations. It is working fine.
    when i select the values in dropdown, and in actions method if  perform any operations. i am not getting the selected value in dd.
    please help me..
    Thanks

    Hi Vimalraj Madhavan ,
               Usually the selected value will stay there in the drop down even after doing any action. what you can try is in youcode some where you might be clearing the attribute thats binded to the dropdown,
    you can put a debugger on the action you are triggering and check the code.
    or some where you are again calling the code to fill the value set, you can i think better check the code in modify view.
    the same problem will be there if you are doing the selection of a value in ddk and doing any other action (other than ddk action), i think
    Regards
    Sarath

  • Run time problem

    Hi !
    I'm new with Java and it will drive me nuts.
    I've to files in F:\javap\Familias:
    ModFam.java - where I've the main function
    Familias.java - some other classes and methods
    each file have the line:
    package Familias; at line 1.
    Ok.
    I compiled from f:\javap using:
    java Familias\*.java
    No errors and I've 3 class files in f:\javap\Familias:
    - ModFam.class
    - ModFam$1.class
    - Familias.class
    First question: what is the $1.class file ?
    Now I want to run the application from f:\javap\Familias as follows:
    javac -cp . Familias.ModFam
    and I get the message: Exception in thread "main" java.lang.NoClassDefFoundError: Familias/ModFam
    Second question: Why ? How should I run the program ?
    Thanks in advance
    <jl>

    Since you have your classes in a package, you class files has to be in a directory called Familias, and the CLASSPATH should be set to just before your Familias directory.
    Just compile as
    javac -d . *.java
    -d option just says where you want your source files, and it will also create the directory Familias for you.
    Then you run it with java, not javac, as:
    java -classpath . Familias.ModFam
    Btw, you have a package called Familias, and a class called Familias. The naming convention says that package names should start with lower case letter, so to avoid confusion, it would be better to rename your package to familias.
    I'm not even sure you can run your code now, because Familias.ModFam could mean either the class ModFam in the package Familias, or the inner class ModFam in the class Familias. I hope it will check for the package first.

  • Run time error cRIO

    Hi,
    I am getting a strange run-time error when deploying my RT vi to cRIO 9074,  see the attched for more details, here are  some of the SW that I have in my host PC and RT target ( there are more that are not listed):
    PC                                                     cRIO 9074
    Windows xp                                        Labview RT 10.0
    Labview 2010 and Real-Time 10.0.0       NI-VISA 5.0
    Labview Run-Time 2010 SP1                 NI-RIO 3.5.1
    NI-RIO 3.5.1
    my entire labview program crashes after receiving the error and I do not have any fix for it. Does any one know the root cause of this error?
    Thanks,
    Attachments:
    runtime-error.JPG ‏210 KB

    Hi Che,
    Thanks for the reply , I upgraded to RIO 3.6.1 ( I already had VISA 5.0.3 in my host PC), but the run time error is still there . the attached shows more details of what I am geting after traying to connect RT via LabVIEW .
    here is more backgrond on this issue:
    I have been doing several upgrades uninstall/reinstall even one time format the PC, but the error goes away for a while and comes back agine! so  I am not able to reproduce the fault in a consistent manner, yesterday I was advised to upgarde my C++ visual time from "http://support.microsoft.com/kb/259403" so I uplodaed 2010 dll files in system32 folder and it wokred fine till today that crashed again. is there any way that we can narrow down the scope of the root cause to Windows/ LVRT or drivers?
    Thank you.
    Attachments:
    error1.JPG ‏153 KB

  • Problems with Sequential Model in Run-Time. OI Crashes.

    I would like to ask for help for the following Problem:
    I am trying to run an Operator Interface which I created based on the TS Simple OI.
    TestStand 3.1f1
    LabVIEW 7.1.1
    The sequence I am running is using a few file Globals for data exchange between the steps and calling the main sequence in another sequence file, based on the UUT barcode. The barcode resolves the sequence file name, where the appropriate UUT test sequence is. Most of the Steps are Express VIs.
    Basically: The main sequence file executes, its defines the UUT to be tested, calls the MainSequence in the appropriate sequence file which after the tests returns. The main sequence file than ends the test, a report is generated.
    Everything runs perfect in the TestStand Development Environment (Sequence Editor), no problem at all. But with the Operator Interface I am having great problems.
    It is very strange, but after the second Single Pass (I am always using this entry point with the sequential Model) the Operator Interface crashes: *always*, on the 3rd (!) run I get the following Error:
    Run-Time Error
    Details: No details available
    Error Code:-17502; System Level Exception.
    Location: Step 'Send Model State Message: 'Initializing'' of sequence 'Single Pass' in 'SequentialModel.Seq'
    Step Description: Call Thread.PostUIMessageEx
    Step Status: Error
    This is a Error originated from the Sequential Model sequence. After this I get different behaviors, sometimes memory access crashes, sometimes LabVIEW.exe Aplication must be shut down, the OI won't work again.
    The same Problem hapens if I use the standard TestStand Simple OI or the Full-Featured OI !!! But only if I start these OIs via LabVIEW. If I start the OIs via executable (.exe provided) than everything runs like in the Sequence Editor, that is, without errors! Do they use different LV Run-Times? How can this happen?
    With the sequence editor (LV Adapter configured to work with LV Dev. System - active Version 7.1) the sequence runs perfectly! With an OI the sequence crashes after the 3rd. run! Why?
    The Whole NI directory (with TS and LV) was masscompliled (LabVIEW 7.1.1).
    Now I need some help, it is really important for my work to get this OI working! I am looking forward for any replies!
    Thanks a lot!
    Regards,
    - Caribe -

    Hi Caribe,
    At the moment I am un-able to reproduce your problem. I am using LabVIEW 7.1 and a TestStand beta, I have also used TestStand 3.0 and I am using the standard LabVIEW OI, run as exe and also the top level VI.
    I shall try to get the update for LV7.1 and try again.
    Regards
    Ray Farmer
    Message Edited by Support on 09-26-2005 03:06 PM
    Regards
    Ray Farmer

  • Installation problem w/ Java Run Time Environment 1.2.2

    Steps to reproduce error:
    1.On Windows 98 I install Java Run Time Environment 1.2.2
    2.I try to launch Java Plug-in Control Panel from Windows Start menu
    Error message:
    JAVAW caused an invalid page fault in
    module SYMCJIT.DLL at 0167:500bf974.
    Registers:
    EAX=00000e03 CS=0167 EIP=500bf974 EFLGS=00010206
    EBX=006538e0 SS=016f ESP=0063f838 EBP=00000e7f
    ECX=0000009f DS=016f ESI=00000e7f FS=0e77
    EDX=00000003 ES=016f EDI=05110010 GS=0000
    Bytes at CS:EIP:
    f3 a5 ff 24 95 48 42 0c 50 8d 49 00 8d 74 31 fc
    Stack dump:
    500bf8c7 0000027f 500c42b0 5007cc24 05110010 00000e7f 0000027f 00760ab0 00000283 0069a4a8 006538e0 0063f8e4 00653928 05110010 006538e0 00000e7f
    Is there a fix for this?
    Thanks
    -DK

    This dll does not recognise the Pentium 4 processor. You need to update the JRE. It is a well recognised problem. Search the forums (and Google) using "symcjit pentium 4" to obtain more information.
    Hope this helps.--
    <sig> http://www.itswalky.com http://www.crfh.net </sig>

Maybe you are looking for

  • How to find the absolute path of file  which store in KM foler ?

    Hello everyone:      We want to develop an ABAP program which can write files into KM folder directly.      So I need to find the absolute path of file which store in KM folder first, then we can consider the develop solution.      Is this issue poss

  • Starting a jar file.

    I am wondering if anyone might have a suggestion to this. I have created a .jar file from JBuilder using the application option in archive builder. ie the jar file should be able to start just by double clicking it. I take the jar file to one of my o

  • Pairing Mac Mini & Wireless keyboard

    I am pairing a new mac mini with a wireless keyboard on my tv but the two can't seem to find each other...  Any tips?

  • Feature Request: Open Connection Indicator

    Hello, I have about 50+ connections, and it would be nice if the icon on the Connections tab changed slightly to indicate that the connection is open. Currently, the only way I can tell if a connection is open is by right clicking the connection entr

  • My SD MS MMC XD reader stopped working for my HP Pavillon laptop

    After working fine even earlier today, I went to use my SD Card reader on my HP Pavillion Laptop dv5 and it would not work. I have Windows Vista 64 bit. I have tried multiple SD cards, nothing gets the light to turn on beside the slot. How do I see i