Why do you not use projects? When to use them.

I responded to a post about what mistakes novice LabVIEW developers commonly make.  One I feel is a common problem is not wrapping up closely coupled reuse code into projects that modularize code sections.
As examples there are nice Instrument drivers that contain all of the functionallity of a specific piece of test equipment.  Keeping these vis that work together in a single reusable project is quite helpful.  Other reusable pieces of code that are less related together might be more of a problem.  For example a "Delay.vi" and a subvi that calculates a CRC for your company's propriatary communications bus have little cohiesion.
Yet namespacing might suggest that those vis sort of go together.  Delay.vi on MyCorp.lvproj does change the problems Delay.vi from Mycorp has when YourCorp has another vi named "Delay.vi" and neither is in any sort of project.
The real issues seem to show up when we forget how each type of LabVIEW containers affect the "fully qualified name" of that peice of code asnd that the FQN effects what we really want...... I want my code to be protected from accidental change because I want to use that other code too!
That make sense.....Lets chat.
Jeff

tst wrote:
The project does not provide namespacing, because it is not a container. You can think of it more as an execution sandbox, although being a sandbox is only one (relatively small, in my personal experience) reason to use a project. What you're thinking of is a project library.
In general, you would want to avoid having your entire reuse library in a single .lvlib, because as you said, there is no real connection between VIs which perform unrelated reuse functions. The obvious answer is to use VIPM - it automatically renames the VIs with whatever namespace you choose, so that each package can be completely separate.
Another alternative would be a packed library for each component, but that has its own set of problems.
Exactly the points I wanted free discussion on!  Things I would point out.:
A  *.lvproj does in fact aid with grouping logically related functions and, does provide some namespacing.  That "On<target ,project> in the FQN is not known to the vi itself but can make a huge difference to the caller!  Lets use A TestStand proxy as an example caller and a UUTxxx.lvproj would be a common grouping of test steps, objects and methods that act to test functionality of "xxx" units.  Say we use a DAQmx device to test these units, create our DAQmx Task and persist it to UUTxxx.lvproj (yes we can do that, Task creation at run time should be avoided but that is another topic).  When calling the lvproject item from TestStand the proxy asks the project for the vi and its dependancies encluding any DAQmx tasks only that project knows about.  Quite powerful namespaceing can be achieved with a simple *.lvproj!
Jeff

Similar Messages

  • HT204032 Why can you not use powernap with a custom order iMac with solid state?

    Why can you not use powernap with a custom order iMac with solid state?
    Find it quite ridiculous that a 3 year old mba supports it and not a new iMac

    Agreed.  Why wouldn't you want your Photostream updated while your iMac is sleeping?  I am bummed about this.

  • Why can you not use Apple Pay for purchases in the App Store or iTunes?

    To make a purchases in the App Store or iTunes, it appears you can only pay by entering Mastercard, Visa, Discover, or AmEx information.   If you select none and try to make a purchase, you will again be prompted to enter this information.  I would like to use my Apple Pay account to pay for Apps/tunes, but that doesn't  seem possible.  It seems this negates one of the primary benefits of Apple Pay, which is to make purchases without turning over your credit card information to the merchant, in this case Apple.  I know you can pay with Touch ID, but that is only authoring payment from your credit card information you have on file.

    Hello ToastyFlake,
    It sounds like you are wanting to use ApplePay to purchase content from either the iTunes or App Stores. According to the following article, you are correct. ApplePay is for in-app (if the app supports it) or purchasing from a retail store. 
    Set up and use Apple Pay
    Pay with Apple Pay in stores
    On iPhone 6 and iPhone 6 Plus, you can use Apple Pay in stores that accept contactless payments. Look for one of these symbols at checkout:
    Pay with Apple Pay in apps
    On iPhone 6, iPhone 6 Plus, iPad Air 2, and iPad mini 3, you can use Apple Pay to pay within apps when you see the “Buy with Apple Pay” or “Apple Pay”  button as a payment method. Look for these buttons in apps:
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • HT201342 Why can you not use your iCloud account as your apple ID?

    ??

    This answer is probably the most popular one on the forum.  But apparently, this is a view not shared by virtually anyone else in the industry.  You can pretty much point to the same risks at stake for Google, Microsoft, Yahoo, or what-have-you.  No one else requires you to use a primary account other than their own. 
    The predicament you mentioned could easily be resolved by requiring multiple contact numbers and addresses, which Apple kind of does already.
    My thinking is there's either something more 'sinister' at play, or Apple just haven't really took the time to think about this issue.

  • If OWC SSD drives are so good, why doesn't Apple use them?

    I see a lot of positive reviews for OWC SSD drives, but I am curious as to why Apple does not use them if they are so good.
    Any thoughts?

    All SSD's are not created equal. Further it's been shown that the NAND chips are NOT the critical factor, even the controller chips (SandForce vs Marvel, etc) aren't the sole speed determinant of speed as with identical NAND and controllers firmware plays a significant role.
    Apple's first SSD's in MBA were very slow, the 2010 MBA SSDs were much faster (nearing 200MB/s), but still well below what was the top of the line of last years SSDs. This year's generation of SSDs are just showing up capable of 500+MB/s. I haven't seen a review of the 2011 MBP SSDs, but I'd imaging they're on par with last years.
    http://www.anandtech.com/show/3991/apples-2010-macbook-air-11-13inch-reviewed/4
    The point of all this is to say, there are now very high end and very low end SSDs on the market, and huge price differentials... since Apple doesn't detail the specs of bundled drives we won't know until someone publishes benchmarks.
    More info in general: http://www.anandtech.com/tag/storage
    This years top drives so far:
    http://www.anandtech.com/show/4186/ocz-vertex-3-preview-the-first-client-focused -sf2200
    http://www.anandtech.com/show/4202/the-intel-ssd-510-review

  • Why do you not offer a reversion feature when you crash my add on with updates?

    I at my advanced age rely on the norton toolbar for storing and remembering my multitude of logins. It seems as if every time you update firefox, I lose this feature and have to search the internet for an hour to find and download the prior version of firefox to get it back, and often it auto updates again within hours and wipes out that effort. Why can you not offer a reversion feature when you update? I have voiced this complaint repeatedly over several years. I am happy with firefox with that one exception. It is VERY annoying and time consuming.

    You could set your Firefox to notify you of updates, and give Norton a few days to update before actually updating Firefox. To set that, use this dialog:
    orange Firefox button ''or'' classic Tools menu > Options > Advanced > Update
    The "Check for Updates" option might fit the bill. Definitely easier than rolling back an update.

  • HT201365 I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?

    I just updated to ios 7 on my iPhone 4 how do you turn the apps off when your not using them? The old way of double clicking and then pressing the app until a red minus button comes doesn't work it opens it back up!?

    Double click home button, then swipe up on app picture (not the icon itself)

  • Using iTunes why can you not backup and save your voicemail?  Guide me through this step by step if possible.  If alternate method MUST be used then provide same.  Truly appreciate this.

    Using iTunes why can you not backup and save your voicemail?  Guide me through this step by step if possible.  If alternate method MUST be used then provide same.  Truly appreciate this.

    Create and delete iPhone, iPad, and iPod touch backups in iTunes - Apple Support  - link doesn't state that voicemail is part of the backup
    iCloud: iCloud storage and backup overview  states that VVM is part of the icloud backup.
    You can also contact your cell phone provider - as voicemail is a carrier feature.

  • I have just upgraded my account why can i not use it, it keeps redirecting me

    I have just upgraded my account why can i not use it, it keeps redirecting me

    Hi;
    You upgraded your FormsCentral account?  Can you explain what you mean that you cannot use it, what is happening, when and where are you being redirected?  Did you use the same email address for the upgrade as you used to sign into this forum?  We see a lot of cases where users sign into FormsCentral with one email address but then use a different during the upgrade process.  Check and see if you have another email you might have used for the upgrade.
    Thanks,
    Josh

  • To transfer the data Cross the systems why we are not using BAPI Method?

    Hello All,
    To transfer the data Cross the systems why we are not using BAPI Method? why we are using only ALE/IDoc's?

    Hi Naveen,
       Listing down those I know -
       1. Master data is expected to be changed/created less frequestly.
       2. Transactional data is expected to be chnaged/created more frequestly.
       3. Transactions to create/change/display master data do no have message control integration, since you are not supposed to print/fax/mail master data to your partners.
       4. Distribution of master data in generally supposed to happen within Enterprise boundry and typically you will have one central server maintaining master data which will be distributed to multiple downstream operation system (Some thing where MDM fits). So ideally when distributing master data using ALE you will be sending it to multiple systems.
       5. Distributing transactional data PO/SO etc is same as sending fax/print which fits with the requirement of message control.
    Hope this helps,
    Regards,
    Sanjeev

  • Why can I not use my gmail account calendar on my MACbook Air?

    Why can I not use my gmail account calendar on my MAC, when I try to sync it, it says "secure connection cannot be established" Is there a setting I don't know about?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Setting up iCloud family sharing. Why can I not use my iTunes as a valid payment method?

    Why is iTunes card not a option under payment method. I am wanting to setup iCloud Family Sharing. But I need to give Apple a credit card which I do not have. That is why I use the iTunes card and redeem the money. If it is good enough to use iTunes card when making purchase from Apple iTunes store then why is it not an option when setting up iCloud Family Sharing account.

    wilson68
    You're allowed play the music on up to 5 devices. Each device must be authorised. Unless you can connect the xbox to the apple store to be authorised, you will not be able to play the music on it.
    Regards
    TD

  • HT1848 How do I sync my music on my computer to my iPhone - why does this not happen automatically when I connect?

    How do I sync my music on my computer to my iPhone - why does this not happen automatically when I connect?

    Do you have iTunes set to sync music to the device?
    Have you read the User's Guide that explains how to use the device?
    Syncing media and content to iDevices

  • Put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    i just purchased a file that had videos in it. i put them in the itunes library on my pc where i first downloaded them. i was able to transfer them to my other pc, a laptop, through my home network. i am now trying to get them on my mac pro desktop and my ipad2. my mac pro can see the other computers on my home network but i cannot get it to connect to them. i know the operating systems are different but was hoping i could transfer pictures and files from pc to mac this way. haven't been able to get it to work yet. the videos i am trying to get my mac to see came in a folder with both mac and pc versions. i thought if i got the videos i purchased into itunes that i would then be able to get them to my mac pro and my ipad2. i am new to mac/apple and have always been pc-centric so trying to marry it all has been difficult. i speak pc pretty well but am just learning apple. am i trying to do things that are not possible? i sure could use a knowledgable friendly soul to walk me through my issues of having pc and mac on the same network. i have been able to get all computers and ipad to print on my network. thanks.

  • Why index is not used by this table

    Dear all,
    Currently I'm facing problem with tuning one sql statement.
    It shows that full table scan in ZTLTBC_FILTER cost 15:19.
    But in table ZTLTBC_FILTER, it have index with field
    index 1    MANDT INT_NAME FNAME VALUE
    index 2    MANDT EXEC_ID COUNTER
    index 3    MANDT INT_NAME VALUE
    the last statistic date for these index is three months before
    Could you please help to find out the reason why index is not used?  statistics are old or small distinct value for field INT_NAME?
    How to solve this full table scan problem?
    Thanks & Regards,
    Chris
    sql statement
    SELECT T_00."MANDT",T_00."EXEC_ID",T_00."COUNTER",T_00."FNAME",T_00."INT_NAME",T_00."VALUE"
    FROM "ZTLTBC_FILTER" T_00
    WHERE T_00."MANDT"=:A0 AND T_00."INT_NAME"=:A1 AND EXISTS
    (SELECT T_100."INT_NAME"
    FROM "ZTLTBC_MIRR_BUFF" T_100
    WHERE T_100."MANDT"=:A2 AND T_100."INT_NAME"=:A3 AND T_100."EXEC_ID"=T_00."EXEC_ID" AND
    T_100."COUNTER"=T_00."COUNTER")
    | Id  | Operation            | Name               | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |                    |       |       |       |   176K(100)|          |
    |*  1 |  HASH JOIN RIGHT SEMI|                    |  9958K|  1111M|   598M|   176K  (2)| 00:17:53 |
    |*  2 |   INDEX RANGE SCAN   | ZTLTBC_MIRR_BUFF~0 |  9958K|   484M|       |  6265   (1)| 00:00:39 |
    |*  3 |   TABLE ACCESS FULL  | ZTLTBC_FILTER      |    13M|   822M|       |   150K  (2)| 00:15:19 |
       1 - access("T_100"."EXEC_ID"="T_00"."EXEC_ID" AND "T_100"."COUNTER"="T_00"."COUNTER")
       2 - access("T_100"."MANDT"=:A2 AND "T_100"."INT_NAME"=:A3)
       3 - filter(("T_00"."INT_NAME"=:A1 AND "T_00"."MANDT"=:A0))

    Hello Bret,
    I'm using oracle 11.2
    Thanks & Regards,
    Chris

Maybe you are looking for

  • QuickTime Pro on my two hard drives one Mac

    I have QT Pro on my Panther Hard Drive, and I have Tiger on a 2nd HD on the same Mac, is it possible to use the QT pro I've already purchased on the Tiger HD? Thought I'd ask before I purchased the same QT again. Don't want to install Tiger over my P

  • Error When Displaying report Crystal Reports 10

    <p>Hi There.</p><p>When trying to display a report onto a jsp, Im getting the error shown below:</p><p><strong>java.lang.NoClassDefFoundError<br />    com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknow

  • For transport a infocube

    Hi,        I want to transport one data target. what are the object to collect for the trnsport a data target from one box to another. Please help in explain steps in depth. Thnaks Satish.

  • "Server crash detected (signal SIGSEGV)" on startup, iPlanet 6 sp2, SDK 1.3.1_03, Linux glibc 2.2.4

    When installing with the bundled JRE 1.2.2 (I think) I don't have this problem. The Pooblem existed with SDK 1.3.1_01 so I upgraded to 1.3.1_03. There were some notes in that release that a signal 11 caused by hotspot had been fixed, but the problem

  • Classic synchronizing problem

    My Classic is a couple of years old and has been restored about three times now. For some reason(s) it crashes and have to go thru the resoration stages for it to work properly. Now it connects to iTunes but but has trouble synchronizing when music f