What happened if i check the property called Reentrant in SubVI's?

I am calling the SubVI called "Addition.Vi" from the Main VI two times. In first case i haven't checked the property Reentrant and i am executing the main program. So only one instance will be created and the SubVi's will be executed sequentially. In second case i checked the property Reentrant in SubVI. So multiple instance will be created and the subVI's will execute simultaneously. Here my question is is there any difference in memory usage for both the cases?

> I am calling the SubVI called "Addition.Vi" from the Main VI two
> times. In first case i haven't checked the property Reentrant and i am
> executing the main program. So only one instance will be created and
> the SubVi's will be executed sequentially. In second case i checked
> the property Reentrant in SubVI. So multiple instance will be created
> and the subVI's will execute simultaneously. Here my question is is
> there any difference in memory usage for both the cases?
Rolf accurately summed up what is duplicated and what isn't. But the
bigger issue is when to use reentrancy.
As usual, the first issue to deal with is correctness. Memory versus
performance tradeoffs are one thing, but making your program produce
incorrect results is a bigger issue.
One way to characterize a VI is -- functional or nonfunctional.
Functional VIs are of the form y= f(x). For the same x, they will
always produce the same y. Nonfunctional VIs such as a running average
or a DSP filter do not do this, the history of previous calls will
affect the result of a given call. Nonfunctional VIs can be represented
as y= f(x,state), and can be implemented functionally so that state is a
parameter, either the state info or a reference to the state. Or they
can be implemented so that the block on the diagram "holds" the state.
With a functional VI, you can change reentrancy without affecting
anything but the memory/versus parallelism tradeoff. If you change
reentrancy on a nonfunctional VI, you just made a big change to the
behavior. Take a LV2 style global for example. Nonreentrant, and every
reader sees the last writer. Make it reentrant, and nobody talks to
anybody else, all readers get the initial value, and the writers send
the data to their own copy. This VI works as intended only when
nonreentrant.
Now lets look at a running average. If reentrant, each call drops off
new points for a channel and returns the running average for that
channel. Drop a second and it works independently on a separate channel
of data. Make the running average nonreentrant, and you are now
combining the channels into one and returning the average of that data
stream, which will probably produce very odd results. This VI works as
intended only when reentrant.
So the point is, before worrying about perfomance and parallelism, make
sure your VI is functional first. If it is nonfunctional, the
reentrancy only makes sense one way, and the compiler can't tell which
makes sense, only the designer of the VI.
Greg Mckaskle

Similar Messages

  • HT5085 What happen if I lose the music files from my desktop but I have the music in my devices (ipad & ipod)?

    What happen if I lose the music files from my desktop but I have the music in my devices (ipad & ipod)?

    Some of the information below has subsequently appeared in a document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991
    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing, nor do I have any idea if they are any good):
    Note: The information below hasn't been updated since early 2013.
    - Expod (free) - http://www.headlightsoft.com/expod/ - Mac, universal for 104.+ (newer machines try de-Tune)
    - deTune (free) - http://www.headlightsoft.com/detune/ - Mac, 10.5+
    - Senuti - http://www.fadingred.com/senuti/
    - Phoneview - http://www.ecamm.com/mac/phoneview/
    - MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/
    - Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
    - Snowfox/iMedia - http://www.mac-videoconverter.com/imedia-transfer-mac.html - Mac & PC
    - iexplorer (free) - http://www.macroplant.com/iexplorer/ - Mac&PC
    - Yamipod (free) - http://www.yamipod.com/main/modules/downloads/ - PC, Linux, Mac [Still updated for use on newer devices? No edits to site since 2010.]
    - 2010 Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141
    Hopefully you are not really running OS 9.1 as it states in your computer profile.

  • What happened to all of the options under Site Manager?

    There used to be tons of options under Site Manager:
    Pages
    Page Templates
    Module Templates
    Content Holders Menus
    Web Forms
    File Manager
    Etc.
    Now I only have two:
    Web Forms
    System Emails
    What happened to all of the extra options, and how do I access them now? Seems like it only happened since the BC updates.
    I have an Ecommerce BC Plan, so I should have everything.

    Turns out it was something simple. I created a ticket, and got the answer back. I clicked on "my details" under my name in the top right. I then checked and enabled "content editing". Somehow it must have gotten disabled because I was using Muse.

  • My iPad has been syncing for 18   hours since I am trying to do the iCloud thing.  What happens if I stop the back up process? Getting tired of waiting for it to get done.  Could this be caused by the fact that I have 5gb of photos on the iPad ?

    My  iPad has been syncing for 18 hours / back up process since I tried to work with the iCloud.  Some items ie., contacts are synced to my new iPhone 4si and also books from the app store and also kindle stuff is okay.  No photos yet.  iPad has 5 gb of photos on it.  What happens if I stop the back up/sync process before it completes? Does it mess up my iPad??? Thanks

    Delete your old Firefox Profile and create new one
    *http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    Backup and Restore your profile data's
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Profile_backup

  • I got an internet connection on my phone. After getting the internet connection, I was unable to make a call or check the missed calls that I got. Please help me resolve this problem.

    I got an internet connection on my phone. After getting the internet connection, I was unable to make a call or check the missed calls that I got. Please help me resolve this problem.

  • What happens when we activate the infoarea or infoobjects

    Hi All,
    What happens when we activate the infoarea or infoobjects
    Please can any suggest on this
    Regards
    Sameer khan

    hi,
    Info area - its an directory to hold all the infoproviders in it. also takes care of infoobjects created under it and the targets links.
    IO - char and KF are there.
    whenever you started creating the IA or IO it will be in M (modified/new version) while doing activation it gets changed status as A(active) version.
    During activation the underlying tables gets generated and hence the corresponding table structures are kept ready to get data into them.
    Ramesh

  • What happens when we activate the InfoObject Catalog

    HI
    What happens when we activate the InfoObject Catalog.
    Does it creates any table...
    Regards

    hi,
    Info object catalogue is nothing but directory to maintain char infoobject catalogues and keyfigure infoobject catalogues. when you activate it wont create any tables.
    points if helpful
    regards
    vadlmaudi

  • What happens after I use a emergency call?

    Just wondering what happens if I use an emergency call what happens after

    No, it doesn't lock up your phone.
    It just won't do anything aside from emergency calls until it's been activated.
    You can make a million emergency calls if you'd like.
    But please don't.

  • I made un update for OSX-10.9.2. , and when a scan a document or a picture, and order `save as` , the file saved is a black picture or document. I can't see the file. What happens? I made the downloads of files required in HP site.  Tks, Paulo

    I made un update for OSX-10.9.2. , and when a scan a document or a picture in one printer HP D-110, and order `save as` , the file saved is a black picture or document. I can't see the file. What happens? I made the downloads of files required by HP for the OS maverick in HP site. 
    Tks, Paula

    This link should help:
    http://h30434.www3.hp.com/t5/Mac-Printing-and-Scanning/OS-X-10-9-Mavericks-Incor rect-output-using-HP-Scan/td-p/3069079

  • I bought a HD and the Itunes Stores say that the movie (Pretty Women) has Itunes Extras. Why I can not find it? It is a mistake from Apple? What happen if I buy the movie because the Extras and now I can not watch it? I have an Ipad last generation.

    I bought a HD and the Itunes Stores say that the movie (Pretty Women) has Itunes Extras. Why I can not find it? It is a mistake from Apple? What happen if I buy the movie because the Extras and now I can not watch it? I have an Ipad last generation.

    What version of iOS do you have on your iPad (Settings > General > About > Version), and is it connected to wifi ?
    From Buy and play movies with iTunes Extras - Apple Support :
    Here’s what you need to stream the new iTunes Extras:
    Mac using OS X Mavericks v10.9.3 or later and iTunes 11.3 or later
    PC using iTunes 11.3 or later
    Apple TV (2nd and 3rd generation or later) using Apple TV software 6.2 or later
    iPhone, iPad, or iPod touch using iOS 8 or later (You need to connect to Wi-Fi. Extras won't appear if you're connected to a cellular network.)
    An active Internet connection
    You can use the steps below on your Apple TV, Mac, PC, or iOS device for any purchased, HD movie that features Extras:
    On your Apple TV, select Movies, then select your movie to see the Extras menu. Extras aren't available from the Computer tile on Apple TV (Home Sharing).
    On your Mac or PC, open iTunes and go to the Movies section in your iTunes library. Double-click your movie. If there's no Internet connection, the Extras menu will be skipped. The movie will immediately play if you already downloaded it.
    On your iPhone, iPad, or iPod touch, tap the Videos app, then tap your movie. If you're connected to the Internet via Wi-Fi, the Extras menu will appear.

  • HT1657 what happens if i start the rental and i wont download

    What happens if i started the movie rental when it wasnt all the download and it wont download the rest of it

    fergisom505 wrote:
    what happens if i unplug the charger and i plug it back in is it a problem
    Why would it be? The answer is no.

  • HT1814 What happen you tried holding the play/pause botton and it still doesnt turn on ?

    What happen you tried holding the play/pause botton and it still doesnt turn on ?

    if u are not going to help, get lost!!! but dont start to argue with me if want that do it with ur wife or whatever u have .
    Expend a little effort yourself to find the email. I am not going to find an email address for you. Your demand for me to give you an email address was self centered and smacks of lazy on your part.
    So to paraphrase you "If you can't ask properly, get lost!!!'.
    Oh, and learn how to spell "You". It might just increase your chances of getting help.

  • What happened to Slideshows from the finder?

    What happened to Slideshows from the finder? Now yo have to hold down option to switch from Quickview to Slideshow in the Finder menu-- and then in the slideshow itself, it doesn't fade from picture to picture like it used to. Anyone else notice this? It just jumps to the next pic with no transition.
    David

    Choose Computer from the Finder's Go menu.
    (105897)

  • TS3694 What happens when I get the error code 3194? Is my ipod "dead"?

    What happens when I get the error code 3194? Is my ipod "dead"?

    Make sure you are using current iTunes on your computer. Click the iTunes Tab at the top of this page. Or try to Restore your iPhone with a different computer.

  • What happens to PR when the related PO is cancelled

    Hi guys
    What happens to the Purchase Requisition (PR) when the related Purchase ORder is cancelled..........!!
    What is the process..
    Regards
    Sreee

    If you check the box 'cancel requisition' when you cancel the PO, the req is cancelled, else the req is not cancelled and should become available again in the autocreate pool.

Maybe you are looking for

  • Recovering from a network drive

    Hey all I've been successfully using Time machine on a network drive (using "defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1"
 in a console). Unfortunately, my HDD broke and apple support had to install a new one. Now, ho

  • GETTING RUNTIME ERROR IN TEXT_CONVERT_CSV_TO_SAP FUNCTION MODULE

    HI TO ALL SDNERS,                    IM TRYING TO INSERT A COMMA SEPERATED FILE INTO AN INTERNAL TABLE BY USING FUNCTION MODULE "TEXT_CONVERT_CSV_TO_SAP",BUT IM GETTING A TYPE CONFLICT AND THE PROGRAM IS DUMPED TYPES : BEGIN OF TY_CUST,            KU

  • Macbook air speaker not working

    I recently discovered that the right speaker to my Macbook Air isn't working... I've tried: checking sliders in Sound System Preference checking MIDI Utility zapping the PRAM resetting all prefs (using Onyx) removing the bottom to look for a loose co

  • New here but in need of a bit of help....

    Good evening, my problem is basically the amount of duplicates i have in my library and the fact that i am unable to delete them properly. My whole library seems to be duplicated at least once sometimes twice.... and i was hoping there might be a pro

  • UPS not recognized by Lenovo IX4-300D

    Hi there, My new IX4-300D is not seening Xfinity Pro Series 2000VA 1200W Uninterruptible Power Supply connected by USB. QNAP TS-269L on the same subnet has no problem seeing the same Xfinity UPS. QNAP TS-269L is presently setup as a master. In GUI ad