queue connection create a Subvi

Hi, I need to know how the queue can be used to input and output terminal during the creation of a new sub - VI.

I need to replace a loop by its equivalent scheme in a sub - VI I create, don't know how to include the line between this line and the other loops in the design of Subvi.

You have the queue in your Subvi thread now?

Right-click on the reference queue thread and select Create control.  This will create a front panel control, you can join the connector pane to get the reference of the queue.  If you do the same thing and select Create indicator, you can connect this indicator to the connector pane to move the back reference queue.  Of course the wire to the top of the control and the indicator is appropriate in the Subvi.

If this isn't answering your question, thank you post your VI so we know what you're talking about.

Tags: NI Software

Similar Questions

  • How to create a Subvi without controls?

    Greetings,

    I go through exercises to learn LabView and I have a question.

    One of the exercises in my book is to create a Subvi, which generates a random number in a range of minimum/maximum.  (OK - re - invent the wheel)  I have the block diagram and I have the icon, but I have trouble getting the wired connections.

    Currently, it is a static value hardcoded for the min and max.  I wish I had a connector in each of the min and max (so that the parent can specify that however, he wants to be with a static integer, one entry, etc.) and then a connector for output - once again, without a control specified so that the parent can take the value and run with it.

    How to do wiring?  I can obviously fall into the controls in the front panel, but my parent project doesn't have space for 3 additional orders coming on it.

    Thank you

    newbo

    In the connector pane, you can right-click on a connector and select a setting.  You can assign "this connection is->" recommended or optional.  This will allow the VI to be called without these wired terminals of the parent VI.  If the left unwired, will serve as values by default that you put in the controls.

  • How to create the hierarchy without creating a Subvi files

    Hello

    I have an existing LabView program that uses blocks of Subvi.  I want to change it so that I can't copy files Subvi (when I transfer the program to another computer).  The goal is to have a single file/program that I can copy, paste, and run on other computers.  So, I want to know if there is a way to create the hierarchy without creating a Subvi files or how to integrate the Subvi in the program.  My program and Subvi files are included here.

    Thank you

    Rocky

    You can create a version in an executable file.  It would be the most common way if you insist on having a single file.

    You could also build a source distribution in a zip file.  Then you just copy and paste the zip file and unzip it anywhere where you want.

  • Why do my AO create a Subvi doesn't work?

    I have a card PCI-6251. I do a simple DAQmx write the sequence by using an entry to create a task, Create Channel and clear. It works very well.

    When I copy/paste the task of creating, blocks of channels to create a Subvi with appropriate and all connectors, it does not work. Is there some VI property I need to change or put on the Subvi?

    Sorry, the output_test.vi should have a different task and the channel name that appear in my attachments in order to not not to be the same as the Subvi.

    I just put the VI properties for the Subvi unchecking re-entrant execution and it seems to work now every time.

    Just solve my problem?

  • 'Create a Subvi' movements labels (LV2013) IMAQ image controls

    Hello

    I noticed a strange behavior in LV2013 (x 64 and x 86) what SubVIs creation from a selection containing Image IMAQ son:

    The labels out of place of obtained characteristics Subvi on IMAQ controls/indicators, see the illustration below.

    This VI

    is impaired by creating a Subvi for copying and masking as follows

    The Subvi created has a façade that result that looks like this:

    All labels on IMAQ orders/lights are completely irrelevant. I couldn't understand, what appears to be a function of the new position of the label. In any case, it is quite annoying, because labels sometimes moving out of the main visible portion of the public Service and you have to go and look for them (through the window). -You must identify all the labels with the command/indicator to put everything back in place.

    One of my colleagues has confirmed this behavior on a different windows PC, using the same version of LV in x 64 and the same version of Windows 7 Pro)

    Of course, a simple method of MoveToDefaultLocation on all PS elements cause they go where they are expected to be, but how tedious... I remember not such behaviour in LV2011 where I used 'Create Subvi' loads of times with IMAQ Vision functions.

    I'd be happy if someone such color in it. Thank you very much.

    Cleaning of façade create a Subvi is performed, but it's not explicitly change the position of the control and indicator labels. There seems to be a bug in VI server when setting the position of the refnums IMAQ. This bug is independent of the function to create a Subvi. When writing of the 'Position' of a refnum IMAQ control property, the label seems to throw himself in a weird position. I've not seen this with other types of control with other controls, their labels always remain in the same relative position when the control is moved.

    I'll drop a CAR against the Position and IMAQ refnums property. In the meantime, you can use the VI attached to this post to solve the problem. Follow these steps in LabVIEW 2013 or later:

    1 copy of the VI attached to the following location: [LabVIEW 20xx] \resource\plugins\CreateSubVI

    2. restart LabVIEW.

    Once you have done, the position of the label IMAQ refnum to correct every time that you perform an operation to create a Subvi.

  • I created a Subvi to copy the Boolean status to my main VI, but I failed

    I created a Subvi and wanted to copy the Boolean status in my main vi, I wrote a simple code in the Sub - VI, but I can't achieve my goal in the mainVI,

    I know that I don't have to create a Subvi but only VI to do this work, however, out Boolean is the only function of my work, the Subvi has other things to do

    so to do this correctly, what should I do?

    Thank you

    Goto main block diagram, instructions are here...

  • Create a Subvi - priority subroutine

    Why is it not possible to create a Subvi from code with a priority of the subroutine? (with 'create sub - VI')

    (LabVIEW put just the Subvi with the same priority of subroutine)

    Is this expected behavior? and, if so, why?

    It seems that this behavior already has a CAR that are associated to him. The number of CAR is 383301.

    I'm sure that you have already done this, but the workaround is just to create the Subvi manually or to reduce the priority and create the Subvi (making sure to put the priority of these two VI to subroutine).

  • Unable to create a Subvi

    Hello

    Joined a VI that I want to creat in a Subvi. When I go to change-> create a Subvi... it is grayed out and disabled.

    I'm running out of certain stages, or something?

    Thank you

    BP

    You must select something to create a Subvi. So, just highlight using a mouse and then create a Subvi.

  • Is it possible to create a Subvi of variable size (stretch)?

    I was wondering if it is possible to create a Subvi where its size (inputs and outputs) can be extended. To be clear, something like the CONCATENATE function, where you can change its size by making it bigger.

    James.Morris wrote:

    garrettmarsh wrote:

    Right-click Subvi > uncheck the "display as icon".

    Which does not allow the slide to add more entries, it changes just input/output are visible. I think OP wants a Subvi with an expandable size input/output similar to the Array Index or concatenate strings.

    Good point, my suggestion really offers only a cosmetic change in the way your diagram appears. OP, you might look into XNodes to do what you describe, but it will probably take some work. Last I heard they are a type of "use at your own risk" of functionality that is not officially documented or supported.

    There is some info here to help you get started:

    http://forums.NI.com/T5/LabVIEW/what-is-an-XNode/TD-p/1307516

  • Know the total number of connection created in AM Pool?

    Hi all
    I use 11.1.2.0.0(11gR2) Jdeveloper.

    We use 3 Modules of Application within our application.
    How to find the total number of connections created in the pool of the AOS?
    Any option in weblogic for this or by programatically means how?.

    Thank you
    Vass Lee

    Try this
    http://spotlearning.WordPress.com/2011/07/10/get-application-module-pool-statistics/

  • Create a Subvi command library

    I do a user interface that runs different tests that involve some movement commands.  The movement controls are simply send a command string to a DLL file.  Is it possible that I can consolidate all my movement controls (like up, down, stop, pump, etc.) in a Subvi and then call some command I need in the main vi?  I hope that makes sense.  Thank you

    Of course it is!

    Oh yes - you probably want details...

    Well one thing you can do is to start with the VI you have now for talking to the camera and replace everything which is food chain IO routines now with a case structure. Then put all the different channels in the structure of the case (one channel per image, please) and the wire can control enum to the selector node on the structure of the case. Finally, create an enumeration for each operation (up, down, stop, pump, etc...). Now the string no matter what you select will be sent to the IO routines.

    Mike...

  • IMAQ create and SubVIs

    Hello!

    I am video capture with IMAQ.

    I have a hand program and a Subvi, which made the acquisition.

    When I use the Create.vi IMAQ to allocate say 5000 photos in the Subvi runns all fine

    but whenever I call the Subvi there is a delay until all images are ready for the acquisition.

    So I tried to make the distribution of the hand-Programm-VI where is enough time to do this while the user makes other things.

    Then I put a reference or a single entry to the Subvi with table empty I allocated.

    When I run the program now acquiring works but is about 10 x slower than before.

    What's wrong? Why ventilation is in the Subvi to run at normal speed?

    Welcome C.Riedel

    Thanks to all who tried to help, but I found a solution (unsatisfactory).

    I completely Redid the Subvi by copying and pasting the code in parts to a new VI...

    and it works now. Jey!

    So Bruce was good, the concept is correct. Thanks for that!

    The source of probs remains unknown... NaH... but fortunately it works now!

  • SP2-0640: not connected - create database link error Gateway

    While trying to connect through the gateway SQL by using 'Create database link','m ' SP2-0640: not connected "error. Here are the details.

    ====================================================================
    TNSNAMES.ora
    dg4msql =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    (CONNECT_DATA =
    (Service_name = dg4msql))
    (HS = OK)
    )
    ====================================================================
    LISTENER.ora
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = dg4msql)
    (ORACLE_HOME = C:\product\11.2.0\tg_1)
    (PROGRAM = C:\product\11.2.0\tg_1\bin\dg4msql)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
    )
    )

    ADR_BASE_LISTENER = C:\product\11.2.0\tg_1
    ====================================================================
    SQLNET.ora
    # This file is actually generated by netca. But if customers can opt for
    # install 'Software Only', this file does not exist and without the native
    authentication #, they will not be able to connect to the database on NT.

    SQLNET. AUTHENTICATION_SERVICES = (NTS)

    NAMES. DIRECTORY_PATH = (TNSNAMES)

    ====================================================================
    initdg4msql.ora
    HS_FDS_CONNECT_INFO = sqlserverip, port / / PMDB
    HS_FDS_TRACE_LEVEL = OFF
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = RECOVERY

    ====================================================================
    lsnrctl start outupt
    The State of the application "dg4msql" UNKNOWN, has 1 handler for this service...
    The command has been executed

    ====================================================================
    tnsping output

    Settings file that is used:
    C: \ Product------11.2.0------tg_1------network-admin------sqlnet.ora

    has been used TNSNAMES adapter to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = dg4msql)) (HS = OK))
    OK (20 ms)

    ====================================================================

    creation of link db output

    SQL * more: Production release 11.2.0.2.0 on Lun Ott 8 12:03:08 2012

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    SQL > CREATE DATABASE LINK dblink PUBLIC CONNECT WITH As IDENTIFIED BY Manager1 USI
    NG 'dg4msql ';
    SP2-0640: not connected.

    most of the foreign bases are case-sensitive and default Oracle moves all uppercase. To keep the name of an object you should always be surrounded by double quotes and make sure tzhat you write the name exactly as it is defined in the foreign database, for example:
    Select 'id' from 'TEST"@ln;

  • How to get to the factory of local connections created within a foreign server in OSB

    Hi all

    I am facing a problem in my plan of config. We have a foreign server SIDES with the factory of following local connections:

    JMS/RibAqJmsXATopicConnectionFactory


    I use below in my configuration level:

    < cus:envValueAssignments >
    URI of the Service < xt:envValueType > < / xt:envValueType >
    < xt:location xsi: Nil = "true" / >
    < xt:owner >
    ProxyService < xt:type > < / xt:type >
    < xt:path > RLTPReturnToWarehouse/ProxyServices/ConsumeRIBRTWMessages < / xt:path >
    < / xt:owner >
    < xt: value xsi: type = "xs: String" xmlns: XS = "http://www.w3.org/2001/XMLSchema" > jms://localhost:7001 / jms. RibAqJmsXATopicConnectionFactory/jms.etASNInFromRIBToWH1 < / xt: value >
    < / cus:envValueAssignments >

    and I get the below error:

    [java]
    [java] Loading customization fichier./dev/OSBCustomizationFile.xml
    [java] Customization applied to the created only resources]
    [java] com.bea.wli.config.customization.EnvValueCustomization@553c13
    [java] Unexpected error: com.bea.wli.sb.transports.TransportException
    [java] Problem call WLST - Traceback (innermost last):
    [java] File "D:\VFUKScripts\DeploymentScripts\osb\import.py", line 200, in it?
    [java] File "D:\VFUKScripts\DeploymentScripts\osb\import.py", line 122, in importToALSBDomain
    [java] com.bea.wli.sb.transports.TransportException: has no research factory jms connection. RibAqJmsXATopicConnectionFactory


    what I'm missing here?

    [java] com.bea.wli.sb.transports.TransportException: Failed to research connection factory jms. RibAqJmsXATopicConnectionFactory

    It seems that the JNDI you created for the ConnectionFactory is not reflected in the server.

    Connect to the WLS Console > summary of the servers > server_name > view JNDI tree
    Go to the JNDI tree and see if your JNDI is visible here. If it isn't then, reboot the server and check again.
    If you are able to find in the JNDI tree, then run the customization file.

    If you have changed the existing JNDI properties (which have a small symbol exclamatory) then any change to those who do not appear until all servers in the cluster are restarted.

    If it still does not work, then recreate a new connection with a different name and then try again. It should then work.

    Thank you
    Patrick

  • It is a new connection created when I run this code?

    Hello everyone,

    Anyone know tell me if a new connection with the database, it is created when I run this code?

    I use JDeveloper Studio 11.1.1.4.0.

    ADF Swing application.

      //Método que exclui os endereços filhos de Observador
      private static void excluirEnderecoObservadorPanelGrid(Row row) {
          String appModule = "hidro2.gov.snirh.ig.hidro.model.adf.app.AppModuleGlobalTabApoio";
          String config = "AppModuleGlobalTabApoioLocal";
          ApplicationModule am = Configuration.createRootApplicationModule(appModule, config);
          ViewObject voObtemEnderecoObservador = am.findViewObject("ViewObjEndObservador1");
          
          try {          
            
              voObtemEnderecoObservador.setNamedWhereClauseParam("END_OBS_ID", row.getAttribute("ObsId"));
              voObtemEnderecoObservador.executeQuery();
              
              if (voObtemEnderecoObservador.getRowCount() > 0) {
                 Row rowEndereco = voObtemEnderecoObservador.first();
                 rowEndereco.remove();
                 am.getTransaction().commit();
              }
      
          } catch (Exception ex) {
              ex.printStackTrace();        
          }
    }

    Hello

    You must free request module after the creation.

    ApplicationModule m = Configuration.createRootApplicationModule (appModule, config);

    In the finally block, add the code below

    Configuration.releaseRootApplicationModuleHandle (appModule, true);

Maybe you are looking for