How to pass parameters between main and sub vi during parallel execution using the VI server technique?

Hello All,
I am working with the following example (from previous postings on this
board) that demonstrates how to run a sub vi in parallel with the main
vi.  I'd like to pass parameters between the main and sub such as
the control (delay) and indicator (value) parameters of my subvi
example.  Does any one know how to do this?  Parallel
execution is important for me, I cannot just paste the subvi icon into
my main diagram (two nested while loops...)
Many thanks,
Luis
Message Edited by cascao on 08-16-2005 08:42 PM
Message Edited by cascao on 08-16-2005 08:42 PM
Attachments:
VI_Server_technique.vi ‏32 KB
SubVI_1.vi ‏19 KB

cascao wrote:
Hello All,
I am working with the following example (from previous postings on this
board) that demonstrates how to run a sub vi in parallel with the main
vi.  I'd like to pass parameters between the main and sub such as
the control (delay) and indicator (value) parameters of my subvi
example.  Does any one know how to do this?  Parallel
execution is important for me, I cannot just paste the subvi icon into
my main diagram (two nested while loops...)
Many thanks,
Luis
Luis, you can use the VI Server methods 'Set Control Value' and 'Get Control Value', as demonstrated in the attached examples.
-Franz
Attachments:
VI Server.zip ‏26 KB

Similar Messages

  • How to pass parameters between two xterm windows?

    Hi,
    I would like to know how to pass parameters between two xterm windows where there are two independence processes running on them respectively ? Would appreciate if any one out there can advise me . Thanks.

    Global variables can be used, but you can do what the online help
    says ...
    Parameters are passed to called forms by means of a parameter
    list. A parameter list is a named programmatic construct that is
    simply a list of parameter names (called keys) and their values.
    You can pass parameter values to forms invoked by the built-in
    subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
    can pass parameter values to other Oracle tools with the
    RUN_PRODUCT procedure.
    A parameter you include in a parameter list can be either a text
    parameter or a data parameter. The parameter type determines how
    its value is interpreted.
    Text Parameters The value of a text parameter being passed to a
    called product is a CHAR string that can represent the following:
    n a user-defined form parameter defined in a form invoked
    by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
    n a command line or user-defined parameter for a product
    invoked with the RUN_PRODUCT built-in subprogram
    Data Parameters The value of a data parameter being passed to a
    called product is always the name of a record group defined in
    the current form. (A record group is a data structure that
    stores records derived from a query or through programmatic
    assignment.) Data parameters are used to pass data to products
    invoked with the RUN_PRODUCT built-in subprogram. You cannot
    pass data parameters to forms.
    The following table shows the structure of a parameter list that
    contains four parameters:
    Key Paramtype Value
    CITY Text_Parameter 'BOGOTA'
    CATEGORY Text_Parameter 'EXPORTS'
    MULTIPLIER Text_Parameter '.0275'
    NEW_DATA Data_Parameter 'RECORD_GROUP8'
    arun reddy (guest) wrote:
    : im trying to do this but i could not find any way for this.
    : can any one help me how can i pass parameters between two forms
    : in forms4.5. any help will be appreciated
    : thanks.
    null

  • How to pass Parameters between two forms

    im trying to do this but i could not find any way for this.
    can any one help me how can i pass parameters between two forms
    in forms4.5. any help will be appreciated
    thanks.
    null

    Global variables can be used, but you can do what the online help
    says ...
    Parameters are passed to called forms by means of a parameter
    list. A parameter list is a named programmatic construct that is
    simply a list of parameter names (called keys) and their values.
    You can pass parameter values to forms invoked by the built-in
    subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
    can pass parameter values to other Oracle tools with the
    RUN_PRODUCT procedure.
    A parameter you include in a parameter list can be either a text
    parameter or a data parameter. The parameter type determines how
    its value is interpreted.
    Text Parameters The value of a text parameter being passed to a
    called product is a CHAR string that can represent the following:
    n a user-defined form parameter defined in a form invoked
    by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
    n a command line or user-defined parameter for a product
    invoked with the RUN_PRODUCT built-in subprogram
    Data Parameters The value of a data parameter being passed to a
    called product is always the name of a record group defined in
    the current form. (A record group is a data structure that
    stores records derived from a query or through programmatic
    assignment.) Data parameters are used to pass data to products
    invoked with the RUN_PRODUCT built-in subprogram. You cannot
    pass data parameters to forms.
    The following table shows the structure of a parameter list that
    contains four parameters:
    Key Paramtype Value
    CITY Text_Parameter 'BOGOTA'
    CATEGORY Text_Parameter 'EXPORTS'
    MULTIPLIER Text_Parameter '.0275'
    NEW_DATA Data_Parameter 'RECORD_GROUP8'
    arun reddy (guest) wrote:
    : im trying to do this but i could not find any way for this.
    : can any one help me how can i pass parameters between two forms
    : in forms4.5. any help will be appreciated
    : thanks.
    null

  • How to  pass data between JDialog and its parent window ?

    Hi,
    I am new to swing. I want to know how pass data between a JDialog and its parent window.
    If you have any information please reply with example code.
    Thank You

    hi Encephalopathic ,
    I was looking for something like as it was given in the link provided by you.
    Thank you for reply It really helped me.

  • Passing parameters between WDA and Iview URL.

    Hi,
    I've a Iview type URL and I want to passing parameters through of code of my WDA. I Know to call a Iview for code  but I don't know passing parameters. I used this method for call the iview:
    CALL METHOD l_portal_manager->navigate_absolute
    EXPORTING
    navigation_target = path
    navigation_mode = if_wd_portal_integration=>co_show_external.
    (path = roles//....idiview).
    Thanks.

    Look at this thread..
    Re: Get URL Parameter Starting With underscore '_' (_sapwiid)
    <i>*Reward each useful answer</i>
    Raja T

  • Passing Parameters between Portal and Forms 6i

    Hi,I'm new in Oracle Portal and I have a problem. I have a Portal's report and I need to pass a value from this report to Form 6i to perform the query. This form is a porlet including in the Portal page.
    please help me

    Hi, Im trying to do that you said, but doesn't work :-(, my code is something like this, in the portlet.xml(jboss portal 2.6) :
    <portlet-preferences>
    <preference>
    <name>stockSymbols</name>
    <value>BEAS</value>
    </preference>
    <preference>
    <name>refreshInterval</name>
    <value>600</value>
    </preference>
    </portlet-preferences>
    in the consumer(bea wlp 8.1 sp5), i dont see any portlet preference in the palette window, im doing something wrong?...thanks for your help.

  • How to pass parameters between tow windows.

    hi,
    iam opening my first.jsp in browser.
    it contains a button called click .if we click on this button it opens a new popup window with another jsp page..it have one text box.where user enter a value.and clicks on submitt..when i click the submit button iam closing the popup window..with window.close().
    then the window is closing..now what i want is the value which i entered in poupup window ,i want to retreive this value in another jsp page..how can i get that value..
    regards,
    sam

    thatz very simple.
    try using one of the following.
    1.use java script but as he said it wont b sent to the server.
    2.otherwise use cookies to store and retrive that value.
    3.this one is simple,u dont need a popup jsp page,instead use a inputbox simply.LOL

  • How to align OS between disks and flash on WAVE-574 without use Rescue CD

    The version OS installed on flash of WAVE-574 (4.4.5c.b4) mismatch.
    I don't know Why and How the version on disk is it different, is it possible after one disk replacement?
    Is it possible to align OS on WAVE-574 between flash and disks without using Rescue CD?
    WAVE-574#sh flash
    WAAS software version (disk-based code): WAAS-4.3.3-b14
    System image on flash:
    Version: 4.4.5c.b4
    System flash directory:
    System image: 201 sectors
    Bootloader, rescue image, and other reserved areas: 41 sectors
    256 sectors total, 14 sectors free.
    Thanks a lot for your help!

    John,
    You are missing the flash device which stores the sysimg.
    FLASH: not found
    FLASHDEV: (null)
    Try opening the device and re-seating the flash card reader and flash card, sometimes they can get knocked loose during shipping.
    Otherwise, you will need to contact TAC to get an RMA processed.
    Regards,
    Mike

  • How to Create a PDF Document and apply Digital Signature in C# using the Adobe SDK?

    Hi Everybody!
    I have to do two distinct tasks here:
    1) How can I create a PDF document using the Adobe SDK in my .NET Applications(C# - 2.0)?
    I just need a basic sample to create a document with a simple text, for example. I did not find any useful information in the adobe documentation. I have the Acrobat Professional 8.0 in my computer, but it's very dificult to work whith de Acrobat.dll and .NET with a poor documentaion.
    2)How can I apply digital signature in a existent pdf document?
    I need to sign documents using the SDK, just a basic sample in c# would be helpful to start!
    Anybody could help?
    Thank in advance!

    Leonard Rosenthol or anybody that can help, sorry to insist.
    I will explain better my problem:
    I have an ASP.NET WebPAge (C# - 2.0). In this page, the user make a request. The request should generate a PDF document with the informations of the request and with a field to add a digital signature. The document created will be send to a approver that will confirm the approval applying his digital signature (I need to do too, a webpage where the approver open the page, choose the pdf document, and sign, just selecting his own certificate and clicking in the button SIGN... but this is another problem).
    That's the reason that I have to create a PDF document. If I create a WORD or HTML document, and then convert to PDF, how can I add a field to digital signature in this pdf document?
    Is there any solution using Acrobat SDK?
    Thank you very much!

  • I upgated my Firefox and neither Firefox or IE can use the Proxie server and the sceen to set up the Proxie server is grayed out and not changable.

    I am using windows 7 and have used Firefox many years the last time I upgraded I could not connect to the World Wide Web sites but the direct connect sites ie. LOTRO work fine. Internet Explorer comes up with a "proxy server is not responding" and dose not load the page. When I follow the instructions to change the proxy server settings the page to do that all of the proxy buttons and wording is grayed out, not changeable. The other computers in the house work fine. The Upgrade of Firefox seem to corrupted the program for the proxy control.
    jmaraszek

    Note that your System Details List shows that you have a user.js file in the profile folder to initialize some prefs on each start of Firefox.
    The user.js file is only present if you or other software has created it, so normally it wouldn't be there.
    You should check its content with a plain text editor if you didn't create this file yourself.
    The user.js file is read each time you start Firefox and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    You do the network.proxy settings show on the <b>about:config</b> page?
    network.proxy.type
    network.proxy.http
    network.proxy.http_port
    Do they show as locked (italic)?

  • Passing parameters between JSP and Servlet

    The scenario is as follows:
    There is a JSP page that sends a string as a hidden parameter to a servlet:
    <input type="hidden" name=<%= Book.NAME %> value=<%= book.getName() %> >
    In the servlet there is a print statement that checks the parameter value:
    System.out.println("Book name: "+request.getParameter(Book.NAME));
    The problem is as follows: if the name of the book consists of more than one word
    such as "Servlets and JSP", the print statement will print only Servlet.
    If the JSP page passes a string directly as shown here:
    <input type="hidden" name="Test" value="Test String" >
    The servlet will print the complete string: Test String
    The same problem appears if the string is passed between two JSP pages.
    Any help is greatly appreciated.
    Regards,
    Basil Mahdi

    You might want to try
    <input type="hidden" name="<%= Book.NAME %>" value="<%=URLEncode.encode(book.getName(), "UTF-8")%>" >This will take care of any wierd un-url friendly charcters that might appear in the book titles such as the ' or " which may be the problem.

  • How to pass values between applet and jsp

    I have a jsp calling an applet which needs to return value to the calling jsp based on the action. Once the applet returns value to the calling jsp, I need to put that value into the session so that I can use it for the other pages. Could anyone have suggestion how to do it. I am new to applet development. Appreciate your help.

    Why does it have to send the value back via the same JSP? Why not create a servlet to take input from the applet?

  • Trying to pass parameters between GUI classes and methods

    Hi All.
    I have been working on a rather large final year project in college and it is getting close to the deadline. It looks as though I need to "tidy up" my code as it contains too many static methods, variables and other bad programming habits. My package consists of many different GUI's and classes. Up until now I have been calling different GUI's with guiName.NameOfMethod. I have been told this is bad practice so I am trying to fix this. Also instead of passing parameters correctly I have been creating static variables in my main class and using them. So for example if one class needed to pass a variable to the other I would first myGlobalVariable = X; in the first class. And then the second class can use this. This is also bad, right?
    So I guess im really just looking for a good example or tutorial on how to pass parameters between classes and methods, GUI if possible. Here is an example of how my GUI classes look:
    public class anotherGUI extends JFrame implements ActionListener {
            private JTextField a, b, c;
            private JButton button1, button2;
            JPanel p, p1;                   
            public anotherGUI() {
                LayOutAnotherGUI();
                setLocationRelativeTo(DnDMain.pictureArray[a]);
                setTitle("Example");
                setVisible(true);
                pack();     
            private void LayOutAnotherGUI(int c) {
         //GUI is layed out here     
            public void actionPerformed(ActionEvent e) {
                Object source = e.getSource();
                if (source == submit)
                    clickOK();
            public void clickOK(){
                //Here is where I have been accessing and modifying static global variables.  (But this needs to change).
    public void showanotherGUI() {
            new anotherGUI();
    }This is more or less how I have been going about creating my GUI's. These are used as pop ups. The user enters a value and then it is closed.
    To be honest I have been able to pass a variable correctly from one class to a GUI class but I have still having difficulty. For example in my code above I can pass the variable into this class but I cannot pass it into clickOK(). An this is where it is needed.
    Can anyone please help?
    I hope I have explained my problem well.
    Thanks in advance.

    I dont think that is what I need. An example of what I do in my program is:
    I have a main GUI with an array of images. There are a number of other small GUI's that appear for certain functions when the user clicks on an image or does some other function. I am trying to pass a value into the GUI class that is used for the smaller "pop up" GUI. So lets say the user has clicked the image in array[12]. Then a GUI is displayed. I need to pass the integer 12 into this class.
    Thanks.

  • Urgent! pass parameters between jsp pages

    Does anyone can give an example about how to pass parameters between jsp pages?
    This is what I do:
    pageContext.forward("pag_loginc.jsp?p_idusr=" + strUsr + "&c_password=");
    But when deployed is not working.
    Help is needed.

    can you put that stuff in the session context in the first page, then pull it out in the second page?

  • How the invocation between process and sub-process work?

    As I have read throught some posts here and know that the web service whicn is used to trigger the process is asynchronous.
    so is the invocation between process and its sub-process asynchronous using web service?
    supposed there is a process like below:
    Start Event -
    >Sub-Process ->Automated Task-->EndEvent
    I have some confused questions:
    1: is it asyn to invoke the subprocess?
    2: if the invocation is asyn, is the next "Automated Task" triggerred before the completion of the nested subprocess? It seems to be, but it is not so reasonable.
    3: if the invocation is asyn, how the process get the return value of the nested subprocess?

    Hi John,
    the invocation of sub-processes is done via an internal runtime mechanism and not via normal Web Service call.
    The sub-process call is synchronous, so the calling process is waiting for the reply from the sub-process. There are a few things to keep in mind when using sub-processes:
    If you are branching off parallel execution paths (via a split gateway) within the sub-process and are using a regular end event, only the first token arriving at the end event will return to the calling process. The sub-process will keep running until either the last of its tokens flows into the end event or until the calling process is being terminated. In any case, the calling process will not react to any more tokens arriving at the sub-processes end event.
    If you are using parallelism within the sub-process, but want it to terminate once the first token arrives the end, use a terminating end event in the sub-process.
    Don't use the correlation condition at the start event of a sub-process. If this condition evaluates to 'false', the sub-process will never be started, but the calling process will wait forever for a reply.
    If you want the sub-process call to behave asynchronously, you can model the sub-process to split off a token to the execution path where it does the actual work and have another straight path directly from the split gateway to the (non-terminating) end event. That way the calling process will continue right away, but of course you cannot expect any response coming out of the sub-process.
    Best regards,
    Oliver

Maybe you are looking for

  • TS1717 lost edit playlist functionality

    I reinstalled itunes on my Windows 7 laptop because it had issues opening in the last couple of days.  I also lost ability to edit playlist yesterday.  I reinstalled software, the opening itunes issue is resolved, but still cannot edit playlists - th

  • Unable to deploy in workshop

    Hi. I tried building an EAR-file from our application, as it is ready for testing and hence deployment on another server. After building the controls it croaked: ERROR: DESCRIPTION:An unexpected exception occurred while attempting to locate the run-t

  • Is there any version of JDeveloper for Win 98

    I am looking for JDeveloper for Window 98. Is there any release for it?

  • Format problem with MSI 865Neo2-PFISR

    I had a problem with my MSI 865Neo2-PFISR, when i was formatting the drive (WD 40GB 7200) format it was not responding... by thw way... i completed the format with the 4th try, and before 2 wks i have format again and everything it was fine. But why

  • Saving an Image to an Oracle Database over the Internet

    I would like to know how to transfer an image over the Internet and save that image to an Oracle Database. That is I am trying to make it so that a user can connect to the Internet and select an image file form their PC in TIFF, JPEG, or some other f