Is there a tool to clean a directory structure of unused LabVIEW code?

I could write this from scratch as follows:
Load all of my LabVIEW code including dynamically-called VIs into memory, then list all these VIs.
List all VIs in the directory structure I want to clean.
For each VI in the directory structure that's not in memory, delete it. If this leaves that VI's parent directory empty, delete that parent directory.
There is probably already a tool or VI that does this, but I can't find it. Does such a thing exist?

bmihura,
I to have had the need/desire to do this.  At my previous employer I wrote a tool that assisted with that function.  Unfortunately I no longer have access to that tool.  If you have a very big program you may have memory and speed related issues when you load "all the VI's into memory".  
Good Luck
WW
Wire Warrior
Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

Similar Messages

  • How to install an entire directory structure and files with the LabVIEW installer

    I think I may be missing something on how to do this - preserve a file directory structure in the LabVIEW build process.
    Is there an easy way to distribute an entire directory structure (multiple directory levels/text files) and have the LabVIEW build process properly preserve and install them?   I included a directory in my build specification but it completely flattened the file structure and then so when the installer builds it, the resulting structure in the /data directory is flattened as well.    I'd prefer not to go through each file (~100) and setup a specific target location.   Is there an easy way to preserve the file structure in the build process/installer process that I am missing (maybe a check box that I didn't see or an option setting somewhere)?
    -DC

    Hi DC
    Sorry for the delay in responding to your question.
    You should be able to do this using a 'Source Distribution' as described below:
     - Right click on 'Build Specifications' and select 'New' - 'Source Distribution'
     - Provide a name
     - Add your files to 'Always included' under 'Source Files'
     - Under 'Destinations' select 'Preserve disk hierarchy' and ensure that 'Directory' is selected as the 'Destination type'
    When building an installer your can then choose to include your source distribution and it will be installed to a location of your choosing.
    Hope this helps.
    Kind Regards
    Chris | Applications Engineer NIUK

  • Directory structure in trash folder using cmsdk

    Hello forum community!
    We are using cmsdk to manage files online and have a problem with trash folder . If someone deletes whole directory, all structures are gone (only “flat files” are shown in trash) .Is there a possibility to show whole directory structures in the trash folder?
    Is this a configuration promlem ?
    regards,
    krystian

    Hello,
    Yes I mean the deleted Document.
    Let’s say I have a workspace with 3 folders (folder1, folder2, folder3). In every folder there are 3 docs folder1_doc1.doc, folder1_doc2.doc, in folder2 folder2_doc1.doc ...
    Now I delete folder1. I see in the trash of the workspace just the deleted files (folder1_doc1.doc...) without directory structure.
    What I want is to have a possibility do recover whole directory structure (folder1 including folder1_doc1.doc...).
    I hope it's clear now :-)
    Regards
    Krystian

  • Trying to copy a directory structure without all of the files.

    Hi,
    Is there a way to copy a directory structure with a number of subdirectories without all of the directory files coming along with it. I thought the cpio command would do that but I can't figure out how to use it.

    CPIO needs a list of files, normally you generate them with 'find', so that would work.
    There's an old thread about this on comp.unix.solaris. Personally, I like my 'rsync' solution. :-) But reading the entire thread may be a good idea.
    http://groups.google.com/group/comp.unix.solaris/browse_thread/thread/e84b458b3ce4b3b8/
    Darren

  • Get directory structure on CF Server

    Hi,
    Is there any possibility to view the directory structure of
    the CF Server using CF Tags?
    E.g. When you are creating a MS Access datasource, it allows
    you to Browse to the required directory on the CF Server.
    Would be grateful if you could please explain to me how this
    can be done using CF.
    Thanks and regards,
    Yogesh Mahadnac

    Hi Prasanth,
    Indeed I had used cfdirectory tag to list the directories
    well before posting this thread.
    The only thing is that I can't get the cftree to display a
    windws-explorer tree-like structure where I will also give the
    users the possibility to create a folder etc.
    Any ideas?
    Thanks and regards,
    Yogesh

  • Keeping directory structure with Catalog backup.

    So I have all my pictures in seperate directories on my computer. When using my catalog backup it just copies every file into a root directory, is there a way to preserve the directory structure that its making the backup from?

    Which verson of Photoshop Elementa are you running?
    In general, the way that the Photoshop Elements Catalog
    b Backup
    command works is that it renames the files during the backup process and it creates a Control File. Then when you use the Elements
    b Restore
    command, it can rebuild the folder structure as it was and place the photo (or video, audio) files in the same folder as it was at the time of the backup.

  • Sun recommended Java EE project directory structure?

    Hello,
    It's said that there's a Java EE project directory structure recommended by Sun.
    How to get it?
    I find a link as following,
    http://java.sun.com/blueprints/code/projectconventions.html
    The article is my want? Thanks!
    a cup of Java, cheers!
    Sha Jiang

    I got this worked out.

  • Tool to measure KDSLOC(Kilo Delivered Source Lines of Code)

    Hi Folks,
    Is there any tool which can gauge Kilo Delivered Source Lines of Code?
    Which is recommended for SAP source code files?
    Thanks in advance.

    ASAK Younus,
    It's better to take help of quality management people(QMS or Quality Analysts) in your organization.They only can help you out.
    Regards,
    Syfulla

  • Is there any tool to check whether the proper data is inserting or not?

    Hi,
    We have different products A,B and C.
    whenever user crates an account under these products some X,Y,Z table gets updated.
    If user1 creates an account under A then X, Y, Z tables update with some data along with some ID
    If user2 creates an account under A then X, Y, Z tables update with SAME DATA along with some other ID
    Is there any tool to check whether the proper data is inserting (same data is inserting every time) or not?
    p.s : if this thread is not related to this forum .. where can I post?
    Thanks,
    Praveen

    Is there any tool to check whether the proper data is inserting (same data is inserting every time) or not?You need to check the code to see that. Is the update or insert on the table has from different places? In that case it would be better to have them moved to a centralized place may be a package.
    If you want to restrict the columns to specific values then you can use constraints.

  • Is there any way to specify a URL in the servlet-mapping that doesn't need to be in the directory structure?

              I migrated from WebLogic 5.1 to 7.0.2 Something I used to have set-up in 5.1 no
              longer
              works.
              I am using the weblogic.servlet.FileServlet and have the URL "/cxedocs/" mapped
              to this
              servlet. So whenever the URL http://localhost:7001/cxedocs/en_US/index.html
              is used it would use the docHome associated with the /cxedocs/ URL and then append
              the "en_US/index.html" on to it. So let's say d:\temp\en_US\index.html
              But now for WL 7.0.2 it appears that the URL also needs to be in the directory
              structure.
              So it now takes the docHome "d:\temp" adds the URL "/cxedocs/" and then appends
              the
              rest - so d:\temp\cxedocs\en_US\index.html.
              I can't require that the "cxedocs" directory be there. Is there anyway to map
              a certain URL
              without requiring it in the directory structure. I looked at virtual directory
              mapping too but
              it still seemed to require this.
              Any help would be appreciated!
              Thanks!
              -Lori
              

              I opened up a case with support on this. After some research they came back with
              that
              NO there is no way to do this. In 6.0 it was changed to follow the spec which
              restricts this.
              The URL must be part of the directory path.
              -Lori
              "Lori Ronning" <[email protected]> wrote:
              >
              >I migrated from WebLogic 5.1 to 7.0.2 Something I used to have set-up
              >in 5.1 no
              >longer
              >works.
              >
              >I am using the weblogic.servlet.FileServlet and have the URL "/cxedocs/"
              >mapped
              >to this
              >servlet. So whenever the URL http://localhost:7001/cxedocs/en_US/index.html
              >is used it would use the docHome associated with the /cxedocs/ URL and
              >then append
              >the "en_US/index.html" on to it. So let's say d:\temp\en_US\index.html
              >
              >But now for WL 7.0.2 it appears that the URL also needs to be in the
              >directory
              >structure.
              >So it now takes the docHome "d:\temp" adds the URL "/cxedocs/" and then
              >appends
              >the
              >rest - so d:\temp\cxedocs\en_US\index.html.
              >
              >I can't require that the "cxedocs" directory be there. Is there anyway
              >to map
              >a certain URL
              >without requiring it in the directory structure. I looked at virtual
              >directory
              >mapping too but
              >it still seemed to require this.
              >Any help would be appreciated!
              >Thanks!
              >-Lori
              

  • Are there any tools from NI can generate the pass-through layer (IVI class driver) for IVI class specific driver?

    IVI class driver (layer) will provide interchangeable feature for a IVI class specific driver. It would work as a pass-through layer and finally make calls to the IVI class specific driver. Since there could be a lot of functions to be passed through. Are there any tools from NI (Labwindows/CVI or Labview) can do this ?
    Thanks a lot. 
    BTW: the IVI class specific driver interface is generated from Labwindows/CVI tools.

    Hi Chris,
    Yes, I did.  To support interchangability, from my understanding of the IVI specs, there should be another layer IVI-C class driver on top of this IVI class specific driver. As in the IVI‑3.1: Driver Architecture Specification:
    Although IVI‑C class drivers export inherent,
    base, and extension capabilities, they do not actually implement them. Except
    for a few inherent functions and attributes defined exclusively for class
    drivers, class driver functions and attributes provide a pass‑through layer to
    the IVI‑C specific driver. An IVI‑C specific driver is responsible for
    implementing the operations of functions and attributes and for communicating
    with the instrument. The IVI‑C specific instrument driver contains the
    information for controlling the instrument, including the command strings,
    parsing code, and valid ranges of each instrument setting"
    So where is this IVI-C class driver and how is it created and communicate with my class specific driver?
    Thanks a lot.
    Cheers,
    IVI‑3.1: Driver Architecture Specification

  • Are there any tools for data encryption and decryption ?

    Hi,
    i am using oracle 9i R2, i want encrypt my data. Are there any tools available in market.
    Please let me know the ways to do data encryption and decryption.
    Thanks in advance
    Prasuna.

    970489 wrote:
    using DBMS_OBFUSCATION_TOOLKIT.Encrypt /DESEncrypt we can't secure our password...So i am looking for an another alternative.As Blue Shadow said, what are you really trying to achieve?
    Encrypting a password is itself not secure. Anything that can be encrypted can be decrypted. That is why Oracle itself DOES NOT encrypt passwords.
    Surprised??
    Here's what Oracle does with passwords, and what others should be doing if they have to store them.
    When the password is created, the presented password - clear text - is concatenated with the username. The resulting character string is then passed through a one-way hashing function. It is that hashed value that is stored. Then when a user presents his credentials to log on to the system, the presented credentials are combined and hashed in the same manner as when the password was created, and the resulting hash value compared to the stored value.

  • Is there a tool that reads the number of assigned RefNums (primarily Queues)?

    Hi-
    I have been troubleshooting a memory leak caused by queues, and have found the following link helpful:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=85418&requireLogin=False
    My question is: Is there a tool that I can use that will show me how many refnums are opened in memory? Preferably with the references name? It would make verifying queue memory leaks and their eradication so much easier! If such a tool does not exist, could it be added to the VI profiler sometime in the future?
    Thanks!
    -Randy

    BUMP. I am curious too.  But I suspect not.
    A couple of things:
    Looking queues up by name creates a new reference to that queue (even if it exists).  So if you have a VI that runs for a long time repeatably looking it up by name, it will bleed the memory dry.
    Setting the "force destroy" of the release queue to true will destroy all references to that queue.  Freeing up that memory.
    As you are aware, I uses queues in my primary architecture.  I have run them in 30 plus day trials with no problems.  (I realize this is not helping you.) so by NI side implementation, there is no problem.
    I am not sure how much of a bear it would be, but you could wrap the "create queue" and log the number of creates that you are running. You can wrap the release queue, and see which are getting released.  Keep in mind if you "create" the same queue twice you will have two references open to that queue.  Force destroy closes both, otherwise, you are left with the remaining.  It is a management nightmare.  The latest incarnation of my statecase manager implements queue tracking. The nice part of this, is that I can actually pass events to any queue running, and save myself the trouble of looking it up by name.
    But you do have your work cut out for you, depending on the size of your program. 
    Good luck.
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • Is there a tool available that can be executed by another process to scale the actual size of a PDF?

    Is there a tool available that can be executed by another process to scale the actual size of the printed PDF file by X%?  We are attaching PDF files to printed output using the Oracle DocuMaker product, and are running into margin issues with the attached PDF.  We need to keep a 3/4 inch margin on our pages for sorting/finishing equipment, and the attached PDFs do not all conform to our margin requirements.

    What email program are you using? And what do you mean by "Safari mail"?

  • Is there a tool or method for editting line elements on a pdf form?

    We have recently created about 200 different acrobat forms with field elements.  We started with MS Word and converted to PDF using Acrobat Professional then we added in the form elements.  However the customer wants many lines removed or modified, table borders changed etc.  Is there a tool out there that will allow me to edit the pdf directly and delete a line or fill in a gap in a table?  We do not want to revert back to the word versions and start all over again.
    As an example please view this file: http://kendallrace.com/cas.pdf  We need to remove that half outlined table cell in the upper left, we need to remove the underlines in the middle of the page.  And sometimes the border of a table cell might not be outlined so we need to draw a line to finish the outline.
    Thanks in advance for the help,
    Trent

    Thanks a lot george, that appears to have worked great.  Thank you!!!
    Trent

Maybe you are looking for

  • PLEASE HELP ME , I really Get tired of this !!!!!

    Well , I don't how to start . I have a Server with the following specifications : Supermicro super Server6011H 1 - Dual PIII 1.4 Processors 2 - Adaptec AIC-7899W dual channel Ultra 160(320) SCSI controller 3 - Adaptec 2005S Zero RAID Configured with

  • How do you close multiple folders at once in IPhoto?

    What is the keyboard command?

  • Aiptek 14000u tablet won't allow me to bind erase

    Hello, i use Adobe photoshop CS5 and i just recently bought myself a Aiptek 14000u. i've installed all the drivers, gone through all the customization programmes and cannot for the life of me figure out how to bind the erase button to the two action

  • 80073cf6 error during install

    Hi, I recently upgraded from a Lumia 720 to a Lumia 930, and as I was restoring all the apps I had, I came across the above error when I was updating Microsoft Translator. Now I am unable to install the app, and receive the same error code everytime.

  • Database Heap Size issue -- Urgent Issue is on production

    Hi All, Iam encuntering the below errors in my alert log: ue Jun 23 16:24:38 2009 Memory Notification: Library Cache Object loaded into SGA Heap size 2467K exceeds notification threshold (2048K) Details in trace file /oracle/home/oracle/OraHome_1/adm