control the visibility of multiple vi

I need to control the visibility 3 controls (one flag and two integers) of multiple vi ('visible' property). Does anyone have a practical example how to do?

Haroldo salvation,

This problem arises due to the construction of a table of references of different types of controls (with respect to the type of data). You have to work with variant OR you need to convert the reference for each control "to a more specific class" (found in the application control palette). Then you can wire the correct data type for the value property node...

Tags: NI Software

Similar Questions

  • Control the visibility of the buttons

    Is it possible to control the visibility of a GUI button via a checkbox?

    If the checkbox is ticked visibility box = 0 (the button is not visible)

    If the checkbox is not checked = button is visible

    Does anyone know how it is possible to do?

    Quentin

    Yes. You can use an onClick for the checkbox itself and the method for the on/off switch.

    var myButton = buttonElementGoesHere;

    var myCB = checkboxElementGoesHere;

    myCB.onClick = function() {}

    {Switch (myCB.value)}

    real deal:

    myButton.visible = false;

    break;

    by default:

    myButton.visible = true;

    break;

    }

    }

  • Using the API to control the visibility option drop-down list

    We have by using a web service to generate an interview of a modules. The modules a drop lists in which the drop down options are linked to attributes of visibility down. Our question is: How do access us these properties of visibility in the API?

    We found an optionliste with the signature method: IsVisible (entityInstance, InterviewSession session InterviewEntityInstance). We do not know what is InterviewEntityInstance or how to use it.

    Are we on track?

    Thank you.

    Hello

    Yes, you are on the right track. Unfortunately, this part of the API is much finer grain than is really desirable, it takes a bit of work to evaluate the expression of visibility. Basically the code in order to evaluate the visibility attribute looks like:

           //this code assumes the variable 'ctrl' is the AttributeInputControl to which the list options are attached
           InterviewEntityInstance entityInstance = new InterviewEntityInstance(ctrl.getRawEntityId(), ctrl.getRawEntityInstanceName());
           InterviewSession session = ctrl.getScreen().getInterviewSession();
    
            List options = ctrl.getListOptions();
    
            for(Object o : options){
                ListOption opt = (ListOption)o;
                boolean visible = opt.isVisible(entityInstance, session);
    
                //Do something
            }
     
    

    There is also a known issue that assess the visibility of the list of options for the controls on a screen entity collect will cause an exception. 10.2 this issue has been addressed and the API has been simplified to ListOption.isVisible ().

    Thank you
    Kristy

  • How to control the timeline in multiple compositions.

    I want to control the timeline in a different composition.

    There are two compositions.

    There is button in Comp1 and there are 3 seconds animation in Comp2. (Not AutoPlay)

    If I click on the ordi1 button, play timeline between 1 second in Comp2

    This type of workflow will work if you have these two composition inserted in a simple html page.

    And you can add the code below in the click handler during the creation of composition 1:

    stg2 var = Edge.getComposition("EDGE-ID_OF_COMPSITION_2").getStage ();

    Stg2.play ("label_in_composition2");

    HTH,

    Vivekuma

  • How to control the visibility of TextField based on segments of chronology?

    Hello

    I have 3 text fields that display weather web service XML from Weather.com.  3 text fields should be visible for a certain segment of Flash video which is defined in the context of the application.  AS3 use to specify the visibility?  If so, how to reference a certain range of images in which fields should be visible?

    Thank you

    SID

    Yes, you can set the visible property to true/false to any DisplayObject instance. Use the property currentFrame of a clip to know what segment you are in...

  • Adobe Captivate 7 - control the visibility of the two navigation buttons according to by clicking on the "sending answers" - button

    Hello

    How can I do the following:

    The navigation of my e-learning consists of two arrows. By clicking on one that you can move forward, by clicking on the other, you can go back.

    When users reached a Drag and Drop exercise slide in e-learning, should not go backward or forward, so the navigation should be disappear. The learner must answer the drag and drop exercise by clicklng the button 'send reply '. After that, the navigation should appear.

    I have UN-click on the checkbox for the two arros 'visible in the output' in the settings for the group that contains the two arrows, so they are not visible in the output for the moment

    How to go on?

    I think I have to combine the "submit answer" button action, but I can't assign an action on the button "send the answers."

    So should I assign an action to the slide? But which?

    Thanks for your help!

    Greetings

    Erica

    You can use the Drag and Drop action success of interaction to DISPLAY the missing arrows when a user correctly place all objects to slide on their targets.

  • control the visibility of an element programmatically

    Hello!

    I have a list item and various other elements of text in my form... Based on the value selected in the item list I made some visible and invisible fields. Now, I have to validate the form when I click a button inside. That's the validation should arrive for the only visible fields. How can this be achieved?

    Pls help with a solution!

    Thanks and greetings
    user 10685325

    Check the [documentation for get_item_property | http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/builtg/getimpro.html]
    It returns 'TRUE' or 'FALSE '.

  • Control the visibility of components

    Hello

    I am new to Adobe Flex UI technology.

    Here's what I want to implement in my island of Flash (to be used in SAP Web Dynpro).

    1. There will be a public boolean type of attribute 'isVisible '. This attribute will be set to true/false for SAP Web Dynpro.

    2. now, if this value is true, I have to show a VBox

    3 and if its fake, that I have to show a text "you may not to view this page" instead of as VBox.

    Can you please help me understand how to do this?

    Thank you and best regards,

    Amey

    so, what of it?

    you code

    If (user is pilot)

    {viewstack1.selectedindex = 0 ;}

    of other //if(user!=pilot)

    {

    viewstack1. SelectedIndex = 0;

    }


           

    Put your vbox
           
           

    Put your textbox
           
       

  • How to control the default visibility of a column in the grid by using the extension. vsphere.core point ${objectType}.list.columns

    It seems that certain built-in objects have some hidden by default (in the objects tab) the grid columns. For example, the object of vApps has the column "managed by" hidden. How a column in the grid on the tab of object can be hidden by default in the sample of chassis-ui?

    Thanks in advance,

    -Darrell

    It is not possible to control the visibility of the column by an extension point.  The built-in objects using their own point of view of list.

  • change the visibility of the label of C++

    Hello.

    the main page of my application contains a container with a ListView that is filled with an ArrayDataModel defined as a Q_PROPERTY.

    There is also a label on the Page I want to be invisible when the ArrayDataModel is empty.

    All this would be in QML I found that it works. I set the ArrayDataModel in QML as follows:

    attached Objects: [
      id: theDataModel
    
      property bool empty: true
    
      onItemAdded: empty = isEmtpy()
      onItemRemoved: empty = isEmtpy()
      onItemUpdated: empty = isEmtpy()
      onItemsChanged: empty = isEmtpy()
    
    ]
    

    I can't use here because my ArrayDataModel is defined in C++.

    I think I should use signals and slots. But then I have to write all this is the signal (as when adding, deleting, changed the DataModel) and connect it to the label.

    Is it the way I have to go. Or is there a simpler way?

    You can set your DataModel in QML, but fill it in c++ (several of the tutorials do that elsewhere, see for example the example of quote).

    This way you can always control the visibility of your labels through QML

  • Is there a more efficient way to use the visible property node to make the inactive/hiding controls on the front?

    I just inherited the labview code to run a system of imaging optics mamography.

    It has 32 sources 128 detectors and 2 games of light and the user has the possibility to control the parameters of gain for each sensor to each source for each source of wavelengths, so as you can imagine there are a lot of orders and LEDs on the front panel.

    The user also has the possibility to choose the number of sources and that they would like to use detectors.  v: * {behavior:url(#default#VML) ;} O'Bryan: * {behavior:url(#default#VML) ;} w\: * {behavior:url(#default#VML) ;} .shape {behavior:url(#default#VML) ;}}}} Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    Depending on how many sources are entered labview code through a loop For which in fact a 'smooth box' visible or invisible, on the adjustment of gain control depending on whether the current detector is greater than the seizure of the number by the user.  This loop slows down the program because it works 128 times (max number of detectors) and has 4 structures deal (2 sets of wavelengths, 2 for each breast) with 64 nodes of property each where it is visible property to enabled or disables the box with that covers the detectors.

    I was wondering if there was an easier way to enable or disable controls for unused detectors, not only that slows down the program but to reconfigure the data to use more sources, I stop the program and restart it.

    Any advice on the creation of a dynamic front would be appreciated


  • I want to get multiple clips horizontally through the frame, how can I control the speed at which the move?

    I want to get multiple clips horizontally through the frame, how can I control the speed at which the move?

    And the second

  • Ring controls to create the visible circle

    I try to use the ring on the front panel control to specify a circle with a radius of particuly pixel, and I'd like to be able to drag the circle around different x / Y positions.  I was able to do, but the problem is, I don't see where the annular space is located on my image (the controls of the annular space do not give the corresponding circle anywhere) - there is no visual, just output text feedback in control boxes.  Otherwise, I was able to create a circle on top of my image which acts as a region of interest using the KING property on the property node.  The problem here is that I can not specify the RADIUS in pixels of the circle I draw my image above.

    So basically I want to display a circle on top of my picture showing the return on investment and I want to be able to control the radius around an area of controls.

    Jessica

    Hello, Jessica,.

    You can use the ring to convert IMAQ VI KING and the Overlay IMAQ KING VI to do this. The IMAQ convert Annulus VI takes a command input through which you can specify the RADIUS, X, Y and angles of the annulus. After that, the Overlay IMAQ KING VI will let you see the annular space displayed in the control to display the images. I hope this helps.

  • Control the volume of the multiple MediaPlayers - mediacontroller.h library of basic API

    Hello

    As I wrote

    http://supportforums.BlackBerry.com/T5/native-development/how-to-set-media-player-s-volume-in-QML/TD...

    I can't control the volume of a MediaPlayer object using myPlayer.setVolume ().

    I managed to set the volume to help:

    void ApplicationUI::setVolume(float val)
    {
        //audiomixer_set_output_level(AUDIOMIXER_OUTPUT_SPEAKER, val);
        mediacontroller_volume_set_level(val);
    
    }
    

    mediacontroller_volume_set_level() library of base API mediacontroller.h method.

    But it works on the single instance of MediaPlayer that I have on my QML, and I need to find a way to control the volumes of several players. How can I configure a specific MediaPlayer as "active" or "current" to call the

    mediacontroller_volume_set_level(val);
    

    Hi burakk,

    Please refer to your first forum post for the explanation and the code snippet on how to implement what you're trying to reach. I checked using the sample application 'nowplaying' that the MediaPlayer API setVolume method works as expected. I hope that helps!

  • Script request to toggle the visibility of the multiple layers using regex

    Hello

    I did a ton of research, trail / error and need to reach out for help.

    I'm trying to create a PS script that activates / deactivates the visibility of the layers AND groups based on a regular expression in a PS document.

    EXAMPLE GROUP PS & LAYERS STRUCTURE

    =======================================

    • / / example

    • header

    -some layers

    -/ / test

    • footer

    -another layer

    -/ / content area

    Bullet = group

    Hyphen = layer


    This script should hide the two "/ / example", "/ / test ', and ' / / content area ' on track. Ideally, the script would reveal these layers and groups.


    I managed to find two scripts that make each half of the result you want below.

    Part 1: Use of regular expressions to locate each layer and the Group (I changed the reg exp for use cases):

    Re: Script to search for layer names

    by: Michael L Hale

    var re = /-/-/. * / ; corresponds to a reg exp var = collectNamesAM (re); Download the table of correspondence of layer indexes for (var l = 0; l < matches.length; l ++) {makeActiveByIndex (matches [t], false);   do something with layer alert (app.activeDocument.activeLayer.name); } / / next match if no function collectNamesAM (re) {var allLayers = new Array();   var startLoop = number (! hasBackground());   var endLoop = getNumberOfLayer();   for (var l = startLoop; l < endLoop; l ++) {if (! isValidActiveLayer (l)) {l ++;}}   } If (match (re) getLayerNameByIndex (l)! = null) {allLayers.push (l);   allLayers return}}; }; / * / / / / / Function: getActiveLayerIndex / / Description: Gets Gets the index of the Action Manager API / / to activeLayer corrected for background layer / / use: var idx = getActiveLayerIndex();  Entry: No / / Return: number - correct AM itemIndex / / Dependices: hasBackground / / / * / function getActiveLayerIndex() {var Ref = new ActionReference();   ref.putProperty (1349677170, 1232366921);   ref.putEnumerated (1283027488, 1332896878, 1416783732);   var RES = executeActionGet (Ref) .getInteger (1232366921) - number (hasBackground()).   RES IS 4? RES ++: res / / why the skip in this doc?    return res; } / * / / / / / Function: (isValidActiveLayer) / / Description: LayerSection checks for the "real" layers / / use: if (isValidActiveLayer()) / / entry: no / / return: Boolean - True if this is the end of a game / / Notes: not necessary if the layer has been made active / / using the Action Manager API / / / * / function isValidActiveLayer (idx) {var propName = stringIDToTypeID ("layerSection"); / / cannot replace var ref = new ActionReference();}   ref.putProperty (1349677170, propName); TypeID to "Rprp" / / "Lyr", idx ref.putIndex (1283027488, idx); ""   var / / desc = executeActionGet (ref);   type var = desc.getEnumerationValue (propName);   var RES = typeIDToStringID (type);   return res == "layerSectionEnd"? false: true; }; / * / / / / / Function: hasBackground / / Description: bottom layer using AM API Test / / use: if (hasBackground());  Entry: No / / return: Boolean - true if a background layer doc / / Notes: requires that the document be active / / DOM: App.Document.backgroundLayer / / / * / function hasBackground() {var res = undefined;   try {var Ref = new ActionReference();   ref.putProperty (1349677170, 1315774496);   ref.putIndex (1283027488, 0);   executeActionGet (ref) .getString (1315774496);   RES = true;   } catch (e) {res = false} return res; }; function makeActiveByIndex (idx, forceVisible) {try {var desc = new ActionDescriptor();}   Var ref = new ActionReference();   ref.putIndex (charIDToTypeID ("Lyr"), idx) desc.putReference (charIDToTypeID ("null"), ref);   desc.putBoolean (charIDToTypeID ("MKV"), forceVisible);   executeAction (charIDToTypeID ("TPCV"), desc, DialogModes.NO);   } catch (e) {return-1 ;}} ; function getNumberOfLayer() {var Ref = new ActionReference();   ref.putEnumerated (charIDToTypeID ("Dcmn"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));   var / / desc = executeActionGet (ref);   var numberOfLayer = desc.getInteger (charIDToTypeID ("NmbL"));   Return numberOfLayer; }; function getLayerNameByIndex (idx) {var Ref = new ActionReference();   ref.putProperty (charIDToTypeID ("Rprp"), charIDToTypeID ("Nm"));   ref.putIndex (charIDToTypeID ("Lyr"), idx);   Return executeActionGet (Ref) .getString (charIDToTypeID ("Nm")) ;} ;

    This script shows an alert for each layer / group name that corresponds to-is to find the layers / groups!

    Now I need the layers / groups to simultaneously show or hide depending on their status.


    I found a script that toggles the visibility of a specific name (in this case "GRID") here:

    Photoshop-grid-enable/disable/turn Grid.jsx to master · squarefrog/photoshop-grid-toggle · GitHub

    var gridName = "GRID"; Implement what you call your grid layer together. function toggleGridLayer() {if (app.documents.length > 0) {var gridLayer = app.activeDocument.layerSets.getByName (gridName);}}         gridLayer.visible =! gridLayer.visible;     toggleGridLayer()}};

    Essentially, I want to merge the tilting head of visibility script in the script of the regular expression. Any help would be great. Thanks in advance!


    Note: The use of CC PS 2015

    This script is all on one line and hard to see where are the separate lines. If you want the code to turn on or off a layer, you can use:

    var docLayer = app.activeDocument.activeLayer;
    docLayer.visible=docLayer.visible==false;
    

Maybe you are looking for