Pass Variables through Case

Hello! I am trying to write a VI to control hardware through GPIB communication. The communication is going well. However, I would like to change which vi controls are enabled for the user based on which "mode" the user selects. This mode is 1 of 3, and it would be determined by the user clicking a boolean switch. My plan is for the switch to be a single LED control, and when one of the three is on, the other two are off. If a new LED is clicked, it will light up and the others will go off. I am having difficulty making this. I was planning on using a case structure, but I cannot figure out how to determine which is selected and have this effect, because I cannot edit the values of each control in every case in the structure. I thought about using local variables and passing them through the case structure, but I cannot seem to get this to work either. I appreciate any help in solving this. Thank you in advance!
Solved!
Go to Solution.

This sounds like a job for Radio Buttons instead of three separate booleans.
Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome

Similar Messages

  • Passing variables through the URL String

    I have a template and outside the basic html - all the content is grabbed from a db. I want to use 1 template to generate all of the other pages for the site. So basically, the only way to identify the page would be through the URL string.
    So, something like -
    www.mysite.com/template.jsp?page_section=aboutus&pageID=1
    That string would query the database and output the content for page 1 of the about section.
    Does this make sense and where would I start to learn how this is done?.
    Again, I appreciate your help.
    Mark

    since database connections are costly affair i better use
    jsp include tag ratter then getting dadta from database
    assumming that u can devide your comman pages in 4 parts
    just assume
    top - logo
    bottom - common links
    center - data
    left - menu
    my jsp page would look like this (aboutus.jsp)
    <%@ include file="top.html" %>
    <%@ include file="left.html" %>
    <%@ include file="aboustus.html" %>
    <%@ include file="bottom.html" %>
    2) disclaimer.jsp
    <%@ include file="top.html" %>
    <%@ include file="left.html" %>
    <%@ include file="disclaimer.html" %>
    <%@ include file="bottom.html" %>
    this would reduce ur maintainnce as if u want to change top logo only top.html needs to be changed and it would affect in all pages
    regards
    [email protected]

  • Passing variable value as a prompt

    Hi All,
    I have one problem related to passing variable through prompt. let's discuss whole situation. Suppose I have 5 interface having variable say user_id in each interface. And 5 packages for each interface. Now I have generated scenario for these packages. I am using these scenario to create one master package. Also I have created scenario for master package. Now I want to do something like this. When I execute scenario of this master package there should be one prompt asking value for user_Id value and that value should pass to all packages and interface and same value should be inserted in target table. I can bring prompt but can not insert that value in database.
    Request you to help me out in this case.
    Thanks and Regards
    -Pallav

    Hi Pallav,
    Not sure how are you trying to insert the variable value in the database but you can create an ODI variable to capture the user entered data from the scenario UI and you can pass the same variable to the underlined package/interfaces.
    Could you elaborate a bit more on the inserting the variable value in the database.
    Thanks

  • Pass Variables into AS3 through Query String?

    Man! I've been searching ferociously and can't seem to find a solution that works for me. I am trying to pass variables via query string on a PHP page to Flash, and then have the swf add movie clips to the stage depending on the information it receives.
    Here is what the PHP outputs:
    swfobject.embedSWF("flash/detailScore.swf?a=0-0&b=0-0&c=30-54&d=30-20&e=42-18", ...
    And here is my AS3 code:
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);
    The addTheResults function takes the coordinates, adds a MC instance to the stage and positions it accordingly.
    var colorMCArray:Array = new Array();
    function addTheResults(val,colnum:Number){
    if(val == null){val = "52-46";} // so I can test it locally
    var daColor:String;
    switch (colnum){
    case 1:
    daColor = "f3951c";
    break;
    case 2:
    daColor = "74b47d";
    break;
    case 3:
    daColor = "436494";
    break;
    case 4:
    daColor = "9b74ac";
    break;
    case 5:
    daColor = "b43d44";
    break;
    var dash:int = val.indexOf("-");
    var lateral = val.slice(0,dash);
    var vertical = val.slice(dash+1);
    lateral --;
    vertical --;
    // adding the MC instance
    var comm:tileB = new tileB();
    comm.name = "comm"+colnum;
    addChild(comm);
    colorMCArray[colnum] = comm;
    //Change the color
    var colorTransform:ColorTransform = colorMCArray[colnum].transform.colorTransform;
    var thiscolor = "0x"+daColor;
    colorTransform.color = thiscolor;
    colorMCArray[colnum].transform.colorTransform = colorTransform;
    colorMCArray[colnum].x = 5;
    colorMCArray[colnum].y = 536;
    colorMCArray[colnum].x += (lateral * 9);
    colorMCArray[colnum].y += (vertical * 9)*-1;
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OVER, btnro);
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OUT, btnrout);
    I don't know what I'm doing wrong here.

    Was this the "e" in the code below you were pertaining to as the culprit? "e" is not a keyword. It's just the shortcut for the word "event" for the variable name of type Event which is the Event object that triggered the call of function loaderInfoSh. In your code you assigned e = myQueryString.e which should have given you a type mismatch error.
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);

  • Passing variables using the URL

    in the past I have alsways used internal navigation methods
    within Flex - i.e. viewStacks, and linkBars etc... but I need to
    use an (existing) external menu and link (communicate) it to my
    Flex Application.....
    is it possible to pass variable to (into) a flex 2
    application using a URL
    e.g.
    http://...............
    ?page=homepage
    picking this variable ("page") up and getting its value (in
    this case "homepage")
    and then use the variable in the Flex application to display
    the relevent component...... ???
    basically, I am trying to navigate through a Flex application
    using an external menu system etc...... and displaying the
    particular components within the Flex application relevent to the
    select links (within the external menu system) communicating the
    two using a URL etc......
    thanks,
    Jon.

    Passing data into a Flex app using the url on startup
    requires working with the html handler, causing it to build
    flashvars in the Embed or Object tag. Inside Flex, these are
    accessed using the Application.parameters array.
    But it sounds like you want ongoing communication between the
    Flex app and the browser. For this you should use
    ExternalInterface. I have not used it at all, so I can't be any
    specific help.
    Tracy

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

  • Can I pass variables in the URL string?

    I am trying to get some variables into a loaded swf at
    runtime. The variables will carry information so the swf can load
    the correct xml file. I thought we could pass them through the URL
    string like so:
    new URLRequest("testing.swf?myVar=varOne
    but it just throws an URL cannot be found error. How can I
    get variables into my swf at runtime?

    What you are doing is fine. But you will always get that
    error when testing
    the movie (Ctrl+Enter). Try it in a browser and it should
    work.
    BTW, another way of doing the same is to use a URLVariables
    object, like so:
    var req:URLRequest = new URLRequest("testing.swf");
    var vars:URLVariables = new
    URLVariables("myVar=varOne&myVar2=varTwo");
    req.data = vars;

  • Passing  variable val to UPC_BUNDLE_EXECUTE_STEP program in prc chain

    Hi
        i have a problem regarding background sheduling of Global Planning Sequence using Process chain.This Global sequence should run for different values of a char.In my level i restricted that Char with a variable which is ready for input.In process variant i maintained the values of Char to be Executed.When i am running the Process chain it is giving the following Error message.
    Characteristic XS_CRCLR must be ready for input in package XPPWLN05 .
    I tried to remove the variable in level and made it as selection and tried to select a variable in Packge .It is not allowing me to select a variable.
    1.Is there any way to Solve this Problem?
    2.and i am thinking of passing variable value through ABAP program in process chain after every execution. will this work? 
    Is there any document regarding Background scheduling of global Sequence?
    any suggestions will be appreciated.
    Thanks
    Suresh

    Hi Suresh,
       I felt links may be better useful fro you...
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/help/sdn_nw04/saphelp_nw04/helpdata/en/80/a22130f6fc4264a822e9895468f3f5/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/forums/sdn_jive_forums/thread{74687265616449443d3534353238}.jspa
    Thanks,
    Raj

  • Passing variable number of arguments in a stored procedure

    Hi Team,
    i am facing a problem. I have a dynamic form which contains some checkboxes. The number of checkboxes are dynamically generated on querying the database. On the form submission i want to call a stored procedure that will update the values in the database. i want to know that is there any way to handle variable number of arguments in the stored procedure or can i get the variables through some session context and use it in my stored procedure.
    Any help is greatly appreciated.
    Thanks&Regards
    Saurabh Jain

    Hi Saurabh,
    The method in which stored procedures are called on form submit is something as follows.
    Let us take your scenario of a form which has multiple checkboxes and a submit button. On clicking the submit button, this form data is submitted using either get or post. The form's submit action invokes a procedure.
    The HTML form code will look something like this..
    htp.formOpen( curl => 'URL /myProcedure',
    cmethod => 'post' );
    htp.formCheckbox( cname => 'myCheckbox'
    cvalue => 'A');
    htp.formCheckbox( cname => 'myCheckbox'
    cvalue => 'B');
    htp.formCheckbox( cname => 'myCheckbox'
    cvalue => 'C');
    htp.formSubmit( cname => 'myButton',
    cvalue => 'OK');
    Now, whenever the submit button is clicked, all these form values are passed to our stored procedure 'myProcedure'.
    "myProcedure" looks something like this.
    procedure myProcedure
    myCheckbox IN sys.owa_util.vc_arr,
    myButton IN VARCHAR2
    is
    begin
    end myProcedure;
    The point to be noted here is that the name of the variable being passed in the procedure is the same as the name of the HTML element being created in the HTML form. So, there is a direct mapping between the elements in the HTML form and the procedure parameters.
    Another noteworthy point is that since you have multiple checkboxes in your HTML form, it is impractical to name all the checkboxes differently and then pass those many parameters to your procedure (Imagine a scenario where there are a hundred check-boxes in an HTML form!). So portal allows you to give the same name (cname) to all the checkboxes in your HTML form, and if multiple checkboxes are checked, it will return all the checkbox values in an array (Note the usage of "myCheckbox IN sys.owa_util.vc_arr" in myProcedure).
    You can check out this link for more information.
    Re: retrieving data from fields
    Thanks,
    Ashish.

  • Pass variables between skillgroups on CTIOS Agent Desktop

    We need pass variables in the next order:
    1. The agent receives the call and insert variables in the CTIOS Agent Desktop.
    2. The agent transfers the call to another skillgroup DN
    3. The call is assigned to another agent.
    4. That agent should see the variables.
    My question is "Is this possible in UCCE 9.x and how configurate that?"
    Thank you.

    Dear All,
    In order to keep the variables passed within the same call leg, you need to use something called Warm Transfer, you need to create the DNP in CCM as CTI Route point, in this case and only thing case the variables can be passed.
    I was able to do it with CVP, even i was able to save the language accross the whole script that the agent can transfer the call to IVR back and the IVR can read the Language from the original entry (before transfering to agent) and the IVR will be played according to that.
    You just need to create the dail number in the UCCE to be in the CUCM PG Routing client (not cvp or IPIVR).
    and you need to create a label for the CUCM in the UCCE.
    Amer

  • How we can pass variable to ODI scanerio running by weblogic ODI console

    Hi
    I have to execute scanerio by ODI weblogic console and pass variable as argument during run time to scanerio.
    Is there any way to implement this?
    Thanks

    Hmmm...never tried this.
    But you can create a function that returns a value and try invoking it through "SELECT func1() FROM dual.." in the Refresh section. See if that works.

  • Pass value through URL without setting local page item

    Folks,
    I have a table where I have created a dummy column with a hyperlink on it to go to another page in the application which runs a report passing through columns on the table
    As I am doing this several times (for different pages in my application) - Is there a way of passing a variable through a URL to a report without setting a local variable
    i.e.
    Click Here
    Here I am assigning a local variable on Page 25 which is hidden called P25_TEST1
    What I would like to do is pass the value straight to page 25 (which runs the report) without the need to create hidden items on the report pages all the while
    Thanks
    Gareth

    You have a plain HTML page that loads with a url with something like ?field=value
    And you want "value" to show on your page, correct?
    <html>
    <body>
    <script>
    var qsParm = new Array();
    function qs() {
    var query = window.location.search.substring(1);
    var parms = query.split('&');
    for (var i=0; i<parms.length; i++) {
       var pos = parms<i>.indexOf('=');
       if (pos > 0) {
          var key = parms<i>.substring(0,pos);
          var val = parms<i>.substring(pos+1);
          qsParm[key] = val;
    qsParm['field'] = null;
    qs();
    if (qsParm['field'])
         document.write('You selected ' + qsParm['field'] );
    </script> 
    </body>
    </html>
    Call that as test.html?field=Hello
    Here's a nice link that explains it in detail: http://www.eggheadcafe.com/articles/20020107.asp

  • Passing Variables from One Class to Another

    Hello, I am new to Java Programming and I'm currently starting off by trying to build a simple application.
    I need help to pass variables created in one class to another.
    In my source package, I created 2 java classes.
    1. Main.java
    2. InputFileDeclared.java
    InputFileDeclared reads numerical data from an external text file and store them as string variables within the main method while Main converts a text string into a number.
    Hence, I would like to pass these strings variables from the InputFileDeclared class to the Main class so that they can be converted into numbers.
    I hope somebody out there may enlighten me on this.
    Thank you very much in advance!

    Values are passed from method to method, rather than from class to class. In a case such as you describe the code of a method in Main will probably call a method in InputFileDeclared which will return the String you want. The method in Main stores that in a local variable and processes it. It really doesn't matter here which class the method is in.
    You InputFileDeclared object probably contains "state" information in its fields such as the details of the file it's reading and how far it's got, but generally the calling method in Main won't need to know about this state, just the last data read.
    So the sequence in the method in Main will be:
    1) Create an new instance of InputFileDeclared, probably passing it the file path etc..
    2) Repeatedly call a method on that instance to return data values, until the method signals that it's reached the end of file, e.g. by returning a null String.
    3) Probably call a "close()" method on the instance, which you should have written to close the file.

  • Passing variables from one swf to another

    I am facing problem to pass variable from one swf to another.
    I am using loadMovie to load another swf. how can I pass a variable
    value to another swf. Can anyone help me plz? It is somewhat
    urgent.
    thanx in advance.

    first of all:
    this is the Flash Media Server and your problem is not
    related to FMS....
    second thing related to the "somewhat urgent" :
    we, users on this forum, are not there to do your job... so
    calm down otherwise no people will answer your question. This forum
    is a free support forum that community of Flash developer use to
    learn tricks and to solve problems.
    Possibles solutions:
    If the two swf are seperate you can use LocalConnection to
    establish a connection between different swf.
    If you load a second swf into the first one you can interact
    like a standard movieClip(only if there from the same domain or if
    you a policy file on the other server)
    You can use SetVariable(via Javascript) to modify a root
    variable on the other swf and check with an _root.onEnterFrame to
    see if the variable had changed in the second swf.
    * MovieClipLoader will do a better job, in your specify case,
    than the loadMovie. Use the onLoadInit event to see when the swf is
    really totaly loaded into the first one otherwise you will have
    timing issues.
    My final answer(lol) is the solution 2 with the
    notice(*)

  • Passing variables to hyperlink

    Hi,
    Can you pass variables to the Cp7 hyperlink feature ?
    I am looking at some cases where I would like to create the link dynamically
    rgds Renovator

    Not AFAIK. Use of variables outside of text containers and advanced actions is pretty lilmited. Even if you populate a variable associated with a TEB, or one associated with checkboxes/dropdown/radiobuttons interactions using an (advanced) action it will never show up (except with Jim's extended widgets). Could you please enter a feature request, I did already several like that. Same for advanced action: if we could concatenate strings with variables to create an action, a lot more would be possible or at least lot of long conditional actions could be avoided.
    Lilybiri

Maybe you are looking for

  • Unable to run flex files in Firefox and Safari

    I created a flex program that loads an XML document. In short what I did is as follows: var XML_URL:String = "data/GetData.aspx?documentId=123"; var XMLURL:URLRequest = new URLRequest (XML_URL); loader = new URLLoader(XMLURL); The document loads up p

  • NEED XSAN CONFIG FILE...3.5TB/14Drive

    We had a corruption of our 3TBXSAN config file due to a rogue XSAN 1.1 controller on our XSAN1.0 network. We are attempting to reconstitute the XSAN volume, but we don't know the exact parameters of the XSAN. We striped across both Left and Right and

  • Modifying Floor Plan Manager

    Hello, I want to modify certain ESS service (like modifying the Overview page)which are based on FPM, now for that do I need to import PCUI_GP sca under the Software components for Development or it should be under Required Software components in NWD

  • Opening images in SharePoint modal dialogue box

    Hello Friends, I have a world map and upon clicking each continent should open its respective continent information which is a stored in wiki pages. I am using the SharePoint designer to create hot spots and then open the wiki pages of respective con

  • Lightroom 3.6 will not edit to PS5

    When I try to edit a pic in CS5 from Lightroom 3.6, the shortcut keys and the menu selection will not work. There have been no changes to this machine, both Lightroom & Photoshop are current. Even the menu selection to edit in CS5 is greyed out and u