Problem running duplicate SubVIs

I have a SubVI that I want the user to be able to launch (up to) 4 separate instances of.  It's a small grouping of indicators that represent possible error conditions for 4 separate but identical sections of the hardware being monitored.
To accomplish this, I set up the following code:
I need the indicators that are in the SubVI to be updated even when the user isn't looking at them (because there is separate history tracking going on), so as you can see above, I make 4 (nearly) identical calls to run the VI, then in an event structure, when the user clicks on the control associated with each section, it executes the FP.Open command for that particular VI's reference.
When I executed this, the only one that will open is the first one (vertically), the one that's set to the base address of 10000.  I presume this is because it's the fist reference that runs when the main program executes.
So then I went and edited the properties for the SubVI to set its reentrant execution to "preallocated clone reentrant execution", but this made no difference.
Any thoughts on how to solve this problem?  thanks in advance

I thought I was pretty clear by calling the function the Open VI Reference.  That is its name after all.
Here's what I am suggesting.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Initalize Reentrant Calls.png ‏24 KB

Similar Messages

  • Dataflow problem, queuing in subvi dequeuing in main vi

    ive stuck on a very simple data flow problem here, I'd like to pass data being enqueue in the subvi and dequeue in the main vi consumer loop. Ive attached the vi, since im already stuck on this problem, i was hoping i could learn a few things, specially implementing action engine in this situation  
    thanks.
    Solved!
    Go to Solution.
    Attachments:
    Counter Main.vi ‏16 KB
    counter subvi.vi ‏11 KB

    Your subVI doesn't make any sense since your loop will always exit after the first iteration and you always initialize your counter to 0 every time you execute it. That is one issue.
    Your code also suffers from multiple places that are dequeueing data from the queue. You will get undeterministic behavior since you don't know which dequeue will get the data first. Generally for a producer/consumer architecture using queues one or more loops loops should be enqueueing data to the queue. One and only one loop should be dequeueing data. These loops shuold run in parallel to each other. In your code you will only run your subVI whenever you press the start button and as stated you will always post a value of 1 to the queue. What you would need to do is have your subVI run independently once it is started. Use the "Start Asychronous CAll" to start your subVI when the Start button is presed and then let it simply run. Have it post the counter to the queue. Your lower loop in the main VI should dequeue the values and display them. You do not need the Wait in that lower loop since that is the purpose of the dequeue. That loop will be idle if there is no data present and will only run when data is in the queue.
    In the upper loop of your main VI remove the dequeue and enqueue. You don't need them since the subVI is all that is needed to post the data to the queue.
    Try this:
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Run a subvi by pressing a button multiple times

    Hi
    I wanted to run a subvi each time the user pushes a button.
    So the subvi might be called multiple times & different instances of the subvi run simultanously with their front panels open.
    To do this I made a .vit & call it by refrence wehenever a button is pressed but it doesn't work.For the first time it opens but it seems as if the .vit doesn't return after it is called. while if I use the same method & call the .vit by reference 2 times in parallel both of the front panels open without problem.
    How can I solve this problem(the main & the subvi are attached LV 7.0).
    Thanks for your attention in advance
    Attachments:
    main.vi ‏35 KB
    subvi.vit ‏43 KB

    Hi,
    You have to run it dynamically, with the Run VI method. This method can
    optionally wait or not. Before running the VI, you have to set the controls
    with the method Set Control Value (or Set Control Value [Variant]).
    There are several ways to read back values from dynamically started VI's.
    One is to use a buffer (lv2 global). Another is to use the Get Control Value
    method.
    It's complicated, but if you put all this code in a sub vi, you'll end up
    with a nice main...
    Regards,
    Wiebe.
    "smal" wrote in message
    news:[email protected]..
    > Hi
    > I wanted to run a subvi each time the user pushes a button.
    > So the subvi might be called multiple times & different instances of
    > the subvi run simultanously with t
    heir front panels open.
    > To do this I made a .vit & call it by refrence wehenever a button is
    > pressed but it doesn't work.For the first time it opens but it seems
    > as if the .vit doesn't return after it is called. while if I use the
    > same method & call the .vit by reference 2 times in parallel both of
    > the front panels open without problem.
    >
    > How can I solve this problem(the main & the subvi are attached LV
    > 7.0).
    >
    > Thanks for your attention in advance

  • Problem Running SSIS Package with a SQL Server Agent

    SQL Server: SQL Server 2012
    VS: Visual Studio 2012
    Hello,
          I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
    Store) instance on my SQL Server and tried to create a job that would run them from there.
          At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
    use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
    The connection manager "TestFile" is an incorrect type.  The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2]     Description:
    Cannot open the datafile "O:\*****\Success.txt"
    I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers  in this test project one for grabbing the source file and one for
    creating the new test file.
    I am not sure what to do.
    Thanks in advance,
    Matt

    I accidently created two posts. The newest one has the details.
    I did not mean to.
    SQL Server: SQL Server 2012
    VS: Visual Studio 2012
    Hello,
          I have been having a problem running SSIS packages by using a SQL Server Agent job. I first created these SSIS packages in a separate IS project in Visual Studio. I imported the packages to the Integration Services (Package
    Store) instance on my SQL Server and tried to create a job that would run them from there.
          At first I read around about needing a proxy account to allow the agent/packages to access the file system since these packages are importing data from a flat file in the SQL database. So I created a temporary admin user to
    use as the user for the agent. I did this by going to Services.msc on the server and linked the account the agent's "logon as". Then arose another issue where I am getting an error about using the incorrect type for my connection managers.
    The connection manager "TestFile" is an incorrect type.  The type required is "OLEDB". The type available to the component is "FLATFILE". Source: Data Flow Task Flat File Destination [2]     Description:
    Cannot open the datafile "O:\*****\Success.txt"
    I am not sure what this even means as I am getting this error even with a test package that doesn't do anything with the database. I have just two flat file connection managers  in this test project one for grabbing the source file and one for
    creating the new test file.
    I am not sure what to do.
    Thanks in advance,
    Matt

  • Im trying to download itunes 10.5 but keep getting error message that says: There is a problem with this Windows Installer package. A problem run as part of the setup did not finish as expected. Contact your support personnel or package vendor.

    im trying to download itunes 10.5 but keep getting error message that says: There is a problem with this Windows Installer package. A problem run as part of the setup did not finish as expected. Contact your support personnel or package vendor. I am using windows XP 32 bit, all the other computers in my house downloaded just fine, no problems, however this is the computer my iphone is set up to, ive tried doing a virus scan, windows update, downloading other things, updating everything possible, everything works fine, its just itunes that wont download, anyone have any other ideas?

    Yes, I had found a similar solution also.  I'm running XP Pro, SP3.  I went Control Panels/ Add-Remove programmes/apple software update/ change/ repair.  Then run the 10.5 exe.
    While the programme updated from version 8 of iTunes, my new iTunes is now a mess.  Not all of my music was in the same folder previously but it all showed up on iTunes.  Now many albums have been left out, some have only a few tracks and some have two copies of some tracks as well as having other tracks missing.  I haven't begun to work on that.

  • Problem running BI template installer after upgrade to 2004s

    Hello,
    After upgrading our Portal from EP6 to EP7 I have a problem running the BI template installer. The failure occures right at the beginning. The installer is looking for SLD related parameters in the 'CTC> Propertysheet SystemProperties'.
    But there are only three parameters in the sheet :
    HOST, SYSTEM_ID, INSTANCE_ID.
    If you instal a new 2004s system you see much more entries in the 'Propertysheet SystemProperties'.
    My question is how to add these missing entries into the 'Propertysheet SystemProperties'.
    Thanks
    Boaz

    Hi Kaylan,
    Actually there are only two things to manually fix after the CTC template run, which is mentioned in the Blog:
    - check/correct the following settings in the NetWeaver Administrator for evaluate_assertion_ticket and ticket according SAP Note 945055
    - the entry in table RSPOR_T_PORTAL for Platform and PDF fonts
    If you uncertain, you can remove the created objects as stated in the Document http://scn.sap.com/docs/DOC-11607 => Page18 in the Notes Section. the CTC template is creating these objects and entries again.
    Best Regards Roland

  • Having problem running an application

    I have recently installed jdk 1.2.2 and i have no problem running applet but when i try to run an application i get the message 1 error can't find<filename> . java.
    The path in autoexec.bat is fine. JRE File is include in my file jdk1.2.2.
    I have installed and deinstalled it a couple of time and can't make it work.
    Could someone help me please!!
    Thanking you in advance!

    doesn't sound like a path problem at all. you say when you try to RUN the app you get a message can't find filename.java. When you're running the app you run the binary class file i.e. java MainClass.class. If you're compiling the app you would do javac MainClass.java. Clarify your situation further if this does not help you out.

  • Problem running Lex in project created with Forte C++

    I am having a problem running Lex in project using Forte C++ 6. I believe I may have an installation problem, but can't figure out where it is.
    I created the project using Workshop. The make file generated is trying to run the following command: lex -o output/cmdscan.o cmsscan.l
    Which causes the following error message lex: illegal option -- o
    I checked the man pages and Lex doesn't have a -o option.
    Is there another version of Lex installed by Forte C++ that is different than Lex from Solaris?
    Ron

    I created the project using Workshop. The make file generated is trying to run the following command: lex -o output/cmdscan.o cmsscan.l
    Which causes the following error message lex: illegal option -- o
    I checked the man pages and Lex doesn't have a -o option.
    Yes, try in google.com
    Wishes , a [url http://personallfiles.com/Grant.Scholarship.asp]federal grant and scholarship-in need for me

  • Trouble printing something out. Getting error message: There is a problem running Adobe Acrobat Reader. If it's running please exit and try again. 6:6

    Getting message: There is a problem running adobe Acrobat Reader. If it's running, please exit and try again. 6:6

    Hi garryw,
    What version of Reader are you using, and are you on Mac OS or Windows? Do you get the same error when you try to print other PDF files, or is the problem specific to one PDF?
    For starters, please try the solutions listed in this thread: Re: There is a problem with Adobe Acrobat /Reader. If it is running ,please exit and try again.(0:104)
    Let us know how it goes.
    Best,
    Sara

  • Problems running Flash Builder 4.6 profiler

    Hello,
    I have a problem running Flash Builder profiler. When I click "Profile" it starts my web application, but nothing else happens inside Flash Builder itself - no new data appears in Profiler perspective, Flash Builder itself doesn't show any sign of doing something.
    My mm.cfg contains the next line: "PreloadSwf=C:/flash builder workspace/.metadata/.plugins/com.adobe.flash.profiler/11/ProfilerAgent.swf?host=localhost &port=9999"
    Additional details:
    OS: Windows 7
    Flash Builder version: 4.6
    Tested web browsers: Firefox, IE 8 - the same problem in both of them
    Flash player versions: ActiveX/Plug-in Version:11.7.700.169
    I made sure that ProfilerAgent.swf indeed exists in the location defined in mm.cfg. In addition, I tried to change port 9999 to other ports (both in mm.cfg and in Flash Builder). I also verified that the location of ProfilerAgent.swf appears in trusted locations of Flash Player.
    I would be very grateful if someone could help me to solve this problem.
    Thanks,
    Valeria

    R Grieve wrote:
    This sounds like something has gone wrong during installation. CSAR and CSLIBS references should be set up automatically during installation.
    There should also be no need to import the Flex SDKs as CS Extension Builder 2.0 ships with them included. It won't do any harm though having the CS Flex SDKs imported.
    Can you detail how you installed CS Extension Builder 2.0, please and where you obtained it from?
    Here are the installation instructions I would recommend starting from a clean FlashBuilder 4.6 instance:
    To install Adobe Creative Suite Extension Builder, download the ZIP file and unzip it into a root location (SDKRoot).
    Install Extension Builder in Eclipse with Flash Builder or Flash Builder Standalone:
    In Eclipse, choose Help > Install New Software.
    In the Install dialog, click Add.
    In the Add Site dialog, click Local... to browse to the SDK root folder or enter the URL of the update site.
    Name the site CS SDK and click OK to confirm the changes.
    Select the new CS SDK site in the "Work with" field.
    -- Select all the Adobe Creative Suite Extension Builder components.
    -- Click Next to confirm the selection.
    In the Install Details review dialog, click Next to confirm that you want to install all the components listed.
    Accept the terms of license agreements and click Finish.
    Re-start  Eclipse as recommended.
    I obtained it from Adobe and installed it using the Help > Install software option, but without unzipping it. Maybe that was it.
    Now I've done a clean installation and it works perfect. I did it with administrator permissions, don't know if it has anything to do with it, but I read it somewhere and did so just in case!
    Thanks a lot!

  • Problem running car demo jwsdp-1.3,Tomcat 5.0

    Hello. I am having problems running the car demo on the jwsdp-1.3 with Tomcat 5.0.
    I get the following error message:
    "A jar file containing the Servlet 2.3 and JSP1.2 classes is required to compile
    carstore. Please define the property servlet.jar in your build.properties file and ensure
    that the file exists."
    I replaced the jsf EA 4 with the beta, and cleared out the cache in catalina as per the
    installation documents. I am probably missing something here. I checked my path,
    (I am using windows xp) and made sure the jsf directory was in the path.
    Any help would be greatly appreciated. Thanks in advance.
    regards,
    cyuno

    Thanks for your response.
    I changed the path to the tomcat 5.0 that came with the jwsdp-1.3.
    However, I am still getting the same error message. I have checked the build.properties file, the path, the path where ant is located, and the path is pointing to the jwsdp-1.3 directory.
    I have been working with the examples in the java web services tutorial, and for the most part have not had any problems running the examples using the jwsdp-1.3, ant and tomcat 5.0(except for CH 11, on the jaxb examples)
    Thanks again for your help
    regards,
    cy unpingco

  • Problems running Photoshop CS6 under OS 10.8 Mountain Lion

    Since updating the OS from 10.6.7 to OS 10.8 on iMacs (21" and 24" Intel 2.4GHz) I have experienced problems running Photoshop. The app boots up fine and I can start a project as normal, but when I click on a tool to change it's usage I get the spinning beach ball, this lasts about 5 - 10 seconds and then the tool drop down menu appears. After this, I get the beach ball appearing every few minutes  as I try to work, and the only way to get Photoshop running efficiently is to close it down  and then restart.
    Any ideas as to the cause? I've read on forums from both Adobe and Apple that apparently there are no compatibility issues between Mountain Lion and CS6 but I never had this problem previously under Snow Leopard.

    The next two remedial steps would be to reset all tools by right-clicking here:
    and if that does not resolve the problem, reset Preferences;
    To reset Preferences:
    If Photoshop is already open on your screen, close it (Quit). Then hold down Shift+Ctrl+Alt (Win) / Shift+Command+Option (Mac) on your keyboard and start Photoshop.
    A dialog box will pop up asking if you want to delete the existing Preferences file (the "Settings"). Click Yes in the dialog box. The existing Preferences file will be scrapped and a new one will be created.

  • Problems running servlet due to missing classes?

    Hi everyone,
    I am doing a project which requires me to convert a java coding into a servlet. This java coding I am working on is some kind of location based service which tracks people (receiving an argument of a string as IP). It imports an external SDK called Ekahau SDK (some off the shelve product). Now I wish to convert it into a servlet so that the function that the java coding performs can be run from a webpage i created.
    I have previously posted a thread on this forum called "Converting java coding into servlets?" when I had trouble compiling the servlet. Now that I could compile the servlet already, I still have problems running the servlet from my browser.
    The webserver I am using is Apache Tomcat. Previously I was trying Apache HTTP server but since now I need to use servlet, I have shifted to Tomcat instead. I have been getting these "java.lang.NoClassDefFoundError:" when running the servlet from the browser. From the previous thread, I got suggestions from the replies saying that I need to put the jar files I need into my "C:\Tomcat\webapps\try\WEB-INF\lib" directory. I have been looking for the missing jar files from the internet and putting them into my "C:\Tomcat\webapps\try\WEB-INF\lib", but each time after adding a new jar file, I get another new "java.lang.NoClassDefFoundError:". Are the missing jar files really the problems? Cause it seems a bit weird to me that I need some many jar files which I dont even know why I need them for.
    The HTTP status 500 error look like this:
    description
    The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
    root cause
    java.lang.NoClassDefFoundError: org/apache/excalibur/configuration/CascadingConfiguration
    com.ekahau.G.N.A(Unknown Source)
    com.ekahau.G.N.<init>(Unknown Source)
    com.ekahau.sdk.imp.yax.D.<init>(Unknown Source)
    com.ekahau.sdk.imp.yax.E.connect(Unknown Source)
    com.ekahau.sdk.PositioningEngine.connect(Unknown Source)
    coreservlets.testing.find(testing.java:75)
    coreservlets.testing.doGet(testing.java:36)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    Here are the series of jar files I have been looking from the internet to add them into my "C:\Tomcat\webapps\try\WEB-INF\lib" directory:
    1) org/apache/commons/collections/Closure
    2) org/apache/log4j/Logger
    3) org/apache/commons/lang/Validate
    4) org/apache/excalibur/configuration/CascadingConfiguration
    Please help~~ Thanks a lot.
    My servlet coding is like this:
    package coreservlets;
    import java.io.*;
    import java.util.*;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.ekahau.sdk.*;
    public class testing extends HttpServlet
         String ipAddress;
         int result;
           public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
                  ipAddress = request.getParameter("deviceIP");
              try
                   result = find();     
              catch (IOException e)
                   System.out.println("Error..." + e.toString());
              catch (EngineException e)
                   System.out.println("Error..." + e.toString());
              response.setContentType("text/html");
                  PrintWriter write = response.getWriter();
              write.println("<HTML>\n" +
    "<HEAD><TITLE>Tryget</TITLE></HEAD>\n" +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    result +
    "</BODY></HTML>");
           public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
                  doGet(request, response);
         public int find() throws EngineException, IOException
              PositioningEngine.connect();
                  // Find the given device:
                  Device[] devices = PositioningEngine.findDevice("NETWORK.IP-ADDRESS", ipAddress);
                  if (devices.length == 0)
                         System.err.println("Device with IP address " + ipAddress + " not found.");
                   PositioningEngine.disconnect();
                   return 0;
              else
                         TrackedDevice device = new TrackedDevice(devices[0]);
                         // Create a simple handler for locations for one-time usage:
                         LocationEstimateListener estimateListener = new LocationEstimateListener()
                           public void handleLocationEstimate(LocationEstimate locationEstimate, TrackedDevice device)
                                  // Change getLatestLocation to getAccurateLocation if you want
                                  // a bit more accurate but a few seconds delayed location.
                                  Location loc = locationEstimate.getLatestLocation();
                             final double coX = loc.getX();
                             final double coY = loc.getY();
                             try{
                             FileWriter file = new FileWriter ("C:\\Documents and Settings\\xamule\\Desktop\\Testing\\output\\output.txt");
                             String x = Double.toString(coX);
                             String y = Double.toString(coY);
                             String coor = x + "\t" + y;
                             file.write(coor);
                             file.close();
                             catch (IOException e){
                             System.out.println("Error..." + e.toString());
                   StatusListener statusListener = new StatusListener()
                           public void handleStatus(Status status, TrackedDevice device)
                                  System.err.println(new Date()+"\tStatus for device: " + status);
                         // Add listeners and start tracking
                         device.addLocationEstimateListener(estimateListener);
                         device.addStatusListener(statusListener);
                         device.setTrackingParameter("EPE.LOCATION_UPDATE_INTERVAL","6000");
                         device.setTracking(true);
                         // Wait until user inputs something. When he/she does, stop tracking and quit application
                         //BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                         //in.readLine();
                         // Stop tracking and disconnect from the positioning engine:
                         device.setTracking(false);
                         PositioningEngine.disconnect();
                   return 1;
    }

    Well, it's kind of logical that as you put more jar files (classes) in Tomcat, it changes the error to ask for the classes (inside a jar) it cannot find.
    There was a good class->jar finder on the internet some years ago, but i don't remember the address. Try looking for that and search all the missing classes (NotDefined) and their correspondig jar files.
    Good Luck!

  • Any problems running a program compiled with SDK 1.4.2_14 with JRE 1.4.2_08

    Hi,
    Would there ever be a problem running a program compiled in Java 1.4.2_13 with JRE 1.4.2_08?
    Why or why not? No guesses please.
    Thanks

    No such hope. The alternative to testing is to review changes made to each version leading up to 14. This is spelled out in each version's Release Document. There are a lot of changes. Most will not affect your program. Each change is relatively well described, but your problem will be to decide if your program will be affected by the change.
    Or, do nothing, hope like hell that nothing breaks, and have an up-to-date copy of your resume.
    If someone came to me saying a program couldn't be tested, I'd have serious concerns for that person's future.

  • "The upload has failed. There was a problem running a virus scan for the file."  any ideas???

    "The upload has failed.
    There was a problem running a virus scan for the file. "
    This is the message i get when tryng to update
    any ideas?

    Error: "svr.VirusScanExecutionError"
    An intermittent problem with acrobat.com's underlying virus scan component causes this issue. This issue happens occasionally on a small number of server instances.
    The solution is to update the article again. Trying again typically routes you to a different host in the server array.

Maybe you are looking for

  • CALCULATION OF OCTROI IN TAX INJ

    Dear Guru, In the pricing procedure We are following percentage base for the calculation of octroi.The octroi is calculated on the base value excise dutysales tax I give the basic price and the tax code in the PO and the octroi should be directly cal

  • How do I get my iPod touch 4th gen to a ios 6.1.4

    My iPod touch 4th gen is at ios 6.1.3 and I want to know when I can update it to a ios 6.1.4

  • Unable to install OS X

    After downloading OS Moutain Lion and rebooting. I recieved the following error: OS X Moutain Lion couldn't be installed, because the disk Macintosh HD is damaged and can't be repaired. Unable to restore from external hard drive as a destination disk

  • Installing Adobe Reader 9.0

    I get the message "Setup has detected that you already have a more functional product installed." I have run Windows Installer Cleanup, removed previous versions of Adobe reader and checked the registry for any references. I cannot install Reader 8.0

  • Repainting problems of the Menu items in Oracle Help Navigator

    All, I am facing a strange problem when using Oracle Help for my application which is developed in Java,Swings. Whenever, I open Help for any component through my application, the menu items in the Help screen are not visible. They are not getting re