Problem with a case structure

I have the following problem:
I want that the structure from the TRUE case of the bigger case structure to start only when I switch from the button and activate the TRUE position. I observed with the probe tool that the structure is still executed in backgroun even if the bigger case is on FALSE. I want to make it start from the first position (the default case) of the inner case structure whenever I will switch from the button. I hope I made myself cleared. Thanks
Solved!
Go to Solution.
Attachments:
Untitled 3.vi ‏77 KB

Hi maryus,
your observation (or better assumption) is wrong.
As long as you set your button to FALSE the inner case structure in the TRUE case is not executed!
But: when you switch to TRUE case you wired the loop iterator to the inner case selector. So the inner case structure is not starting with it's first case but with the case corresponding to loop iteration count!
You can see all this by using execution highlighting!
Btw. when you have several cases in a case structure you can combine them to one case. It's all explained in the context help of the case structure! So you can combine cases (1, 3,4,6) and (2,5,7) into just one case each…
Edit: Damn, Christian was faster (with same conclusions)…
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • G4 mini has a problem with its volume structure

    My G4 mini has a problem with its volume structure according to Tech Tools Deluxe. One that the application can't seem to repair. Ran it 3 times and it always hangs before it completes the fix. Never hangs in exactly the same place in the repair routine, but always hangs.
    Ran these tests because for the longest time the mini would accelerate (panic) and shut down. Installation on a new system hangs before it completes the install of all the upgrades. Any help would be appreciated.

    I realize it was not clear from the original post whether or not DiskUtility had been tried yet to fix the hard drive.
    To use DiskUtility to repair the drive, you have to boot from the original install disc that shipped with your Mini.
    1) Insert the Install disc and the shutdown the Mini.
    2) Restart the Mini and hold down the C key as soon as the startup chime or beep is heard. Hold it down until you see the "gear" spinning on the screen.
    3) Select your language, but don't proceed any farther with installation. Use the Utilities menu at the top of the screen to run DiskUtility.
    4) In DiskUtility, click once on the hard drive in the left panel, then click on the Repair Disk button in the right panel.

  • Problems with use cases in JDeveloper 11.1.1.1.0

    Use cases made with JDeveloper 11.1.1.0.2 can not be used and edited in JDeveloper 11.1.1.1.0.
    Same problems with Use Case Diagrams.
    And it seems to be impossible to create new use cases in JDeveloper 11.1.1.1.0.
    What are the differences between 11.1.1.0.2 and 11.1.1.1.0 if you look at use cases??

    In JDeveloper 11.1.1.0.2 each use case has one file with the folllowing name: *.xhtml_usc.
    In JDeveloper 11.1.1.1.0 each use case has two files with a names like *.xhtml_usc and *.uml_usc (after standard migration with JDeveloper). I can still edit the *.xhtml_usc files, but I have no idea what to do with the *.uml_usc files. I can only open a Property-editor, but the properties I see have no relation with the text I used in my original use cases . New use cases only have a *.uml_usc file and a Property-editor. In javadoc the new use case does not appear.
    My question is: why do I have two different use case files in JDeveloper 11.1.1.0 and how can I use the Property editor??

  • Problem with syntaxes and structures in unicode

    1. i have a problem with syntax
    this is old syntaxes
    TRANSLATE c ...FROM CODE PAGE g1 ... TO CODE PAGE g2
    new systems should use this class instead of above
    CL_ABAP_CONV_IN_CE
    it reads data from a container and converts it to the system format.
    my old syntax is TRANSLATE header-id FROM CODE PAGE file_tab-codepage.
    i need to change to new one by using above class how to do it
    2. I have a structure are_buffer and i am working on upgrade of a old report , i have used a sap predefined structure callled arc_buffer from se11, now when i am using offset in one of the perform statement like
    PERFORM read_file USING handle_tab_wa-offset record_len
    CHANGING arc_buffer(record_len)
    error_handling
    p_message.
    but the system throws a error called ''the structure arc_buffer(record_length) does not start with character-type field''.
    i cannot change the structure becoz its sap standard structure .
    how to get out of this.

    Moderator message - Cross post locked
    Rob

  • Using local variables with a case structure

    I recently decided that I didn't want to nest a bunch of case structures for a program I am creating. I have two variables, N1 and N2, and I want to say execute Case 1 if the integer input to the terminal is less than N2. Case 2 if the integer input into the terminal is greater than N2 but less than N2+N1. Case 3, integer greater than N2 + N1, but less than N2+N1+N2. Case 4, you guessed it, Greater than N2+N1+N2, but less than N2+N1+N2+N1. When I try to type the variable name into the bar and use the ... like you do with integers it changes the variable name to a string.
    Am I just thinking of this the wrong way? I have a sensor setup in a square and I am using a matrix card hooked up to the sensor bundle to send signals from each sensor to each other sensor, but not for those along the same sides.
    Tom

    I see the nested case structures which is what I didn't want to do, but I will have to because I am tired of looking at this. Thank you for the help on this. I appreciate it.
    The sensor network is shown in the image included.  Lets say we number the sensors in a clockwise direction starting on the lower left hand corner. Each element needs to both send and recieve data to all other elements except for the one in the row it is in. So sensor 1 would sent to sensor to sensors 5 - 18. Then sensor 2 would send to 5 - 18. Sensor 5 would sent to 1 - 4 and 10 - 18. Etc.
    Lets say if this were a circular array it would be easy. Two nested while loops. And the only condition I need to worry about is that sensor N is not both sending and recieving at the same time. Each while loop, or for loop - doesn't matter, will start at 0 and go to N-1. Each i and j will have +1 added to them, and as long as they are not equal preform the data operation. 
    Just some fun logic to think about
    Tom
    Attachments:
    rectangular.jpg ‏12 KB

  • How to increase the performance with the case structure?

    Hiii, All
                I want to stop the looping into my vi, which is occuring because of Case structure, as i ve shown in the figure, i am checking for the trigger, either it is Manual or it is Auto, if auto i am going inside the case and checking the loop of either Auto trigger is for Analog values or for digital values, if it is for analog valus, i am checking the set point that, either P.V. has cross the setpoint or not? if it is then i am starting to write the file and the control comes out again to check the Start trigger again, either it is Auto or manual? and because of these contonuous loops inside the while loop, my other while loops inside the vi, decrease the performance mean they are slowing down also with the current while loop, so i think solution is to stopping these nested loops, but what should i do to stop these nested loops? please suggest something.
    Thanks in Advance,
    Nishant
    Attachments:
    Performance.jpg ‏169 KB

    You can consider multithreading the single loop and using a synchronization resource to communicate between threads.  You should also consider cutting down on the global variable dependancies which makes the code hard to follow.
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Problems with Upper Case Letters on Keyboard

    Suddenly my keyboard will not print a capital i. in fact, if i use the caps key, it won't even put the letter i in either upper or lower case. When i put the caps lock on,  can get a capitol 'I', but once the cap lock is off it is back to the lower case i again.
    is there anything  i can do to correct this, without taking my computer keyboard in for service?  i broke my neck about 3 weeks ago and i am house bound for the next 5 weeks.
    Sheila K.

    Hey Sam,
    im having the very same problem even though iv only had my ibook g4 for just under 5 months. i believe that puts me still under the 1 year warrenty for the computer itself. will they still replace the keyboard if this is the case. if they decide not to do so. i was wondering if anyone here new the part number for the keyboard that is easly installed on the g4 ibooks. if anyone here knows anything on the matter please feel free to email me on this.
    as most people can see, i also have a power mac g5 desktop, otherwise called a cheese grader. if you know what i mean. theres very little i dont like apples computers. thats probally why everything in my house is mac related. having 3 ipods, 1 g4 ibook, a power mac g5, isight cam, and lots more. the point here is in the event people are trying to decide what kind of coomputer there wanting to buy. several things need to be considered before you should go out and buy one. obviously price has alot to do with your choice, but in that decision you must also consider whether or not the computer has teachnical type issues. is the company well known for having lots of problems. will you be able to get the technical support you need in the event there is some major problem with the computer that you may be inquiring on. having the apple care protection plan on all of apple's top computers is the single one thing that people dont think about when buying a new brand name computer. i cant tell people enough that buying this apple care plan is vital to the survival of you and your new computer. an extra $200-$400 is well worth the expense down the line.

  • Tab control with a case structure

    I am having trouble getting my tab control to work with case structure. I have 4 tabs that i want displayed on my front panel, each with a separate graph. When I click on any tab besides the first one there is nothing shown on the graph. I think i have some wiring issues. Any ideas?
    Attachments:
    version1.vi ‏379 KB

    See also this and this discusion. Most of the time, tab controls don't need any code.
    (You also have a couple of breakpoints (one on the entire diagram and one on the while loop). Make sure you remove them. Look for the red outlines.
    LabVIEW Champion . Do more with less code and in less time .

  • Tunnel mode: indexing with a case structure

    Hello,
    I have a code like the one  attached to this message.
    I have a case structure in a while loop, and I would like to transfere some data from my case structure to outside the while loop in indexing mode tunnel.
    This is to accumulate results (or to save results) following each iteration.
    My problem:
    I dont want any value in the False case of the case !!
    How can I get rid of that? I do not want to use default value for unwired case and I dont want 0. 
    Many thanks 
    Attachments:
    Untitled 1.vi ‏9 KB

    Your VI is saved in LabVIEW 2014.  So you should have this.  Right-click on the output tunnel of the loop.  There is a tunnel mode->conditional.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Conditional Indexing Tunnel.png ‏7 KB

  • [solved]Anybody ever had a problem with a case making it difficult to charge?

    I purchased a gently used ipod 4g from eBay.  I was pretty thrilled with it. It was still new enough to have some limited warranty time left.  Dec 23.  I experimented with different apps for a couple of days.  I had to recharged it once.  No problem.   I purchased a gel case with a screen protector, so it didn't get it scratched, or beat up.  I set it up and it was looking pretty nice.  It was a clear gel case so it didn't alter the look at all.  I installed some more apps and read some ipod tutorials.  I installed mo gv app and found I had an iphone 4 with a free cell phone contract.  I needed a second charge. I plugged it into my wall outlet adapter..  After 4 hours nothing.  I changed the wall outlet.  After 4 hours nothing.  I thought I was having a cord problem because my ipod would neither charge nor mount as a flash drive on my computer usb port.  I googled ipod trouble shooting and was advised to do the things that I had done & 1)reset it, and if that didn't work  2)buy a new cord.  If that didn't work, use the apple limited warranty and get them to fix or replace.   I did 1) and 2).  Nothing.  I was very desperate and getting ready to send it back to apple.  Then it struck me that the only thing that had changed physically to the ipod since I last charged was putting on the case.  I wondered if the case was interfering in some way.  I took it off and put on the cord and plugged into the old wall adapter outlet.  This worked, now my ipod is charged.  I also found that I could charge with the case on if I pulled the front of it up a little before putting on the cord.  Problem fixed.
    I guess I am writing this hoping it might save someone else the aggravation of sending an ipod to get if fixed only to be told there is nothing friggen wrong with it.  Maybe this should be added to the online troubleshooters?.

    Richard,
    Install the latest fix pack i.e. FP 3 for Xcelsius
    Description:
    URL Button component does not open a new browser window when the Trigger Behavior functions are enabled.
    New Behavior:
    This issue has been resolved.
    Hope this helps...
    -Anil

  • Problem with Office document structure when exporting in Windows vs full-text indexing in SQL Server

    Post Author: Atarel
    CA Forum: Exporting
    Product: Crystal Report for .Net 2005Version: distributed with VS 2005Patches Applied: hot fix crnet20win32x86_en_chf.zipOperating System(s): Win2000 Pro SP4, WinXP SP2, Win 2003 Server SP1, Win 2003 Server SP2Database(s): SQL Server 2000, SQL Server 2005Error Messages: None
    We are creating reports with Crystal Report for .Net. We both have a Windows and a Web application connecting to our database. The problem occurs only with the Windows application. We create a report and in the dialog that appears, we choose to export the report in MS Word format. Everythinglooks fine because after we save the document, MS Word is able to open and display the document. However, when we decide to add this Word document in the database in a table that has a image column bound to a full-text indexing schema, that document is never indexed. After fiddling around for a few hours, we realized that the Word document produced during the export is not a true Word document but rather a RTF document that was given a ".doc" extension. Is there a way to have a real Word document when exporting in Windows. The problem does not arise in Web because when we export, the report is displayed in Internet Explorer through the Office plugin. The Office plugin knows how to same a real Word document.
    There is also a problem when exporting to Excel in Windows. It does not yield the same structure as in Web. The format of the export in Windows is not compatible with the Office IFilter of SQL Server 2000/2005, therefore the content is not available for search queries.
    Any patches to fix this problem?
    Regards,
    Ian Perreault

    Post Author: Atarel
    CA Forum: Exporting
    Product: Crystal Report for .Net 2005Version: distributed with VS 2005Patches Applied: hot fix crnet20win32x86_en_chf.zipOperating System(s): Win2000 Pro SP4, WinXP SP2, Win 2003 Server SP1, Win 2003 Server SP2Database(s): SQL Server 2000, SQL Server 2005Error Messages: None
    We are creating reports with Crystal Report for .Net. We both have a Windows and a Web application connecting to our database. The problem occurs only with the Windows application. We create a report and in the dialog that appears, we choose to export the report in MS Word format. Everythinglooks fine because after we save the document, MS Word is able to open and display the document. However, when we decide to add this Word document in the database in a table that has a image column bound to a full-text indexing schema, that document is never indexed. After fiddling around for a few hours, we realized that the Word document produced during the export is not a true Word document but rather a RTF document that was given a ".doc" extension. Is there a way to have a real Word document when exporting in Windows. The problem does not arise in Web because when we export, the report is displayed in Internet Explorer through the Office plugin. The Office plugin knows how to same a real Word document.
    There is also a problem when exporting to Excel in Windows. It does not yield the same structure as in Web. The format of the export in Windows is not compatible with the Office IFilter of SQL Server 2000/2005, therefore the content is not available for search queries.
    Any patches to fix this problem?
    Regards,
    Ian Perreault

  • Problem with BW query/Structure in Xcelsius

    I Build a universe based on a BW Query with structure.
    I created an excel/live office file of this universe and data are  correctly returned.
    But when using the live office imported in Xcelsius and click on preview with the option of refresh on load enable, the column of the query with the structure does not display the description of the indicators (product A, product B, product C), but a  tecnical name (selection1, selection2, selection3).
    Any suggestions!?
    Best Regards,
    Danilo

    Hi Ingo,
    The problem in configuration in tab View in application options of Live Office
    Column Heading = Field Description (correct)
    Best Regards
    Danilo

  • Problems with deep request structure in web service

    I'm having problems when trying to consume an Enterprise Service-like web service in my Web Dynpro application. The web service FindXByElements has a request-structure as follows:
    XByElementsQuery
    -ProcessingConditions
    -QueryHitsMaximumNumberValue
    -QueryHitsUnlimitedIndicator
    -XSelectionByElements
    -ID
    -Year
    Regarding the structures on level two, the structure ProcessingConditions are of the global data type "WITHOUT_LASTRETURNED_QueryProcessingConditions" and are therefore typed. The structure XSelectionByElements on the other hand are just a "level" in the request structure and are therefore not typed. Both structures have occurrence 1 so they have to be filled with input data.
    The code in wdDoInit in the Component Controller looks like this:
    QueryXInModel model = new QueryXInModel();
    wdContext.nodeRequest_FindXByElements().bind(wdContext.createRequest_FindXByElementsElement(new Request_FindXByElements(model)));
    wdContext.currentRequest_FindXByElementsElement().modelObject().setXByElementsQuery(new XByElementsQuery_Sync(model));
    //Processing structure
    wdContext.currentXByElementsQueryElement().modelObject().setProcessingConditions(new WITHOUT_LASTRETURNED_QueryProcessingConditions(model));
    //Selection structure
    wdContext.currentXByElementsQueryElement().modelObject().setXSelectionByElements(new XSelectionByElements(model));
    The last row generates the following exception:
    java.lang.IllegalArgumentException: Cannot perform write operation 'setRelatedModelObject' on target role: Class 'XSelectionByElements' is not compatible to class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$002fXsdComplexType$005b3$005d$002fXsdSequence$002fXsdElement$005b2$005d$002fXsdComplexType' of target role 'XSelectionByElements' in model class 'XByElementsQuery_Sync'
    There seems to be a problem to bind a non-typed structure element to a context node since the processing structure is working fine but the selection structure are not.
    What am I doing wrong, anyone got any clues?
    /Oskar

    Hi
    QueryXInModel model = new QueryXInModel();
    wdContext.nodeRequest_FindXByElements().bind(wdContext.createRequest_FindXByElementsElement(new Request_FindXByElements(model)));
    wdContext.currentRequest_FindXByElementsElement().modelObject().setXByElementsQuery(new XByElementsQuery_Sync(model));
    //Processing structure
    wdContext.currentXByElementsQueryElement().modelObject().setProcessingConditions(new WITHOUT_LASTRETURNED_QueryProcessingConditions(model));
    //Selection structure
    wdContext.currentXByElementsQueryElement().modelObject().setXSelectionByElements(new XSelectionByElements(model));
    XByElementsQuery
    ProcessingConditions
    QueryHitsMaximumNumberValue
    QueryHitsUnlimitedIndicator
    XSelectionByElements
    ID
    Year
    as
              QueryXInModel model = new QueryXInModel();
               Request_FindXByElement  request = new Requst_FindXByElement();
                ProcessCondition   processCond  = new  ProcessCondition(model);
                QueryHitsMaximumNumberValue  qhMaxNumValues = QueryHitsMaximumNumberValue(model);
          QueryHitsUnlimitedIndicator  qhUnLimind = new QueryHitsUnlimitedIndicator(model);
            XSelectionByElements  selecByEle = new XSelectionByElements(model);
                     processCond.set....();                         
                     qhMaxNumValues .set...();
               and so on
                    request.set....();
    wdcontext.nodeReqestFindX..bind(request);
      in the above during the values you will automatically get the set values .

  • Problems with HR org structure replication

    Hello,
    EBP 5.0, HR 4.7
    we have a big issue where at the moment replication between HR and SRM is not working properly.
    We made customizing according to 550055 note and found out that BAdI BBP_OM_BUPA_ALE (note 850328) is active. This prevents to have concurrent employment in SRM org structure.
    We can replicate O (units) and S (positions) form HR without problem. But when we try to replicate P (persons) with infotype 0105 filled (users in SRM) afterwards we do not see positions for which users have to be created!!!
    IDOCs have information that everything went OK.
    Please help!
    Gordan

    Issue is resolved by SAP, some customizing entries are missed from ECC side

  • Problem with change/delete structure in package

    Hello!
    I got the task to delete a package in the ABAP Dictionary. In this package there are structures that I can´t delete. I get the following message:
    You cannot edit object R3TR TABL Y1LASME with the standard editor
    Choose 'Display object' or 'Cancel'.
    Y1LASME is one of the structures. The other one I don´t know.
    So, how is it possible to delete this structure and then to delete the package?
    Thanks.

    Did you do a where-used on the segment to see which extension it is still used in?
    In that case the only thing you need to do is to go to transaction WE30, put in the extension name in object name, select extension radio button and go into change mode (don't forget to cancel release before doing that), then just set the cursor on your segment and cut it out, save and exit. Don't forget to set the release again.
    In case the where used does say that it is not used any more than there is an inconsistency in your system or some navigation index is not up to date.
    If you are 100% sure that the segment is definitely no longer used, you always have the possibility to debug :
    Set a breakpoint in include MSED4F01 form routine segment_delete in line 184 (ECC6) at statement IF l_rc eq 0. which is fter the statement  PERFORM segment_check_usage USING pi_object l_rc.
    The l_rc should be 4, so at that point just change it to 0 and the delete part will be executed.
    HOWEVER - if this segment is still used in an extension any Idoc running in or out using this extension will at least no longer work or even dump!!!
    Hope that helps,
    Michael

Maybe you are looking for