Passing Data to Module Variables

I have a button that calls a function that sets the url of a
ModuleLoader control. Immediately after setting the url, the
function attempts to set a couple of variables in the module. I'm
getting the common null error effectively tells me that those
variables don't exist, which means it's attempting to set the
variables before the module has finished loading. I need a way
around this. Can I trigger a function in the main application, from
the module? If so, I can use initialize from the module.
Suggestions??

Hi,
As you are aware the I_T_PARAMETER table takes name value pair as input. The following is the parameters u need to use for variables and Filters.
Name                             Value
VAR_NAME_1                Variable Name
VAR_VALUE_1               Variable Value
FILTER_IOBJNM_1          Info Object Key to Filter
FILTER_VALUE_1           Value to Filter
Hope this helps
Thanks
Sundar

Similar Messages

  • Passing data into a variable

    Hi, 
    All I want to do is pass numerical data into a variable, and then access it later. 
    Specifically, I use the Read Vector Space Position VI to find the X and Y positions of my motors. When I press a button, I want the X and Y position at that moment to be saved, so that I can access this information later.
    I would like to do this in a subVI.
    I have read tutorials on functional global variables, but so far they have been quite confusing. Specifically I do not know how to place/use uninitialized shift registers. 
    If someone could create a simple example code, that would be extremely helpful. I am using Labview 2011.
    Thanks

    Action Engine <- must read nugget
    If you don't understand shift registers...
    3 Hour Introduction
    6 Hour Introduction
    LabVEW Basics
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Passing data to module from application?

    Hi all..
                    I have an applicaton that is having an arraycollection data... and i have one module and that module contains barchart .. what is my problem here is i want to send the data to module and i want display that chart in main application... i.e i want load that module into main application.. this module contains a barchart ....
                   how can i do that .. i used ModuleManager Class but no use please help me anybody.. sample code is helpful....

    Hi
             I have done it and its working fine ....

  • Pass data from a variable to another page

    Hi,
    I have a "select one choice" field from a page. I want to pass the data from that field to another page.
    Any ideas on how to do it?
    Thanks!

    drag and drop a list form data control onto your page as SOC.
    In the value change event get value like, valueChangeEvent.getNewValue()
                                            <af:selectOneChoice value="#{bindings.Return.inputValue}"
                                                                label="Plan:"
                                                                autoSubmit="true"
                                                                unselectedLabel="Please select a value
                                                                id="soc1"
                                                                valueChangeListener="#{MyBean.planValueChangeEvent}">
                                                 <af:forEach items="#{bindings.Return.items}"
                                                             var="pln">
                                                      <af:selectItem label="#{pln.label}"
                                                                     value="#{pln.value}" id="si3"/>
                                                 </af:forEach>
                                            </af:selectOneChoice>

  • Pass Parameter to Module Loaded with ModuleManager

    Is it possible to pass a parameter to a module loaded with ModuleManager?

    80sRelic,
    First, to answer a lingering question from your last post, the reason simIndex was 3 for each module (as opposed to 1,2,3) has to do with timing. When you ran getDataFromParent() within the module you probably did so after an event like the creationComplete event. The for loop (with simIndex++) executed almost instantly while the asynchronous events for each module kicked in a few ms later, so '3' across the board.
    Also, as far as the IModuleInfo::factory.create() method goes, yes you can pass a slew of parameters in here, but this is NOT the way to pass data to the module. I don't know what this parameter is all about, I thought it might pass variables to the module constructor (it does not), the documentation says something about 'let building factories change what they create,' but I never figured it out. Sorry. All I know is that whatever this is, it is not the way.
    BTW, the general topic we're dealing with is 'passing data' between module and application and more info can be found here and in the flex 3 cookbook.
    But, I'm guessing you already know this. (Just in case!!! )
    Of all the ways to pass data, gettingDataFromTheParent() is probably the worst method, or so they say. In general, passing data between module and application couples the two objects together and so they are no longer are they black boxes to each other. And I'm guessing the reason gettingDataFromParent() is the least preferred method probably has to do with change, where changeOverTimeOfApp > changeOverTimeOfModule.
    I wrote a small app, which might help demonstrate a nice way for you to pass data in your project. Please note that the app, as it stands doesn't make much sense. Modules should only be used when there's a really good reason to do so, for instance if the module is prohibitively large and only a fraction of the users will actually ever need to employ the module. In my particular example, using a custom component would be simpler and make much much more sense.
    Well, here it is (with .fxp appended at the bottom). Hope this helps,
    - e
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo" >
      <fx:Script>
        <![CDATA[
          import modules.ColoredRectangle;
          import mx.collections.ArrayCollection;
          import mx.events.ModuleEvent;
          import mx.modules.IModuleInfo;
          import mx.modules.ModuleManager;
          private var myModInfo:IModuleInfo;
          private var myColor:uint;
          private var colorCollection:ArrayCollection = new ArrayCollection(
               [{colorName:"Red",    hex:"0xFF0000"},
                {colorName:"Orange", hex:"0xFFA500"},
                {colorName:"Yellow", hex:"0xFFFF00"},
                {colorName:"Green",  hex:"0x008000"},
                {colorName:"Blue",   hex:"0x0000FF"},
                {colorName:"Indigo", hex:"0x4B0082"},
                {colorName:"Violet", hex:"0xEE82EE"}] );
          protected function fetchModules():void     {
            myModInfo = ModuleManager.getModule("modules/ColoredRectangle.swf");
            myModInfo.addEventListener(ModuleEvent.READY, moduleReadyHandler);
            myModInfo.load();
          private function moduleReadyHandler(event:ModuleEvent):void {
            for each(var colorObj:Object in colorCollection) {
               var myModuleInstance:ColoredRectangle = myModInfo.factory.create() as ColoredRectangle;
               myModuleInstance.myColor = uint(colorObj.hex);
               tileBox.addElement(myModuleInstance);
        ]]>
      </fx:Script>
      <s:HGroup verticalCenter="0" horizontalCenter="0"
                width="750" height="400" gap="50">
         <s:Border width="100%" height="400">
            <s:layout>
               <s:VerticalLayout />
            </s:layout>
            <s:Button id="seeModulesButton1" label="fetch modules!"
                   click="fetchModules()" width="100%"/>
            <s:Scroller width="100%" height="100%">
               <s:Group  id="tileBox" height="100%" width="100%">
                  <s:layout>
                     <s:TileLayout columnAlign="justifyUsingGap" />
                  </s:layout>
               </s:Group>
            </s:Scroller>
         </s:Border>
       </s:HGroup>
    </s:Application>

  • Creating remote objects and passing the retrieved data to modules

    I found at this Adobe tutorial a nice "RemoteService" class that  creates a RemoteObject and contains the functions for handling the  result and fault events. If I wanted to use this approach, how could I  pass the data from the result handler to interfaces that modules from  the main application could use?
    I could put the RemoteService/RemoteObject in the modules, but (in my  opinion- and I could be wrong) the best design seems to be using the  remote calls in the main app and passing the data along to the modules.
    Ultimately, I would like to know what the "best practices" are for creating remote objects and passing the retrieved data to modules
    Thanks!

    public void mouseClicked(MouseEvent e) {
      X x = new X(e.getX(), e.getY());
    }I don't see the difficulty.

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • Flash Variables live office pass dates issue

    Hi Experts,
    We are on Dashboard 4.1 SP3 and BI 4.1 SP3.
    This is continue of thread http://scn.sap.com/thread/3572623.
    The dashboard have a very strange behaviour.
    I have one Dashboard with 2 calendars: start date and end date
    the other one: will accept these two dates, and according showing graphs.
    The issue I have now is:
    The two dates can be passed to the second dashboard, e.g. start date: 01/01/2014, end date: 20/04/2014. I have two text lables. they are showed the passed date. but the graphs or live office just accepts two months data. e.g. start 01/01/2014 - 28/02/2014.  No matter what Date ranges I gave, the second dashboard just accept the start Date till start date+2months. e.g. give dates range 01/03/2014 - 30/05/2014, second dashboard show 01/03/2014 - 30/04/2014.
    if i changed liveOffice dates range parameters to 4 month, then the dashboard also can expands to 4 month.
    I'm not sure why it is happening like that.
    Child Dashboard LiveOffice parameters
    Child Dashboard FlashVariable
    Child LO connection
    Parent Dates Passing config
    Could anyone please help.
    Thanks,

    Hi Abhilasha,
    Thanks very much for quick reply, I tried to increase mapping range, but it's till not working.
    Is there any known bug regarding this issue. as when I increased LO input parameters range from 2 months to 4 months, then the dashboard also will increased, and display till 4 months data.
    Many Thanks,

  • Can not pass data after while loop

    Hello.
    I have created a VI for my experiment and am having problem passing data outside a while loop to save on an excel file. The VI needs to first move a probe radially, take data at 1mm increment, then move axially, take data radially at 1mm increment, then move to the next axial position and repeat. It would then export these data to an excel file. The VI is a little complicated but it's the only way I know how to make it for our experiment. I have tested it and all the motion works correctly, however I can not get it to pass the data after the last while loop on the far right of the VI where I have put the arrows (Please see the attached VI ). Is it because I'm using too many sequence, case, and while loops?  If so, what other ways can I use to make it export data to the excel file?
    Any help would be appreciated. 
    Thank you,
    Max
    Attachments:
    B.Dot.Probe.Exp.vi ‏66 KB

    Ummmm .... gee, I'm not even sure where to begin with this one. Your VI is well .... ummmm... You have straight wires! That's always nice to see. As for everything else. Well... Your fundamental problem is lack of understanding of dataflow programming. What you've created is a text program. It would look fantastic in C. In LabVIEW it makes my heart break. For a direct answer to your question: Data will not show up outside a while loop until the while loop has completed. This means your most likely problem is that the conditions to stop that specific loop are not being met. As for what the problem is, I don't even want to start debugging this code. Of course, one way to pass data outside of loops is with local variables, and hey, you seem to be having so much fun with those, what's one more?
    This may sound harsh, and perhaps be somewhat insulting, but the brutal truth is that what I would personally do is to throw it out and to start using a good architecture like a state machine. This kind of framework is easy to code, easy to modify, and easy to debug. All qualities that your code seems to lack.
    Message Edited by smercurio_fc on 08-17-2009 10:00 PM

  • Passing date parameter from prompt

    Hi experts
    I am getting some problem while passing date from a dashboard prompt.
    In RPD i have changed the date column properties as DATE only so that i will get the DATE part of the data not the time stamp.
    Now in the dashboard prompt i added a prompt for the date column.
    I initialized the date prompt with a server variable of sysdate
    when i am running the dashboard i am getting default value in the prompt(04/15/2011)
    when i am changing the date it is selected as(04/15/2011)
    but when i am clicking the 'Go' button the date is converting to 2011-04-15 00:00:00 due to which my report is not running and i am getting error as
    View Display Error
    A date value was expected (received "2011-04-15 00:00:00").
    Error Details
    Error Codes: QABPH2PO
    can anyone help me to pass only date part
    thanks in advance
    regards
    Gourisankar

    Hi J / Srikanth
    Sorry to restart the thread again.
    As we discussed i have downloaded the patch and applied to my windows 32 bit machine.
    But now when i run the report the report is running only for the default value(Server Variable) which is specified to the prompt. when i change the date there is no effect to the report.
    When i drill down to the report i found that the date column(is prompted) is changed to teh server variable name which is might be the cause.
    any input on this???
    regards
    Gourisankar

  • Passing data to another page loaded in the same window

    How to pass data from a page to another when new page loading
    takes place ?
    I use :
    window.htmlLoader.load( new air.URLRequest("app:/" +
    htmlfilename));
    I tried :
    window.htmlLoader.addEventListener(air.Event.CHANGE,
    passmonitor)
    but it doesn't work !

    The problem is in passing the variables . As I mentioned
    above,, the following error message gets displayed:
    Can't get property window from undefined value
    The code I tried is
    myloader = window.htmlLoader.load(new air.URLRequest("app:/"
    + filen ));
    myloader.window.somevar = "data";

  • Passing data from a container to another

    Hi,
    Let's say I have two containers (Container1=application , Container2).  Container1 gets some data from user, perform some database lookup and displays Container2 with the results from database lookup.
    Container1 --(call and display)--> Container2
    Below shows  how I am using a bindable variable in Container1 to pass the data from Container1 to Container2.  Also shows how I display Container2 from Container1.
    <!-- Container1 -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
       [Bindable] public var foo:String = "bar";
       private function loginHandler(event:LoginEvent):void
          mycontainer2 = new Container2();
          mycontainer2.name = "mycontainer2";
          this.addChild(mycontainer2);
    </mx:Application>
    I am accessing the data in Container2 as follow:
    <!-- Container2 -->
    {mx.core.Application.application.foo}
    Q1) Is there a better way to pass data from one container to another and access the data?
    Q2) Is this the only way to call and display Container2 from Container1?
    Q3) How can I move back to Container1 from Container2, i.e. Container2 call and display Container1
           Container2 --(back to)--> Container1

    Best practices call for using custom events to share data between components. Here is my Flex 3 Cookbook post on the topic:
    http://cookbooks.adobe.com/index.cfm?event=showdetails&postId=15466
    To switch easily between containers 1 & 2 use a ViewStack, the gold standard for such interaction, and manipulate the selectedIndex or selectedChild property:
    http://livedocs.adobe.com/flex/3/html/help.html?content=navigators_3.html
    If this post answered your question or helped, please mark it as such.

  • Is it possible to pass data from a subVI before that subVI has finished executing?

    Basically this is my problem:
    1.  I have a subVI which contains a loop that reads data from a device for a specified amount of time.
    2.  I would like to graph this data in real time on the front panel of the main VI.
    So is there a way to pass data from inside the loop of my subVI to the graph of my main VI before the subVI has finished executing, and if so how do I do this?
    Thank you.

    How about using a global variable or a Queue?

  • Pass a Value to Variable from the unix environment in ODI (ELT)

    Hi
    i am very new to ODI environment.
    i want know how to pass a value to variables in oracle data integrator from unix environment.
    Example:
    Variable name : Sales
    for variable name sales i want to pass the value from unix environment.
    Regards,
    Raj
    Edited by: user11137587 on Aug 19, 2009 6:26 AM

    Work Around !
    You can execute OS commands using Jython script. Probably you need to flush your enviornment variables value into a file using jython script and then read those value into ODI variable from the file.
    BUt may I know why you want to read environment variable vaules in ODI, Dont you think this will make your application less portable
    Regards,
    Amit

  • Scheduling a report in background and passing data for processing

    Hi all,
    Using code (in a report1) ...i  want to execute a report (report2) in background.....but at the same time i want to pass data (an internal table and a variable) to that report2.
    is it possible to pass data like internal table to a executable report and at the same time pass the data to that report.
    Thanks in advance.
    Thanks and Regards,
    Sushil.

    hi
    regarding  Scheduling a report in background check the below thread
    SCHEDULE THE ZREPORT IN BACKGROUND DYNAMICALLY
    regards
    chandra

Maybe you are looking for

  • How to get current JNDI inside of bean?

    Hello! I want to have two JNDIs for the one bean class. So there is no problem if I deploy the one bean twice in the same application with different JNDI. But at run time I want to know what JNDI's entry calls my bean. In this case how to get the cur

  • Email Password box stays on, forgot password. How can I get into the setup to reset??

    On iPad, the Email Password box appears and will not go away. We have reset password, but it will not sync. How can I get into Setup, when the Email Password Box will not go away to allow me to get into setup??

  • Essbase.cfg

    Hi All, can any one please help how to do configuration settings in essbase . Thanks in advance SM

  • Select query u0096 Performance

    Hi Friends, How can I improve the performance of this select query? *-Fetch Actions / Organizational Assignment / Personal Data   SELECT a~pernr          b~kostl          b~orgeh          b~plans          b~ename          c~nachn          c~vorna    

  • How can I modify the VIP email list on iOS6?

    I noticed the VIP email list on my iPhone is different than my iPad (the iPad list is correct).  I can't seem to get my iPhone to sync.  Anyone know how to manually change this?