Disable a control using conditions.

I am trying to disable a control on the front panel based on the status of other contorl and indicator states. Is there an easy function that I can call to enter the allowable conditions versus the non-allowable ones?

Dear Plasmaticon!
Thank you for choosing National Instruments!
Addressing your issue of disabling controls depending on certain conditions, there is, unfortunately no function to do this.
However, there is a powerful feature in LabVIEW which is pretty straight forward to use - called Property nodes. You can create a property node for each control on the front panel by right clicking on the control and selecting Create > Property node. You can also then manipulate the front panel control by means of this property node - including enabling and disabling the control at will depending on when certain conditons are met.
We hope this helps.
Thanks and Regards
ShekharS
National Instruments.

Similar Messages

  • Preventing Child Class Dependency when using conditional disable to specify Class in Development Environment

    Hello
    I am developing an application which I would like to execute on both normal and real-time systems using LabVIEW Proffesional Development System 2012 SP1
    To control how the application interacts with the user, I have created a class which defines the type of user-interface behaviour which should allow me to have nice dialog boxes when the system is executing on a windows machine and have no dialog boxes (or other non-Real-Time friendly code) when operating on a real-time target.
    The parent class is the code that is suitable for Real-Time and the child class is the one with dialog boxes.
    To control which class is loaded, I have a conditional disable structure. This will work fine when the application is built into a executable or real-time executable but the problem arises when I want to use the code during development on the real-time target.
    I find that with the application under a real-time target (RT PXI), the correct conditional-disable case is activated so the parent class is used, but the child classes are also listed under the dependancies - I pressume this is because they exist on the block diagram in the disabled case of the conditional disable diagram.
    This means that I cannot deploy the code to the Real-Time target as it is unhappy with the child class code - even though this will never be run.
    To save posting my real project, I have created an example with a Parent and Child class and a Conditional Disable Flag called "CLASS" to demonstrate the problem.
    If you run Test.vi you will see that the Child class still gets locked (i.e. is a dependancy) during execution even though it is not called.
    So - basically my question is: Is there anything I can do about this or will I just have to do-away with the conditional disable and just put the correct Class constant on the block diagram during testing?
    Thanks in advance
    John.
    Solved!
    Go to Solution.
    Attachments:
    Example Proj.zip ‏18 KB

    I feel your pain.  I ran into a similar problem a short time back.
    Apparently Official NI stance is that you need to put a conditional Disable structure IN EVERY ONE OF YOUR CLASS VIs.  In the Windows VIs, you simply have an empty conditional disable case with the windows code in an appropriate other case and vise versa on the RT.
    I too would much prefer the method you describe...
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • In iOS 5 on the iphone 3gs, how does one disable voice control, not voice dailing.  I have never wanted or used voice control please help me disable it.

    In iOS 5 on the iphone 3gs, how does one disable voice control, not voice dailing.  I have never wanted or used voice control please help me disable it. 

    are you talking about voiceover where the phone is reading things out loud to you? you have to double tap things in voiceover in order to select them. you'll need to go to settings > general > accessibility > and turn off voiceover there

  • How to dynamically enable or disable a control's runtime shortcut menu?

    Is there a way to do it?  
    I need to disable a control's runtime menu while my VI is running and then enable it at other point of time.  All the way, I can make use of the default menu items (Reinitialize to default values, Copy data etc..,) for the control and I don't have any customized menu items.

    GerdW wrote:
    Hi Ajay,
    as a quick & dirty way you could use a filter event for mouse clicks. When you want to disable the right-click menu you filter the right-click mouse events…
     Thats nice dirty idea.  But it might give my end-user an impression that my application doesn't respond to the given options.  I specifically want to greyout the right-click menu.
    Thanks,
    Ajay.

  • Disabling Mission Control on 2nd Display

    I am using an iMac with 2nd display configured for video output, so that what the software (ProPresenter, in this instance - could equally apply to Keynote or PowerPoint, for example) is showing on the 2nd display goes to our video switcher and projector screens while our main display shows the software user interface.
    The problem is that when I trigger Mission Control or use a hotkey to clear the desktop, it does the same thing to the 2nd display. Is there a way to disable this so that the picture on the 2nd display stays in place (whether natively in Lion or through use of 3rd party tools)? It's extremely unprofessional, and I've had my operators accidentally use Mission Control when the output is live on our switcher - looks really goofy. I suppose I could simply disable Mission Control hot keys, but why waste such a valuable productivity feature?
    Thanks... Mike B.

    I am using an iMac with 2nd display configured for video output, so that what the software (ProPresenter, in this instance - could equally apply to Keynote or PowerPoint, for example) is showing on the 2nd display goes to our video switcher and projector screens while our main display shows the software user interface.
    The problem is that when I trigger Mission Control or use a hotkey to clear the desktop, it does the same thing to the 2nd display. Is there a way to disable this so that the picture on the 2nd display stays in place (whether natively in Lion or through use of 3rd party tools)? It's extremely unprofessional, and I've had my operators accidentally use Mission Control when the output is live on our switcher - looks really goofy. I suppose I could simply disable Mission Control hot keys, but why waste such a valuable productivity feature?
    Thanks... Mike B.

  • Problem disabling Parental Control

    Hi!
    I have had problems with Firefox since I installed Leopard, and now I've pinpointed it to Parental Control. On a freshly created account, there is no problem. If I turn on Parental Control (I switched it on, and disabled changes in the Dock and limited the web access) and then change it back (i.e. allowing changes in the Dock and unlimited web access - there is no general overall "disable Parental Control" as far as I can see), some Web sites does not display, I get "411 Length required" error.
    I found a bug filed on Firefox (in Bugzilla), but I don't know if the problem is in Firefox (my bet is on Leopard, but that's just a guess).
    The same web pages work on Firefox 3 beta.
    One (Swedish) example is hemnet.se - enter e.g. "Stockholm" in the "Snabbsök" quick search text box. I get the 411 on that.
    Anyway, I've tried deleting lots of preference stuff, listing files before and after the Parental Control thing trying to locate the problem - but I just cannot make it go away.
    Any clues on how to kill it?
    More on this: http://discussions.apple.com/message.jspa?messageID=6581473

    Hi Everyone. As a relatively new MAC user and the only person to use my MAC, I am the administrator and when I set up my computer, being a 48 year old without children around the house, did not need or wish to have parental controls enabled and wouldn't have checked any restrictions, (The check box in 'Accounts' is unchecked). However, in iTunes, in the parental settings of preferences for the iTunes store, the restrict movies box is ticked & set to 12 and the restrict TV programmes marked caution box is ticked too. I do not wish to be restricted on anything and everytime I try to change them they have reverted back the next time I look??? Why is this please ... and how do I change it, is it a separate setting to the 'Accounts' setting, I am baffled, or have I missed something?
    Thank you.

  • Device Controls in Final Cut Express-how to disable device control??

    How do I disable device control on a 3ccd panasonic mini dv camcorder using final cut express. It is very simple on final cut pro, but for some reason I cannot figure it out on final cut express. Do I need to do something with the camera itself first?

    Switch to the DV Converter option?

  • Disable / Remove Control Key From Pop-Up Virtual Keyboard

    Hello. I am setting up a kiosk system using Microsoft Surface tablets. I wish to use the win8 virtual keyboard along with chrome in kiosk mode to run a web app. I am trying to edit the Keyboard Mapping in registry, which works with the physical keyboard
    but not with the virtual one. All I need to do is disable the control key so users can't do anything with browser shortcuts. Also, I can't just disable them in JS because the browser captures them before they even reach the js engine. 
    Thanks!

    Hi,
    On Screen  Keyboard is one application that is used to simulate the keyboard to send the Key Events to system. It is not a physical keyboard but a built-in tool,
    After a lot of research, I am afraid there isn’t a solid way of disabling the Windows key on virtual keyboard, including the control key.
    Besides, Kiosk mode is  available for Internet Explorer according to the link below, and it is available for Internet Explorer 11 after a test:
    http://support.microsoft.com/kb/154780
    Another thing is, it fails to start the Kiosk mode with Chrome after remove Internet Explorer from the control panel, I tried with a test.
    Regards
    Wade Liu
    TechNet Community Support

  • Disable External Control in AnyConnect programmatically (Android)

    Hello,
    I am using URI mechanism to import certificate from an external application. External Control is then enabled by the user in AnyConnect parameters. Is there a way to disable External Control programmatically using URI mechanism or else? Or user should manually disable this feature?
    Thanks

    Hi,
    Sorry for not being clear. I am using AnyConnect Client Application for Android.
    Reference :-
    http://www.cisco.com/en/US/docs/security/vpn_client/anyconnect/anyconnect24/release/notes/rn-ac2.4-android.html#wp1114806
    How can i come to know whether VPN is connected or not ?

  • How to disable Buttons based on condition.

    Hi
    Need your help to disable button based on condition.
    Please refer the application:
    http://apex.oracle.com/pls/otn/f?p=34797:5:110582943383419::NO:::
    login credentials:
    workspace: vsanthanam
    user: vijay
    pswd: apex_demo
    In the above application, i have 2 buttons in page 5, (Report1 and Report2)
    Where i have to disable button based on the following conditon:
    i) USER whoever has Admin value 'Y' in my table can access the button.
    for this i've written a Button Condition : Type (EXISTS)
    select 1 from apex_extra_values where rtrim(lower(empname)) like decode((select Admin from apex_extra_values
    where rtrim(lower(empname))=rtrim(lower(V('APP_USER')))),'Y',rtrim(lower(V('APP_USER'))))
    note: i have empname same as my APEx user name. with Admin access 'Y'.
    By using this code i can able to hide the button for users who has no Admin access.
    But my requirement is : i have to show the button even if the user is not Admin, but to grey out (disable the button - no action)
    I tried using javascript function:
    function disableButton(pThis)
    pThis.disabled=true;
    But either of this (exists condtion or JAvascript function) works in my case and not both.
    Any pointer on this would be highlt appreciated.
    Thanks
    Vijay

    Couple of things:
    1. I would never use v('APP_ITEM') but :APP_ITEM - it is faster and there is no need to use this function within an application
    2. The way you are doing this check is not the best approach. You should create an authorization schema and run this once per session. Whatever this authorization is returning as a result you can check using the following Function returning boolean:
    IF apex_util.public_check_authorization ('MY_AUTH') THEN RETURN TRUE; ELSE RETURN FALSE; END IF;
    See this example on authorization issues:
    http://apex.oracle.com/pls/otn/f?p=31517:148
    3. As far as disabling a button is concerned I think I explained the options. I also have an example on that here:
    http://apex.oracle.com/pls/otn/f?p=31517:143
    whereby it is not disabling but hiding a button.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Copy control for conditions

    Hi Guys,
    i am having one requirement.
    My client is using one condition from so long time,  they defined so many condition records for that condition type.
    Now the case is,  if i am using the other condition type with the resemblence of that condition type(exactly same with key combination) in another pricing procedure(because of some constraints we are not using  same condition type).  I want all condition records to be copied of that old condition type to this new condition type.
    So, in this process i came to know, there is a configuration for copy control of condition.  Plz share some config points in this regards.
    Regards,
    Rajesh.

    Hi Raj In,
            Jacqueline's solution is good for your requirement. The field RefConType is on Master data Box. Bear in mind, if you'll use this solution you should continue loading condition records for the old condition not by the new. If you don't want that, so you need to define condition copy rule for those condition in:
    Sales and distribution --> Basic Functions --> Pricing --> Copy control for conditions
    Then, to make the copy of the condition records use trx VK32.
    Thanks in advance,
    Mariano.

  • Need to disable Mission Control

    Mission Control does not work proeprly.  One of my windows seems to be lost except for when I cmd+left/right arrow between MC screens.  When I do that the missing window appears while sliding between MC screens but then disapears again once the screen has landed.  When this used to happen in spaces I could just disable it temporarily and the missing window would appear int he main window, but I can't find how to disable Mission Control temporarily.  Can someone plese fill me in?  Thanks in advance.

    Anybody have any ideas?

  • Throttle body PID control using pulse width modulation

    Hello all,
    I am trying to do a PID control for a throttle body (using pulse width modulation) for a set value of feedback voltage. The process variable is the pulse width duty cycle. The throttle body is expected to be fully open at a feedback voltage of 5V and pulse width duty cycle of 42.5%.  When I use the highlight execution using the attached file, I can see the throttle body fully open (the values observed are: PID output 42.5 %, feedback voltage approximately 4.7V). However, when the highlight execution is unclicked, the throttle body flutters in the closed condition (still PID output 42.5%, feedback voltage approximately 0.9 V). Can any one please help by suggesting any modification to this attached file to make this throttle body respond to the set value of feedback voltage.
    Many thanks 
    Ajith
    Attachments:
    Throttle body control using PWM technique - PID.vi ‏525 KB

    How did you determine your P, I, and D gains? If you have not tuned your controller, you'll get poor performance. Running with execution highlighting will slow down the execution, which will change the effect of the gains. I would start with pure proportional control (I and D = 0) with a small proportional gain, and see if it responds in approximately the way you want. If so, then your code is probably correct, and you just need to do a full tuning to get good performance. There are many resources available on the web, on this forum and elsewhere, for PID tuning. Note that since your code uses a simple PID example, and not the one from the PID toolkit, the gains do not have the units that are used in many tutorials so you'll have to correct the calculations to compensate.

  • Disabling a control

    Hi All,
    I would like to know if it is possible to disable a field on a system form. Say I want to disable the posting date on a marketing document (invoice, quote, etc) or on any other form (business partner, item, etc.) I know how to disable the control, but as soon as I change records it seems as if the whole screen gets repainted and the control is no longer enabled.
    Also if I want to change the caption of a form the same happens. I currently do this change on form_load, and the only other event I can see is got_focus, which will result in too much overhead...
    Please send me your thoughts.
    Kindest regards,
    Adele

    Hi Adele,
    This is an issue with SBO. Unfortunately the only solution will entail "overhead". You will have to use got or lost focus... I have tested this because my company needed a solution that required this...
    So the only way to minimize the overhead is to filter for the events on the the forms that require this functionality...

  • SAP Fiori how to  disable-web-security using code

    Hi Guys
    I have made SAP Fiori Application.
    Its working on  google chrome browser after disable-web-security.
    i need to disable web security on each & every browser, Ipad, Phone  befor start the fiori Apps.
    Project on My Laptop Kepler Eclipse. I did not upload project on server.
    Please guide me How I  can  disable web security using code on  Fiori UI ...
    Tags edited by: Michael Appleby

    Hi pankaj,
    Hi,
    write this code in your app
    /supress the Same Origin Policy on IE8 & Chrome 
    var domainString = "document.domain"; 
    domainstring = "*.com" 
    'Access-Control-Allow-Origin: *.sap.com' 
    'Access-Control-Allow-Headers: X-KEY'
    Regards
    Umar

Maybe you are looking for

  • BI 7.01 BEx report/workbok Time_Out Errors

    Hi, Our BEx reports/workbooks are failing with time_out error's. Below are the time_out error details: BEx workbooks are executed through VB Script. Some days they run fine and some days they time_out. The program "CL_RSDRH_HIER_CACHE===========CP" h

  • Activating BIS service in china! Help!

    I am hoping someone can fill me in with the general info needed to activate BIS service. I just moved to shanghai and went to get my BB activated with a service plan. I was told to get a sim with a data plan first then sign up the BIS service online.

  • Problems installing 8.1.7 Enterprise Developer

    Hi, we got a new machine (Pentium IV, Win2k, SP2) and I can't install this Oracle version. The setup program doesn't even start. On the previous machine (Pentium III, Win2k, SP1) there was no problem. So I installed the new machine without SP2 but th

  • I can not open safari because iphone is not conneted to the internet

    i can not open safari because iphone is not conneted to the internet. i need to know what to do to make it work

  • Can't download my apps to a different disk

    I already chose in the settings that my programs will download to a disk D instead of C, because C is full and I don't want them to be there. But Creative Cloud program still tries to download them to disk C. What should I do?