Dynamic creation of a control based on the input

Hello

Is it possible to change a control on the front panel?

If the entry is a string I want to show a string. If the input is an integer, I want to show a cursor for example.

I have a plan to implement on the different tabs and display the tab which must be shown, but maybe there's a faster, easier way?

Thanks for the help!

Kim

Hi Kim,

Thanks for the additional info.

The dll and its manual to define what can be output and that's why you need to refer to the manual.

When you call a dll in LabVIEW, you must set the parameters of static output and so data cannot be of a type for example if set it as a table, it will always be a table. This look for the 'node of function call' in the range of functions-> connectivity-> libraries & Executeables.

Tags: NI Software

Similar Questions

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • Is there a way to child entities of control based on the values of list drop down Parent entity on the screen of the user interface

    Hi team,

    Need your inputs / help on the scenario below.

    I created the interested part called parent entity (created attributes stakeholder list dropdown attribute with values 'Individual' and 'Organization' and a few other attributes on this entity).

    Child entities created called 'the individual' and 'organization' and created interview screens as below.

    1 entity parent on a single screen (interested party)

    2. child entity on a single screen (the individual)

    3. the entity child another (the Organization) on another screen and created vibility rules like this and applied at the level of the screen.

    Individual information should be displayed, if

    for each all instances of the interested party , the interested party is individual

    Organization identity information should be displayed if

    for each all instances of the interested party , the Type of party's organization

    I created 2 instances. We're interested type as an "individual" and other is by "organization". But as soon as I click on the next button, it doesn't show any entity child screen because it is directly go to another screen.

    If I create instances with the same type, he has been creating the filter based on the type. Please let me know if there is any change to the rules of visibility.

    Thank you

    Viv

    I created as below and the problem is solved without the help of the functions of the entity.

    Individual information should be displayed, if

    the interested party Type = 'individual '.

    Organization identity information should be displayed if

    the party interested in Type = "organization".

    Thank you

    Vivek

  • Creation of a command based on the available settings

    Hello

    It is more a question PowerShell General rather than VMware, but given that the script in question is to create a virtual machine, I'll ask here in any case.

    I want to create a feature to deploy a computer virtual based on the given parameters, i.e. If for example a data store and spec of customization are given, but a model is not, of course, I don't want the - template parameter in the New - VM command as it will return a null value error.

    I came up with the following which works, but I was wondering if there was a better way to do this:

        # build parameter strings
        if($template) {
            $templateParameter = " -Template $template"
        }
        if($datastore) {
            $datastoreParameter = " -Datastore $datastore"
        }
        if($custSpec) {
            $custSpecParameter = " -OSCustomizationSpec $custSpec"
        }
        if($location) {
            $locationParameter = " -Location $location"
        }
    
    
        # build deploy command string
        $deployVmCommandString = "New-VM -Name $name -VMHost $vmhost" + $templateParameter + $datastoreParameter + $custSpecParameter + $locationParameter
    
    
        # convert deploy command string to scriptblock
        $deployVmCommand = $executioncontext.invokecommand.NewScriptBlock($deployVmCommandString)
    
    
        # execute scriptblock
        Invoke-Command -ScriptBlock $deployVmCommand
    
    

    Hope that you can see what I'm trying to do what above, it works, I was wondering if there is an easier way!

    See you soon

    Harry

    Hi LucD,

    Thank you for making me know the commands of Proxy, after having cleared my brain and reading through it, I like how it works!

    In the end I opted for a different solution, rather than spend all the individual properties of the virtual machine to the function I spend a PSObject, pass through the properties in the object and build a chain of command based on the properties that are available, I love this solution:

        Param(
            [psobject]$vm
        )
    
        $deployCommandString = "New-VM"
    
        # build command string
        foreach ($property in $vm.psobject.properties) {
            $deployCommandString += " -" + $property.Name + " " + $property.Value
        }
    
            # convert deploy command string to scriptblock
        $deployCommand = $executioncontext.invokecommand.NewScriptBlock($deployCommandString)
    
        # execute scriptblock
        Invoke-Command -ScriptBlock $deployCommand
    

    Thanks for your help!

  • Change the structure of program based on the input file

    I have a program that takes parameters of an input file and then executes a Visual acquisition, using IMAQ, controlling some other hardware at the same time.  The duration of the various stages of this process control settings.

    There is a sequence stacked structure to control the playback of the input file, the initialization of the hardware, and then a while loop on the last image to actual purchase.

    The user of the program now wish to have several games acquisition in the same race, possibly with different time settings.  This would mean different iterations of the final loop, based on the parameters of the input file.  There could be 5 games of acquisition on occasion, 3 on another, etc., in a performance of the program.

    The structure VI already seems a little baroque, and I don't want to make it even more complicated.

    I would appreciate advice on how best to proceed, because I'm really a novice of LabView.

    If you use a "State Machine" architecture, you can do exactly that.

    Instead of having a structure of stacked sequence, it is essentially a case structure in a while loop.

    Each case represents a State.

    So in your case, you would have a State for:

    -reading the input file

    -initialization of hardware

    -data acquisition

    You can have the user controls the number of iterations of the State for the acquisition of data that you want to run.

  • Workflow based on the input parameter

    I use JDev 11.1.1.6.

    I have an application that uses a workflow with 'ExecuteWithParams' to get the parameter from a URL and display the records on a page.

    I have it using a Bind Variable on the VO that corresponds to the InputParameter on the control ExecuteWithParams.
    What I would like to make is the flow to another page, depending on the parameter used in the URL.

    Example:

    If param in the URL is '? TEAM = 1 "then I go to the TEAM page and display records for TEAM 1.

    If param in the URL is '? REGION = 3 "then I would go to the REGION page and display records for REGION 3.

    Thank you
    Ray

    This could probably be resolved using a router activity or a custom default activity in the workflow method. Then from the method/router, can easily get to the desired activity of the TF based on an input parameter. For example if the parameter is route 'region' to executeRegionIteratorWithParams, which, in turn, can "go" to view displayRegions activity.

  • How to change a region title based on the input parameter?

    Hi all

    I need to change the title of the dynamic region based on the value of a selection list in another region.

    Can someone help me in this?

    Kind regards
    Santini.

    Hello

    You can use & P1_ITEM_NAME. (including the & and the.) the title of region - this string will be replaced by the value of the item page called P1_ITEM_NAME, then change the name according to your order of the day of the page

    Andy

  • Adding control to select the input of the chart data?

    I have a device which sends several channels of data via TCP.  I created a (attached) VI that analyzes this data in integer multiples.  Can I connect a graph (I use graphics mode band) to one of these inputs.  The problem is there is about 50 channels and I don't want 50 cards of band.  I would like to graphs 4-8, with the possibility to choose the input for each use of a control channel.  Any ideas on how to achieve this?  Thank you!

    Use the table to Index.  Connect the table of Boolean to the Board Index. Connect the channel switch to the Index entry. Connect the output to the chart through the Boolean primitive to (0,1).

    For several graphics expand the Index table and connect the selector for each chart to a different Index entry.

    Lynn

  • Loop of work based on the input (as if... else) variables

    HI friends,

    This is my first, if I'm not following all the rules excuse and say to those.

    I want to use the loop for based on the variable passed.

    Under code is wrong, but you can understand my intention.

    CREATE OR REPLACE PROCEDURE sp_pins_deactivation)

    pi_prepaidcard_no IN STR2048_TBLTYP, - Table type

    pi_from_range IN VARCHAR2,

    pi_to_range in NUMBERS)

    Start

    IF pi_from_range is not null and pi_to_range is not null

    THEN

    I'm in pi_from_range... pi_to_range

    LOOP

    ON THE OTHER

    I'm in pi_from_range... pi_to_range

    LOOP

    END IF;

    .......................

    .....................

    ..............

    END LOOP;

    end sp_pins_deactivation;

    create or replace procedure nTtest (nT nTable, start_val number: = null, end_val number: = null) is

    Start

    I'm in coalesce (start_val, nT.first, 1)... COALESCE(end_val,NT.) Last, 10)

    loop

    dbms_output.put_line (I |) ': ' || (-case when nT.exists (i) and (i) nt end of another "no entry");

    end loop;

    end;

    /

  • Navigation based on the input textfield value?

    Hi all.

    I use Captivate4. In my project, I would like to navigate from one slide to another slide based on the value entered in the input textfield (as if as a drop down menu).

    slide1.jpg

    The image shows, if the user enters the values, it must navigate to slides respectively. So, I got a tip in this way action.

    actions-dialog.jpg

    Hello

    Welcome to the Adobe Forums,

    In order to reach the workflow that you specified in your post that you need several "check if ' for all defined slides the tip on the button click Action.

    For Ex.

    For "a" TI will look like this:

    Because if "two" will look like this:

    Rest allows you to change the variable, just make sure that these all will be on this same script for a button

    It could be useful!

    Thank you

    Vikram

  • Filling of textfield based on the input of another textfield

    Hi guys,.

    I have a problem.

    I have a textfield and the input of information in which must be completed in antother textfield. It seems easy, but the trick is. For each new entry a new textfield should appear with this information. My problem is that it creates a textfield, but for every letter I type in and not to a string when I press ENTER.

    See attached example.

    I hope you can help me!

    Thank you

    Diana

    This is the code: (I can't reach the example for some reason any) Table_SF._Repeat_SF.addInstance (1); xfa.resolveNode "(Table_SF. ("Repeat_SF [" + (Table_SF._Repeat_SF.count - 1) + ' "] '). TextField1.rawValue = xfa.event.newText;

    Instead of placing the code in the event changes, copy it to the Exit event.

    Table_SF._Repeat_SF.addInstance (1);

    xfa.resolveNode "(Table_SF. ("Repeat_SF [" + (Table_SF._Repeat_SF.count - 1) + ' "] '). TextField1.rawValue = this.rawValue;

    Thank you

    Srini

  • Disabling and or hiding controls based on the value of a popup

    How should I do for this? I have defined indicators for the param popup to PF_ParamFlag_SUPERVISE as follows

    def. Flags = PF_ParamFlag_SUPERVISE;

    () PF_ADD_POPUP

    'Mode',

    6,

    1,

    "Option 1 | Option 2 |... »,

    POPUP_MODE_ID

    );

    And I am typing the command PF_Cmd_USER_CHANGED_PARAM as follows

    case PF_Cmd_USER_CHANGED_PARAM:

    ERR (UserChangedParam (in_data, out_data, params, output, reinterpret_cast < PF_UserChangedParamExtra * > (additional)); )

    break;

    ...

    static (PF_Err UserChangedParam)

    PF_InData * in_data,

    PF_OutData * out_data,.

    PF_ParamDef * params [],.

    PF_LayerDef * outputP,.

    PF_UserChangedParamExtra * additional)

    {

    PF_Err err = PF_Err_NONE;

    If (extra-> param_index == POPUP_MODE_ID)

    {

    If (params [POPUP_MODE_ID]-> u.cd.value == 2)

    {

    Code to activate and display controls

    }

    on the other

    {

    COSE to disable or hide controls

    }

    }

    return err;

    }

    I'm doing all right so far? What is the code that I put in the "if (params [POPUP_MODE_ID]-> u.cd.value == 2)" block to turn off a setting? What a difference the code would be to hide the parameter completely? Can I hid the subjects just like I can hide the parameters? I'd have a use for all three things, I just can't understand how do.

    Hmmm...

    everything seems ok...

    a number of things:

    1. use a NULL value instead of globP-> my_id

    2. who owns & meH? how it was created?

    3. making the previous calls to suites in the same scope work? (i.e. is this specific line, or is it just the first to be called)

  • automatic creation of form elements based on the Recordset

    I would like to know how I can automatically fill in a form with text fields, radio buttons, and text boxes items.  I am attaching a video that shows what I mean.  timeline 03:45-04:25.

    It uses the CS6 version; I have CC version and cannot find a way to reproduce what the guy has done in the video in CC.

    I have a database and links already set up.  There is simply no form more Update Record Wizard. I know there is an update record server behavior that succeeded him, but the workflow is not the same thing as what is shown in the video.

    Especially when (in my case) I have to create more than 50 different forms.

    I'm guessing there are a lot of things in common to these forms. If the best solution would perhaps be to write a PHP class, or an include file, which distributes these forms where they are needed, using variables to deal with differences between the forms (and I mean not just the id of the record, but also a part of the query) this approach makes it much easier to maintain the code.

    If you write your own shapes (to do all your own codes), they will be better forms. You will learn ways to make applications more secure, user-friendly and efficient.

    I'm working on the PHP forms, daily and never wish for a tool to automate the process. If I was forced to use the DW data tools I would be more upset you're one of them be removed.

    My point is that you are naturally unhappy to have something you brought used, but I think it will be better for you in the long run. I know there are tools available third-party data. My advice is: do not replace one crutch with one another.

  • Change cell color in a table based on the input

    Hi guys

    Please refer to my example, I have attached. I had a 2d with som information table. 1 row = 1 component information and it's electric. This table is put in a table when you press "Update" in the front panel. My goal is that based on index 1 of table (col2 'Edge'), the color of the TableRow should change color. If the contents of the line is S20-1, the color should be red and so on. It works a little bit, but I'll have a few bugs:

    -You must press "Reset" twice in order to remake the Whiteboard.

    -The first colorchange also changes the color of the entire table. I want my whiteboard and lines to change color (header and TableRow unused must be white).

    You can change the first element in the array constant of S20 - 1-S20 - 3 and you will see that my program brings to the whole blue table on the first colorchange.

    Is this a mistake on my part? Or is this a bug in LV (which I doubt)?

    Property nodes are running up and down, and you have the reverse order. You set the color first, and then the active cell, which means that the colour be trolling a run.

    Your code is also too complicated. Here's a quick draft how this could be done. Let me know if you have any questions.

  • LabVIEW basics - Cahnging Boolean State question based on the input signal

    Hi all

    I would like the State to change the Boolean indicator based on a simulated sine wave signal. I have partially managed to do this but need help to develop it.

    See the attached vi. At the present time changes Boolean false to true when the value of the signal is greater than 8 or lower than-8.

    The focus I need is:

    Once the signal passes more than 8 (and the Boolean value becomes true), I hope it becomes false again to a value of 9, but only after the peak value was passed or when the signal is down.

    Similarly on the negative side of the graph, I want the Boolean value to become reality at 8-under, stay true until after the peak value was passed and then back to false when the value is greater than-9.

    Any suggeastions?

    Thank you

    While Crossrulz responded, I had a little look.

    Don't let me spoil your pleasure with the VI attached. Have a go yourself.

Maybe you are looking for

  • Airport Extreme control app won't load on EL Capitan

    Two questions really.  I was looking for a complete manual for the AIrport Extreme, so I could find our wha that the capacity is before, I bought.  All I could find were manual installation.  Same story when I rang Applecare. It appeared that the onl

  • Satellite L755 after error - BIOS update service is not a warranty case

    The problem began when Toshiba Tempro program notified me that I need to update bios for my laptop Satellite 755. I have downloaded the file to the Toshiba site, followed all the instructions. The process - there was error check. Tried twice. The sam

  • nimxs.exe automatically processes the call VISA::viFindRsrc.

    The process nimxs.exe running in the background automatically call VISA::viFindRsrc whenever the device I tested is connected to my computer. The device is connected as a network card. This process is finding various devices on the network and with u

  • Subvi controls

    I have a cluster of Boolean controls on my front. I want to manipulate the properties of these Booleans to a Subvi. I sent the RefNum of the cluster to the Subvi and want to seel a group of disabled properties. I found that I only see a property of t

  • My blackBerry curve Smartphones suddenly started acting weird! does not work! Help!

    Hello everyone, I have a curve 8310 and 2 days ago, it started working too slowly... Sand clock little shows every time for like 10 secons, before even answering a call! In addition, even when I checked in my settings I want to save my text sent mess