Mechanical action change in subpanel

Hello,
My problem is that if i open my vi in a subpanel, the mechanical action of the buttons are changing :\ for eg it is set to 'switch until released' but if the vi run in a subpanel it works as a regular switch :\ The program itself is a GUI vi which opens different VIs in a subpanel according to the selected menupoint.
Pls help
Attachments:
GUI2.vi ‏30 KB

Yeah you're right, i'm quite new to Labview The buttons that i was talking about are in the subvi, i'll attach it if you want. By the way do you know a better solution to decide which button is pressed in the menu? I've tried event structure with 'value changed' parameter but when i did i didn't get respond from the subvi ( for eg i connected a button to a led but the led didn't lit when i pressed the button ) Thx for the help
Attachments:
Mill.zip ‏151 KB

Similar Messages

  • How do I detect (and better yet change) the mechanical action of a Boolean programmatically?

    I am trying to reference controls on a panel of another VI programmatically.  When I parse the VI it is not running, so I do not get errors if I encounter a Boolean in latch mode by reading the value.  Later, when it is running and I try to read or write to that Boolean it generates an error, but that is not when I want to handle the error.  Is there some way to read what the mechanical action of a Boolean is?  Is it possible to change it programmatically?  I can not change anything on the target VI except the mechanical action, no adding event blocks looking for mouse clicks, etc.
    Thanks,
    --Matt

    mviele wrote:
    II can not change anything on the target VI except the mechanical action, no adding event blocks looking for mouse clicks, etc.
    Changing the mechanical action is a significant edit change, so why are you arbitrarily disallowing anything else?
    Easiest would be to exclusively use "switch action" booleans and simulate the latch action in code, e.g. reset it to false elsewhere using a local variable.
    LabVIEW Champion . Do more with less code and in less time .

  • LabVIEW 2012 SP1, Can't get correct mechanical action on boolean buttons

    I am trying to use boolean buttons and events to programatically change the properties of a graph.  I basically want to click a button on the FP, and have the graph change the desired property.  All the property changing is fine, but I am really struggling with the mechanical action of the buttons.
    I'll preface this by apologizing that I cannot post my code, as the computers with LV installed are isolated. My code is basically OK buttons, a while loop, and an event structure with a value change event for each button.
    I want the user to click and release the button. After the click and release, I want the button to be in the same state it started, and I want the value change event to only trigger once.  Sounds to me like I want the Latch When Released mechanical action.  The problem is that this isn't working.  I cannot create buttons that behave like this.  None of the 6 mechanical actions exhibit the desired behavior.
    To make matters worse, I have two OK buttons both set to Latch when released.  Both buttons are True before the click. One button behaves as intended (button is true again after the click and release) and the other button doesn't switch back.  I tried to copy the correctly working button, but still the copied button does not work the same as the original.  Both buttons fire a single value change event, dispite behaving differently.
    To answer the question "Where did I get the working button from?"  A while back I made a simple button test vi that tested all 6 of the mechanical actions and kept track of how many times they fired a value change event for a single click.  My buttons worked when I made this vi...eventually, i remember having trouble with this back then too.  The results of that trouble had me using switch until released buttons with mouse down events for a long time, until I got the button test VI working properly and learned how buttons actually work. But now buttons are being funny again.  I tried to copy working Latch when released button into my current program, but for some reason only one of the two copied buttons work as intended, despite them being copies of the same button.
    Is there some bug in LV2012 SP1 (64 bit) where mechanical actions don't work consistently?  Am I just being dumb?  I'm sorry I can't post the code.  I have this issue on both Windows 7 and Linux.
    A bit more info, as I wanted to make sure I tried eveyrthing before posting.  I tried to make a new button test VI.  The old one still works, but I cannot get the buttons in the new button test vi to behave the same as in the old one I made.  In the new one, Latch when pressed behaves the same as switch when pressed, and latch when relased behaves the same as switch when released.  Switch until released and latch until released behave slightly differently.  They both fire two value change events, but SuR actually switches twice (there and back again), where LuR just switches state once but still fires two value change events anyway.  I have checked to make sure the mechanical actions are set properly at least a dozen times.
    Pretty confused over here.  My old button test vi works as I expect it to, and the Latch when released button works like I want, but I can't for the life of me reproduce it.

    To Bob_Schor
    I realize the folly of mouse down events, and I'm trying to move away from them.  I originally started using them because I couldn't get the desired button behavior out of value change events and any other mechanical action.
    I use LabVIEW 64 bit because I was hitting the RAM limits with the 32 bit version.  I hit the limit when I try to plot a great deal of data in 3D, which I do fairly often. I get away with this because I don't interface with any equipment or use any of the specialized modules, but maybe I should consider only using 64 when it's absolutely necesary and get 32 bit on there as well.  But I have the same issue on Linux, which only has a 32 bit labview version (still 2012 SP1)
    There is only one event structure in the program.  I have two buttons because I'm just using them to fire two separate events.  My current situation is that I am plotting 9 plots on a single graph.  One of these buttons is a "check all" button for the visibility check boxes.  I click the check all button, and all 9 plots become visible.  The other button is an "Uncheck all" button, which does the opposite.
    That's for my current program.  I also have a button test vi which has 6 boolean buttons, each set to a different mechanical action.  A single event stucture in a while loop has a value change event for each button.  I made this so that I could see for myself how the buttons worked (i.e. I see that the switch when released mechanical action produced two value change events.).  I have an old version of this program which works as I expect it to.  This morning I tried to remake it (it's very simple) and it does not behave the same, despite the block diagram being pretty much identical.  I described the differences in the OP.
    I can reporduce the behavior on a second computer that is restricted.  Which is 32 bit labview for Linux. I don't have an unrestricted machine with LabVIEW installed.  If I did, I would have tried to rebuild my button test VI  (again) to see if it works.
    At it's most basic, create an OK button on the FP and set in the True state.  It defaults to the Latch when released mechanical action.  Throw an event structure in a while loop.  Give the ES a value change event for the button.  In this even just increment some counter to indicate how many times the value change has been triggered.  I did this using a shift register.  Run it.  For me, when I click the Latch when released button it fires one value change event and doesn't reset to true when after the click.  I can change the mechanical action of the button, and none of the 6 give me what I want.
    So my issue just boils down to Latch when released not behaving properly.
    In my original button test vi (which was this with 5 more buttons and 5 more value change events in the ES), the latch when released button DOES reset to true after my click.  Copy and pasting this button creates a new button which does not behave the same way, despite still being set to latch when released.
    My problem is not so much with the events, but the behavior of the button.  Am I correct that Latch when released is what I want?  A single click, and the button fires one VC event and returns to the same state before the click?

  • Mechanical Action of an array of buttons

    I have an array of buttons that get dynamically built when the front panel is loaded. When I select one of the buttons it remains "pressed in". If I right click on the button the "Mechanical Action" is greyed out. I pulled the button out of the array and checked the settings and its set to latch when released, its just not happening. Is their any way to set this property?

    Hi Rob,
    enclosed you will find two other solutions, simulating a radio button array based on a standard button array,
    this solution use a event loop.
    Version 1: Simulates Radio Buttons without "Allow False" Option
    Version 2: Simulates Radio Buttons with "Allow False" Option
    Attachments:
    ButtonArray1.vi ‏10 KB
    ButtonArray2.vi ‏10 KB

  • In Request type, what is the difference between action 'Change user' and 'Assign object'

    Dear All,
    I have used only 'Assign Object' for my 'Change User' request type. But the standard request type has 'Change user'. So, could you suggest , what additional purpose does Change Object serve
    Regards
    Plaban

    HI Plaban
    not sure if you answered your own question here?
    Change User - by itself would allow update of address data, user parameters, defaults, etc
    Assign Object - as you mentioned roles and profiles.
    However, if assigning, I think you need to have both actions: change and assign
    I recall (ages ago) that change was only the user details and not the role or profiles. As a result, there were a few threads where people had to update the action for the request type of provisioning would not occur.
    This is something you could test
    Regards
    Colleen

  • Usage decision follow up action change of status in equipment

    Hello every one, I am having calibration scenerio in my project. All process is running properly but the issue which i am having is that when i am giving usage decision i should get a pop up to change the status of the equipment which is not coming in my case. i have checked followup action whch PM_QM there i have activated 2 Funtion modules one is for automatic TECO of order which is working properly and second is change to status in equipment master which is not working for me. Kindly give some guidance to me on same.
    Regards
    Abhishek

    Helloo,
    Please let me know the equipment type you are using.
    If you are using equipment type other than Q then u may get such type of issues.
    Please try out with equipmetn type Q or P
    Thanks

  • Problem in actions change before ear retro date 1.4.2011 acc to controlreco

    HI Experts,
    Got an issue while performing an action "International assignent reentry".
    One of my employee has returned from international assignement.While performing an action   "International assignent reentry"
    i am getting an error  "Change before earlist retro date 01.04.2011 according to control record ss".It is showing while updating the payroll area and personnel subarea in 0001 IT.
    We are trying to do action with the date 15.07.2011.
    In pu03  earliest pers. RA date mentioned as 01.04.2011,earliest MD change,bonus change as 15.07.2011.
    In control record ..earliriest retro accounting period as 01 2011 which is April 2011.
    Now control record is on Exit mode.
    Please advice me to resolve the problem.
    Regards,
    Sairam.

    HI
    Thanks for the reply.If we remove  the  date in earliest per. retro accounting..what are the implications.
    in pu03 ..earlist pers. RA date is maintained as 01.04.2011
    We are doing an action with efective from 15.07.2011.
    Why the system is showing an error ""change before earliest retro date  1.4.2011 acc to control record to PY area ss.""
    After deletion of date in the field of Earlist pers. RA date from puo3 ..after doing the action..shall we put the date as 01.04.2011 in the fiels.
    Please advice.
    Sairam.
    Even after deleting the  Earl. pers RA date also ..we are getting the same error.
    The payroll control record is in exit mode.
    Please advice.
    Sairam.
    Edited by: sathyasairam on Jul 18, 2011 1:54 PM

  • Discoverer Viewer Actions changed by User (version Oracle 10.1.2)

    Does anyone know if it is possible to control the list of available actions to selected users of discoverer Viewer?
    I'm using a Portal Dashboard to display Discoverer worksheets. The user can click on the analyze link, which brings up the Discoverer viewer in a new window. I want to be able to hide or remove the export and email Actions for selected users.
    Thanks.

    Hi
    Using standard Viewer functionality it is impossible to have the system change the links on a user by user basis. If you are clever at writing UIX you might be able to alter the code that controls the Viewer interface but be warned, doing so could well invalidate your support agreement. This line of attack is not for the feint of heart and you need to backup your original files first, and even then thoroughly test it on a non-production application server first.
    I hope this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • KNOWN BUG????  data action changing to data page when reload of JDev

    Hi All,
    i'm using jdev 10.1.2, adf bc's, struts, jsp's.
    I have a data action on my struts page which is bound to a method in the app module. I created a class for this data action which overrides the initialMethodParameters() method and gets the arguments for the method in the app module.
    it all works perfectly fine, until i shut down JDev and load it up again. The data action has now turned into a data page. if i dbl click on it i get the create page dialog, instead of the data action class. obviously when i try run this data action, i get cannot display this page error.
    I'm assuming/hoping that this is a bug. can anyone shed any light??
    Thanks in advance,
    Liz

    Hi,
    did you open this in the same version of JDeveloper 10.1.2? I remember that there was a change in Struts between JDeveloper versions
    Frank

  • CS4 Actions change "Show Current Layer, Toggle With Others" MIA

    Greetings forumers,
    I have been using Photoshop for years as a hobby and professionally. My employer recently upgraded our Mac Pro Quad-Core Intel Xeon computers to Photoshop CS4. The transition has been mostly painless accept for all the changes to the keyboard shortcuts (I'll live).
    Recently we have come across an issue with one of our customer's workflows that we have not been able to get by using CS4. Or customer has a workflow that we must work within in order to provide them with the artwork files in a way they can use for other processes. The main parts of this workflow involve layer structure and a set of actions that they have been using since Photoshop 7. Our customer uses Photoshop CS3.
    With the transition to Photoshop CS4 in our shop, one line of their action does not function in CS4.
    Show Current Layer
    Toggle With Others
    What needs to happen is at the end of the action all layers need to be turned visible. In CS3, in the layer palette, by Control & Clicking the eye and selecting "Show/Hide all other layers" produced the recorded action 'Show Current Layer, Toggle With Others'. The names of the layers are not recorded. This is good because the action will work on any layer no matter what the name of the layer is. In essence all layers are made visible.
    In CS4 performing the same above clicks produces a recorded action 'Show , ...' The diference is that in CS4 the action is recording the name of every layer that it is showing/hiding. Simply change the name of one of your layers and running the action again produces a verbose error box.
    So any thoughts on how to make visible all layers in a document using an action that will work on any layered file?
    We are constructing our files in CS4 and opening them in CS3 to run the action for our customer as a work around. Or we are manually toggling the visibility, but what fun is that when it used to be automatable?
    Any help would be greatly appreciated.

    You could try this script (CS4 only) to make all layers/groups visible. If it works for you, you could then call it as part of your action.
    selectAllLayers();
    var sl = getSelectedLayersIdx();
    var sLayers = new Array();
    for( var i = 0; i < sl.length; i++ ){
       makeActiveByIndex( [ sl[ i ] ], false );
       sLayers.push( activeDocument.activeLayer.name );
    ShowAllLayers(sLayers);
    function ShowAllLayers(layerNames) {
        var desc = new ActionDescriptor();
            var list = new ActionList();
                var ref = new ActionReference();
       for(var a in layerNames){
                ref.putName( charIDToTypeID('Lyr '), layerNames[a] );
       $.writeln(layerNames[a] );
            list.putReference( ref );
        desc.putList( charIDToTypeID('null'), list );
        executeAction( charIDToTypeID('Shw '), desc, DialogModes.NO );
    function selectAllLayers(){ 
       var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID( "Lyr " ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        desc.putReference( charIDToTypeID( "null" ), ref );
    executeAction( stringIDToTypeID( "selectAllLayers" ), desc, DialogModes.NO );
       function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
             desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
              var c = desc.count
              var selectedLayers = new Array();
              for(var i=0;i<c;i++){
                try{
                   activeDocument.backgroundLayer;
                   selectedLayers.push(  desc.getReference( i ).getIndex() );
                }catch(e){
                   selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
           }else{
             var ref = new ActionReference();
             ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
             ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
             try{
                activeDocument.backgroundLayer;
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
             }catch(e){
                selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
          return selectedLayers;
    function makeActiveByIndex( idx, visible ){
       for( var i = 0; i < idx.length; i++ ){
          var desc = new ActionDescriptor();
          var ref = new ActionReference();
          ref.putIndex(charIDToTypeID( "Lyr " ), idx[i])
          desc.putReference( charIDToTypeID( "null" ), ref );
          if( i > 0 ) {
             var idselectionModifier = stringIDToTypeID( "selectionModifier" );
             var idselectionModifierType = stringIDToTypeID( "selectionModifierType" );
             var idaddToSelection = stringIDToTypeID( "addToSelection" );
             desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
          desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
          executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );

  • Agentry Delta Mechanism - Detecting changes in nested objects?

    Hi all,
    I have some experience with the Agentry Delta mechanism directly on a SQL backend (Update / Exchange Tables, Triggers, etc.). Now I am trying to find the right documentation, examples and stuff for that mechanism in the "Work Manager for SAP 6.0".
    Maybe, someone could outline a solution to the following "gap" in the Standard Work Managers exchange mechanism?
    A notifications in the "Work Manager" is updated, when the description of the notification has been changed in SAP.
    However, a notification is not updated, when the description of the functional locations of the notification has been changed in SAP. Now, the question is, how to extend the exchange mechanism to listen to the functional locations description?
    Thanks in advance for any hints you might have.
    Regards, Daniel

    Note: I reposted this question in its own discussion. Please do reply there if you can contribute to this topic. Thank you!
    Hi,
    its me again. I did some reading and I found something called "Exchange Object Linkage Settings" that sounds like it should be used for the use case above. The problem is, that it does not seem to work as I would expect.
    Here is some description from the smp_agentry_sap_framework.pdf, page 78:
    Exchange Object - Linkage Settings The Linkage Settings tab allows the exchange objects that are linked together to communicate with each other. The communication is one-directional, with the exchange object sending information to the object(s) listed in the Linked Exchange Objects List. When there is a value change to the exchange object, that value change information is passed on to the linked exchange objects. The linked exchange objects then go through additional processes related to the value change.
    In the Config Panel, one can see that in the Standard Work Manager, there is a linkage between Functional Location and Workorder:
    (Note that I started this discussion with an example on Notifications and Functional Locations. This is still where I want to go, but I wanted to stay within the Standard Workmanager Setup to make the - hopefully - ongoing discussion easier to follow.)
    According to the above description, I would expect that, when changing the Functional Locations description, that information is passed to all Workorders with that Functional Location.
    BUT HOW? It is not entirely clear to me how and what information is passed where. I would expect, that in the end, all related entries in the workorder exchange table will be updated with a new time stamp. (How else could the client get the information that the workorder is to be updated?)
    This is not what I can see! When changing the Functional Locations description in SAP, I see that the Functional Locations exchange table entry is updated, but the corresponding Work Orders exchange table entry is not changed.
    Does anybody have an idea how this feature is supposed to work? Maybe, there are some configuration steps necessary? Any input on the would be highly appreciated.
    Regards, Daniel

  • Open Browser Window Action changes main window also

    I am using the Open Browser Window action on an <a> tag (href) and not only does it open a new browser window, it also changes the content of my main window to the linked page. I can't figure out how to make it stop doing this! Any help? (fyi - I am an HTML rookie, so be gentle)
    Thanks!

    Without seeing the code it's more difficult to explain.  But basically if you look at the code just change the href to "#" instead of the linked page.  That should solve the issue.

  • What is the mechanism behind change documents.

    Dear Experts,
    As we all know Change pointers is applicable only for Master Data changes.But in my situation I have to trace changes to a transaction data like (sales order delivery status) and trigger a ALE for IDoc generation ,if the delivery status is confirms.
    So my question is ,Is there any way we can implement the change pointers concept to this type of scenario.
    Please participate   activity in this discussion.
    thanks,
    jeevan.

    You might want to search SDN or Google - the ALE/EDI scenario with order output is very common and I'm sure you'll find a lot of information.
    Your SD functional specialist should be able to help you with the output configuration. It is done in SPRO or in NACE transaction (orders are under V1 - Sales). You might want to create a new output type for the IDocs.
    As far as the additional requirements when the IDoc should and should not be created - this could be handled with the requirement routines. They are assigned in the output configuration (access sequence). This is actually the only part where ABAP is needed, everything else should be done by your SD consultant.
    Here is a rather old book, but it's a good starting point (and free):
    http://www.angeli.biz/www5/books/IDocBook/IDocBook.pdf
    If you're planning to deal with IDocs a lot, I'd definitely recommend investing in the IDoc "bible" by A.Nagpal.

  • Mouse actions changed in lion

    HELP!! Now, my scrolling on my magic mouse is opposite in lion. It used to be that when I moved my finger down, the page scrolled down. Now it's opposite. Any idea how to change it back?

    I just completed the Lion upgrade and am finding all kinds of Wierd and Unexpected (and undocumented) changes like this.
    It's really annoying to suddenly discover that things like scrolling direction have been changed for you... without bothering to tell you.
    Oh, and by the way... I see nothing in the control pannel to allow change of direction -- only speed
    I should add... after looking at the MacTrast screen shot -- my control pannel looks just like it always did... nothing at all like the one in that screen shot ... no "point and click/gestures"' at the top. I suspect that since I don't have a magic mouse configured for this iMac I have no options.
    Fortunately, I actually use a Kensington Trackball, and Trackball Works allows (has always allowed) you  to select the scrolling direction.
    Why Apple decided to revers the definition of up and down is beyond me.

  • Need send button action change

    I have the latest iPhone5c with the iOS of last month.
    I'm frustrated by the iPhone randomly sending out unfinished emails I'm writing without my telling it to send. As I'm writing, the message is often suddenly sent without my asking it to be sent.
    This could be stopped if only the phone would give me a pop-up asking me if I wanted to send the message.
    I suspect this mis-fire of the send-message is caused by the cover screen of the Otter-box protective case, it seems to happen from different points on the screen as I'm writing.
    I wish I could persuade an iPhone programer to make this change in their iOS. It's a very annoying bug to live with..........
    Is this in the iOS settings somewhere and i can just turn it on ???? If not, can someone tell anyone that can effect this in Apple iPhone programing that it would be a very good thing to add to the system? I doubt I'm the only user with this vexing problem.
    Still, is there a current fix for we users ????

    Please submit your feature request to Apple at this link: http://www.apple.com/feedback

Maybe you are looking for