How to unpack a Subvi?

It is very easy to make subVIs in LabVIEW, but is it possible to go in the opposite direction? Is it possible to "roll out" a Subvi and get nodes returns with their connections? I could always use Undo, but I would test for a while and then decide whether it is worth keeping the Subvi. I find this very annoying open a Subvi, cut and paste nodes to the main VI and then reconnect all connections to the last. There must be an easier way?

Hello again,

See this link please:

http://forums.NI.com/NI/board/message?board.ID=170&message.ID=374627&query.ID=67521#M374627

Mike

Tags: NI Software

Similar Questions

  • I compressed a few photos in the microsoft Picture Manager, and now they are saved as thumbnails. How to unpack them?

    I compressed a few photos in the microsoft Picture Manager, and now they are saved as thumbnails. How to unpack them?

    Once you save the changes and close the program
    There is no way to revert to the original.

  • How to call asynchronous Subvi with version 8.6

    With the new 2011 version, labview has a function to start the asynchronous call, but version 8.6 is not.

    I want to call sub - VI, but not waiting for Subvi to finish before running the next step in primary vi.

    An asynchronous call to a Subvi starts the Subvi execution while allowing the data flow continue in the calling VI.

    Anyone can help on how to achieve this in version 8.6.

    Thank you

    deal 0 look like this

  • 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 make the Subvi when I make use of the structure of the event

    Hello everyone

    I don't really understand how to make use of Subvi when I use the event structures in vi?

    When just make buttons on the controls Subvi connectors and assign them the vi stops working as I expected.

    I've added an example vi I do not operate as a Subvi.

    Thanks for advantage.

    I think raise you an event to change value via the input connector, that you hope to do. One ugly semi solution is to get the button references and make a Value property (Signal).

    A better solution if you want Hasina events in a subvi is to record user events and send the registry-event thread for the sub - vi, where you can use these events to the event structure. Check that the user created events and examples of dynamic event.

    /Y

  • How to get the Subvi (the virtual path is in .exe) reference in Run Time System

    Hello world

    The problem is how to get the reference of the Sub - VI in run time system, when the Subvi is in .exe after construction.

    More details:

    Top of page vi called the Subvi dynamically, so that the Subvi is always included, and the source object is the application.exe.

    After the above configuration, the Sub - VI will be the application.exe. For example, the path of Subvi est...\application.exe\SubVI.vi

    So, how to get the reference of the Subvi in Run Time System?

    I can't do it when you use 'open reference VI' with le...\application.exe\SubVI.vi path in the run time system.

    In fact, I can create a file to include the Subvi, rather than build the Subvi in application.exe, then I can get the convenintly reference. But this isn't my favourate average.

    Thank you

    chenyin

    That is the problem. Call a Subvi dynamic means users could change, but it is also very attractive.

    The dynamic call should be used in a user control, but some parade can avoid problems.

    It depends on why you use dynamic calls...-online 2 main ways:

    -Dynamic call are used to maintain a scalable framework for the code without acting on the executable file-online a single VI distribution managed by the administrator/developer

    -Dynamic call are used to provide a collection of "external" characteristic that could be enriched by the administrator/developer. For example, you provide your customers a set of selectable custom signal filters in the executable.

    In 2 cases, you are only able to assess the skills of the users to know if there is a risk of damage, if there is a change.

    So to stay only master a parade might be to provide dynamic VI without a schema, but with the problem of maintenance, since no in-place editing and more attention to manage distribution.

    Another way is to hide the actual distribution to user-online call dynamic VI but it without name as *.vi but others (a repellent name as system of OS name ) or simply without extension in order to attract not user... but that's debatable...

    Another more difficult but more secure method is to create a consistency check before your routine (version, user, modified date,...)

  • Range variable, how to define a Subvi variable?

    Suppose we have a vi 'example.vi' name and this vi name is another name of the vi 'SUBVI.vi '. eaxmple.VI has a name of the indicator Boolean1. I want to put some Boolen1 TIME (this is very important) Subvi is running.

    I have attached the vi above. Can you suggest a way to solve this problem?

    Well you can update the reference to the Boolean command in the mainVI of the Subvi. Take a look at the following KB article:

    How can I update the changes made to a control/indicator a Subvi on the main VI?

    Thus, when the Subvi starts to run, set the Boolean value TRUE and once completed, set to FALSE.

  • How to bind a subvi (worksheet) with another VI

    Hello

    I want to know how to bind the data in the spreadsheet with the block diagram of the VI one another? IE I want to use 3 data collected in the worksheet block diagram has changed into a Subvi and this Subvi should be linked to another diagram of block that accepts these 3 entries to give a warning.

    Please help me how to link these two...:...

    Sorry, but I'm confused by most of your statements. There is a worksheet in Excel and a LabVIEW block diagram, but there is no such thing as a 'worksheet block diagram.

  • How to query a Subvi dynamically loaded to its input terminals names?

    Hello

    I have an application where I use dynamically load the Subvi and I need a way to query the Subvi for its names of input terminals.  I'll use several different Subvi now and in the future and will not experience the terminals.

    Any help would be greatly appreciated.

    Thank you in advance!

  • How to open the subvis before running software?

    Hi all

    I wonder if there is a way open subvis with my main vi and have it run at the same time the main vi is running?  As soon as I double click on the main vi, I want the panels front-end Subvi to pop up with the vi main and run them all when I click on run on my main vi.  Thank you.

    To get the sub vi FPs to open when you call, go to file > VI properties, select the appearance of window option in the dropdown menu, click Customize and check "see the front when it is called.

    At least the front of the auxiliary of the screw panels, which will open as soon as they are called in the main vi.

    As for having all FP open just by opening the main vi, but before you run the vi main, I'm not sure.

    Edit: a typo in

    Edit 2: Under "before show Panel when it is called" is another option.  «Open front when load.»  Looks like what you want.  That check for all of your sub vi

  • How to close a Subvi loop Main.vi

    I have a Subvi running (like a pop-up). Inside this Subvi, I have a while loop that will come out once I read a string via a port COM series.

    I was wondering if it is possible to change the value of the loop out button while in

    beside this Subvi. So far, I can stop this sub - VI, with a local variable, but it happens in the same Subvi. I want to know is if we can make outside the while loop from / to another VI.

    I read control references, variables global but still failed to understand this.

    Could someone help me with this issue, please!

    Thanks in advance!

    Hi, thanks for all you answers. I managed to get out of the Subvi using 'Strict Refnum boleean control'. This example has saved my day:

    http://www.NI.com/example/28769/en/

    Thank you very much and have a nice day! Later, I'll try to break out of a Subvi, using global variables and the case of event-driven.

  • How to operate the Subvi?

    Hello

    I use a VI instrument control and I used a Subvi to begin feeding after a certain point. I created a simple model of two-lane in the Subvi which includes just as an input error and mistake them as output connected to the respective terminals to VI main. The Subvi has 5 entries of order I made the default values so he will always perform with the values. These values act as an input for the power supply I'm controlling with the Subvi.

    Now when I run my VI it does not start the sub VI, it won't run the control values and gives 0 input to the PSU, so it won't work. I want that sub - VI to run when I run my hand VI. Am I missing something? Sub - VI works perfectly when I try to run it separately.

    That many things should be done when we connect all Subvi in primary VI.

    Thank you.

    LOCAL VARIABLES!

    Your problem is that you have what we call racing conditions.  Learn to think in data flow.  A function will run when it has all its entrances and will display its data when it is done running.  So the only variable local waiting to run?  NOTHING.  Thus, they work immediately, return the default data.

    The solution is quite simple, use instead the son.

  • How to pass a Subvi treeview items my hand VI?

    As the title says. Probably a simple concept, but I just can't get it.


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

  • Subvi in the memory of the loop

    Hello

    I have a loop that contains 3 subVIs that are exactly the same (that's why I use a Subvi ) each Subvi controls a device (again 3 devices that are the same). The entries to each Subvi is from a Mathscript node. Thus, on each iteration of the loop (1 s), the output of the Mathscript node will be introduced in the subVIs.

    The problem is that one of the 3 devices (the same one every time) gives an error after running for a few seconds. The error usually occurs because that the device does not receive an acknowledgment message after 3 seconds of running. I renamed the Subvi that controls this device, without changing the code and everything seems to work normally. Now, since the subVIs are all the same, I swapped two of them (one that I have renamed and another) and series of programs without problem.

    I don't know how labview treats same subVIs inside loops, and that's what I want to know. Even if the output of the Mathscript node occur at the same time (after performance of all knots), and therefore the entry of the subVIs are all ready at the same time, the SubVIs seems to launch successively, or at least not instantly.

    The device that fires an error is the first to run, and knowing that the Subvi contains a timeout 2000 ms, this device does not receive the recognition after 3s (because the acknowledgement is sent to the next iteration of the loop, if the subVIs 3 should go first before the iteration of the loop). That is, I changed the Subvi to decrease its 1710 ms delay time and use the same Subvi for 3 machines (without renaming it useless) and the program works flawlessly again.

    So, I'm just curious how Labview deal of same subvis that simultaneously run inside a loop.

    Thank you

    I agree with Ben.

    Mark your sub - VI as re-entering to allow all three instance of the same VI to run at the same time.

    Default VI is marked as non-reentrant so they in turn running sub - VI.

    In my Action Engine nugget , I have included this image to illustrate how multiple calls to a VI which is not reentrant is shared between instances.

    If you don't want to make the screws under reentrant you might also do a save as... and use three identicle VI which differ only in name. I generally avoid this approach because the code for the sub - VI changes require that change all versions. Better to bite the bullet and learn how to set the VI as re-entering.

    I hope this helps,

    Ben

    # 10 000

Maybe you are looking for

  • Android 2.1 update (Flash), 2.2 (Froyo) for AC100

    Hello I got my laptop with the new Toshiba android 2.1 system, but this is not supported by enough requests. So very important for me to upgrade to froyo 2.2.Is there is no official update from Toshiba or how can I update android 2.2! Thank you very

  • Equium A60 - DVD player does not read the data disks

    Hello I'm having a problem with my DVD drive on my laptop Toshiba Equium A60. The DVD drive (Pioneer DVD - RW DVR-K13A) will play store bought movies etc. without problem. He will also read a blank DVD when you put it in the drive, but once the infor

  • How do we refill my mouse

    How we recharge my mouse?

  • How to: determine the video configuration my Dell XPS M1330 has installed.

    Original title: I need help to find which video configeration installed my Dell XPS M1330. I'm going to START, and then click HELP AND SUPPORT, then?

  • Fix Unmountable Boot Volume.

    I have an Unmountable_Boot_Volume error today and after trying the reinstallation CD and the recovery option, a message tells me that the hard drive is not recognized. In the BIOS, HD is listed and seems to be OK. Any ideas on how to solve this probl