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).

Tags: NI Software

Similar Questions

  • 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...

  • 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.

  • 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

  • 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!

  • 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.

  • A "priority" of the subroutine means anything in an FPGA?

    Since a programmed FPGA is a logical collection material strung with potentially much of it at the same time, defining priority execution of FPGA subVIs to "subroutine" really nothing? If you read the description of what made a priority of the subroutine, it is said that he devoted all resources in a thread of execution of the code in the subroutine. For me, this means time sharing of resources. But I don't think that execution shared threads exist in an FPGA, or are they? All possible execution priority levels mean anything to the FPGA code?

    Priorities of enforcement have no effect in the FPGA. Each Subvi not requiring arbitration (that is to say, is reentrant or used only once) is inline in the main VI at compile time. Execution priority, as far as I know, has no effect on arbitration for these subVIs that requires it.

  • Subroutine calls number priority

    Subroutine calls number priority

    A normal VI can be called only those at the same time. Is it by a VI with the parameters of the subroutine (priority) the same?

    And Multithreading?

    (VI--> priority--> subroutine properties)

    Thank you

    URS Mueller

    Priority of the reusable subroutine of a VI, but it also imposes time penalties severe enough to try to do.  Cause on the priority road to the subroutine is implemented, survey method is used to see if the VI is available for execution before running it.  If available, it is very fast (essentially no call overhead).  If it isn't available, I believe you get a 1ms wait before the next test.  Take home message - they are not a good choice for the engines of the action or any application that depends on the behavior of blocking of the non reentrant vis.

    Note that the new LabVIEW compiler inlining deploys this essentially obsolete feature.  It is not quite there yet, but it is close.

  • Node property/reference for the image and 'Create VI' inconsistent control?

    Hello

    I encountered this problem several times already and although I have worked around him, so far, I would really like to understand what is it:

    If I have an image display control on the Panel before (IMAQ Vision, not the image control type) and drag a property node or a reference to it on the block diagram, it seems impossible to create a Subvi diagram if the selected objects are equipped with a knot of property image or an image reference. Select 'Create Subvi' won't do anything, don period. No warning, no beep system, no nothing.

    A related issue is that if I have a view control reference on the diagram and try to create a control from it (for example to use as a control on one dimension of connector VI entry), same thing, "Create control" will not do anything.

    Why is this?

    Thanks for your comments.

    X.

    Xavier,

    This was reported to R & D (35835) for further investigations. A possible workaround is to make the Subvi LabVIEW 7.1 and open it in the new version of LabVIEW.

  • FPGA Subvi Multiple Instances

    Hey,.

    It is sort of a basic question, and I don't know how at the height, I'm on the vocabulary of LabView FPGA. I did a machine States that performs a task, and I want two of these state machines is running at the same time. So, I created a Subvi with the state machine and placed two calls to them in the top level VI.

    The problem is when I run the VI of highest level in interactive mode, the initial contributions are locked, and subsequent changes to the entries does nothing. So, basically there is something I don't understand. I imagining me signals propagating VI of highest level for two instances of the subVIs instead of the initial values being stored.

    What I am doing wrong?

    Thank you

    Kevin

    Hello kevin.key,

    The difference between the two parts of the code that you fixed is that the code in the while loop will run several times until it stopped while the code without the loop will only run one and then stops.

    Your Subvi begin values based on the values of input passed your top VI. These values will be updated every time your Subvi is called from your albums VI. To do this your top VI has a loop for continuous data and your Subvi should independently of your albums looping VI. The reason why the values in your front panel are not getting updated is because there is no loop in your top VI. If you include a loop that values will update each time the loop runs, which occurs only after the entire interior of the loop ends, including the Subvi.

    If you have access to a computer with LabVIEW on it try to start live using the run culminating to see the behavior of your Subvi.

Maybe you are looking for