How do I create a subVI without controls?

Greetings,
I am going through some exercises to learn LabView and I have a question.
One of the exercises in my book is to create a subVI that generates a random number within a min/max range.  (OK--re-invent the wheel)  I have the block diagram and I have the icon designed, but I am having difficulty in getting the connections wired.
Right now it's a hard-coded static value for the min and max.  I'd like to have a connector in for each of the min and max (so that the parent can specify that however it wants be it with a static integer, an input, etc) and then a connector for the output--again, without a specified control so that the parent can take the value and run with it.
How do I do the wiring?  I can obviously drop in controls into the front panel, but my parent project doesn't need the clutter of 3 extra controls coming up on it.
Thank you,
newbo
Solved!
Go to Solution.

From the connector pane, you can right-click on a connector and select a setting.  You can set "This Connection is->" to Recommended or Optional.  This will allow the VI to be called without those terminals wired from the parent VI.  If left unwired, the default values you put in the controls will be used.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • HT5114 How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's#, 1 i-pad #mine#, 1 i-pad mini #10 year old's#, and 1 I-pod touch #11 year old's).  I would like to maintain pur

    How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's), 1 i-pad (mine), 1 i-pad mini (10 year old's), and 1 I-pod touch (11 year old's).  I would like to maintain purchase control, but would like to be able to have a separate account ID for each person.  Is that possible?

    Each email address can only be on one iTunes account, and all purchases are tied to the account that buys them. If you want to have separate iTunes accounts on each then you will need separate email accounts for each iTunes account

  • Hi this me Abdullah , How can I creat an account without payment information I just want an account to update the free App application , is that able ? Thanks ^_^

    My question is just how I can creat an account without payment information because I haven't a visa or master card I just want simply to undate the free App applications ... Is that possible !?

    Follow this guide: http://support.apple.com/kb/ht2534.

  • HT201359 How can I create apple Id without submitting credit card details

    How can I create apple Id without submitting credit card details

    There are instructions on this page for creating a new account withou giving a credit card number : http://support.apple.com/kb/HT2534 e.g. select a free app in the store and click on 'create Apple id' when 'buying' it

  • HT2589 how can i create apple id without using credit card details ?

    how can i create apple id without using credit card details ?

    @Limnos - that doesn't work anymore. There is no NONE option. I've been at it for hours trying to set up my daughter's account. I've tried creating and verifying an appleID on the web, on her touch...everything. Every single time you get to the stupid Touch, it wants to walk you through the verification of the account and it demands payment (even for their suggested apple Remote method listed in the KB).

  • How can I create a subVI that has state?

    I'm trying to simplify a VI that I inherited and I noticed a recurring pattern that IMHO should be a subVI.  The pattern is that we have a digital output line that is controlled by a timer.  Each output has a start time for it to activate and a duration after which it is turned off.  When the state changes, a single line entry is added to a common log file and an indicator shared variable is set so that the remote host VI updates.  We have a big while loop that checks the current time against each of the activation conditions.  To detect when the state has changed, we're using a shift register (for each actuator).  It's one thing to see the same pattern 3 times, but it's worse -- we want to sometimes use a different number of actuators.  If I was writing this in C++ (with which I'm far more comfortable than LabView), I'd write a class for the actuator and instantiate it N times.  The class would have member data to keep track of its state.  I can create a subVI that does the meat of the design pattern, but I can't figure out how to store the previous state in the subVI without requiring it to be passed in.  How do I keep the state and behavior of a VI together?  Surely there's a way to do this because otherwise I can't see how you could implement state-ful algorithms like, say, a PID controller.  But I'm at a loss to figure it out ...
    Thanks.
    Keith.

    To save state in a subVI and not use that state in other subVI calls, make the subVI reentrant.  When a subVI that is reentrant is called it creates a unique memory space for that subVI.  This is called a clone.  That memory space is where state is held for that subVI.  Keep in mind that it also means that the memory footprint is going to be larger.
    To set a subVI to be reentrant, open it and go to File -> VI Properties and select execution.  It will be a choice on the bottom left.
    Hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • How do you create an array without using a shell on the FP?

    I want to be able to read the status of front panel controls (value, control box selection, etc.) and save it to a file, as a "configuration" file -- then be able to load it and have all the controls set to the same states as were saved in the file. I was thinking an array would be a way to do this, as I have done that in VB. (Saving it as a text file, then reading lines back into the array when the file is read and point the control(s) values/states to the corresponding array element.
    So how do I create an array of X dimensions without using a shell on the front panel? Or can someone suggest a better way to accomplish what I am after? (Datalogging doesn't allow for saving the status by a filename, so I
    do not want to go that route.)

    Thanks so much m3nth! This definitely looks like what I was wanting... just not really knowing how to get there.
    I'm not sure I follow all the icons. Is that an array (top left with 0 constant) in the top example? And if so, that gets back to part of my original question of how to create an array without using a shell on the FP. Do I follow your diagram correctly?
    If I seem a tad green... well I am.
    I hope you understand the LabVIEW environment and icons are still very new to me.
    Also, I had a response from an NI app. engineer about this problem. He sent me a couple of VI's that he threw together approaching this by using Keys. (I still think you are pointing to the best solution.) I assume he wouldn't mind m
    e posting his reply and the VI's for the sake of a good, thorough, Roundtable discussion. So here are his comments with VI's attached:
    "I was implementing this exact functionality this morning for an application I'm working on. I only have five controls I want to save, but they are all of different data types. I simply wrote a key for each control, and read back that key on initialization. I simply passed in property node values to the save VI at the end, and passed the values out to property nodes at
    the beginning. I've attached my initialize and save VI's for you to view. If you have so many controls that this would not be feasible, you may want to look into clustering the controls and saving the cluster as a datalog file.
    Attachments:
    Initialize_Settings.vi ‏55 KB
    Save_Settings.vi ‏52 KB

  • How do I create a Snapshot without testing query?

    I'm working in an environment where the connection to the database server is done through a VPN that is sometimes broken and I have to wait for some time until it is restored. Other times, the database server is just down and in maintenance.
    In the meantime, I have to work with Director installed in a local virtual machine in my laptop.
    So, now I'm trying to develop some EDQ processes when there is no connection to the database, I'm unable to save snapshots because they require a test to occur (clicking in the Test button) before saving them, even if I'm providing a full SQL query to snapshot. I think it's because Director needs to know stuff like the data types of the columns to initialize properly the fields in the process.
    The problem is that I can't stop working just because there is no VPN. I should be able to create the processes and test them later when connection to the database is restored. I can do a lot of stuff (I can even copy-paste snapshots!) but I can't change nor create new ones, and that blocks me constantly.
    How can I do a snapshot save without database connection and have Director asking me the datatypes instead of trying to guess them from a "Test"?

    Hi,
    You can't create a snapshot without a connection to the database. A connection is needed when a snapshot definition is created in order to retrieve the column names and data types. As a solution to your problem, why not use data interfaces? Create a data interface that is of the required shape and refer to this in your processes (instead of the snapshot). You can then create mappings to different sources of data, e.g. snapshots, reference data, etc. You can test your processes when you're offline using a reference data mapping.
    regards,
    Nick

  • HT2589 How do you create apple ID without the payment method?

    How do you create an apple ID without payment method?

    See this Discussion from the  More Like This section on the right...
    https://discussions.apple.com/message/18689003#18689003

  • How can i create an ID without credit card for use in iphone?

    Am I able to create an ID without creditcard so that i can sign in in my iphone? how?

    Instructions here > Create an iTunes App Store account without a credit card

  • How can I create side bars without cropping the image?

    I want to create side bars because I am projecting in an vertical panel, but if I crop the image them I only get the middle part of it.
    How can I create side bars in an way that I can still move the image inside?

    On a Video Track directly above the clip(s) you want to have behind the side bars, place a clip of Color (or whatever you want to use for your sidebars).
    Now go to the Effects Tab > Matte >Mask Shape and drag the Mask Shape filter to the Color clip you have placed on the timeline.
    Double click on the clip to open it in the viewer, and click on the Filters Tab.
    Click Invert Box, and adjust the shape to get the side bars you want.
    And now the clip(s) that are beneath this effect will have the side bars and be independent of it, so that you can move them around.
    MtD

  • [iPhone] How do I Create a Star Rating Control?

    Hi
    I want to create a star rating control like the one seen in the iPod app. Is this available in one of the iPhone frameworks or do I have to create my own?

    OK thanks. I guess I'll have to create it myself and like you said it shouldn't be too hard. I had just hoped that I could make use of some graphic and functionality that were already there
    Thanks again!

  • HT204053 how can i create apple id without filling bill information just for free?

    i just want to create apple id without filling bill information, just for free application to download.

    False, Apple does not charge for free apps. You have an authorization hold, just like many other merchants do to verify that the account is valid and has funds available. The hold will fall off the account in a couple of days without charging your account.
    iTunes & Mac App Store Authorization Holds -
    http://support.apple.com/kb/ht3702

  • How do I create a montage without sizing errors?

    How can create a video, I want to mix video with photos without appear changed in the size the end video?
    Message was edited by: Kevin Monahan Reason: changed title to be more searchable

    You best start here:
    Get started with Premiere Pro CC
    Create a video story as your first project. (30 min)

  • Regarding Contacts: how can I create a group without adding those names to All Contacts?

    I can create distribution lists in my PC without cluttering up my list of All Contacts. I can't figure out how to do this in my new Mac.
    Thanks in advance for your help.

    The Apple Address Book generally is storing all your contacts in the All Contacts list.
    You might then put certain contacts in a separate group. By doing this, the contact is not copyied or duplicated, only linked from the All Contacts.
    The big advantage here is that it is much easier to avoid duplicates or to have outdated contacts in one of the groups.

Maybe you are looking for

  • How to return the correct row of data using diffferent conditions?

    I am having some problems with an sql query and I hope someone can help please? The data I am using is customers with multiple transactions. If a customer contains one transaction where the transaction type = 'W' then I need to set the output value t

  • OOTB create user is not working for AD

    Hi, While creating the user am getting the following error. [6/1/11 0:33:28:153 EDT] 00000037 SystemOut O DEBUG,01 Jun 2011 00:33:28,153,[XELLERATE.ADAPTERS],Class/Method: tcAdpEvent/getRunTimeVariableMappings - Data: adv name - Value: PasswordNeverE

  • Display Variable Values in 7.0

    There was an option in BW 3.x to display variable values using technical settings -> display -> variable values.  I do not see this option in 7.0!?  Showing the variable values is a great way to figure out whether or not a customer exit variables are

  • Using .psp files

    Has nayone come across ".psp" files?  I think it may be Print Shop Pro.  Is there a way to open or convert them with other software, perhaps iPhoto?  Thanks.

  • White edges

    When I print out the InDesign file, there is always white edges on the paper, how can I remove them?