Searching existing VIs for content

Hi,
I'm used to text-based programming languages. There, if I have a problem that I know I've solved in the past and want to recal how I did it, I can run grep (or similar) in a root directory and quickly find the required files. Usually the hits come from the comments I've written. Now that I'm learning LabVIEW I'm finding this isn't so easy. I've got a bunch of directories and a bunch of VIs, with only their file names to guide me. How do I go about doing something analogous to what I'm used to with text-based languages?
Thanks

raacampbell wrote:
I read up on the terms you list, but from what I can tell these things would be most helpful if I already have the VI open. What I'm wondering, is how I can search for the one VI somewhere in my directory tree, where in the past I solved a particular problem. I can see that it would be a good idea to describe what the VI does using the Documentation property. So I could write in the docs that this VI uses foo bar to perform operation X. But then, a while later, I need to search for X and foo bar in (presumbably) the OS file manager or command prompt. Now what?
That's why you work with projects.  Just like other text based languages, you don't usually open the text files one at a time you open the project and then drill into the files you want.  In the same way if you work with a project in LabVIEW you have all VIs in memory and can perform a string search (CTRL + F) and find all the comments you left on your code.
A new thing in 2013 is bookmarks which can be found using the # symbol in a comment.  This again works best with a project because all the files are already in memory.
If you insist on not using a project you can still open a VI reference and do the search your self, finding all the places a comment contains the string you left, or in the VI documentation.  Also the VI Documentation is actually stored in plain text within the VI file so searching can be done with conventional search methods if you force it to treat the VI file like text, or write your own searching method.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • How can I ask my php include to search 2 folders for content?

    Hi guys,
    I'm using the below code to call content into my websites'
    layout:
    <?php @ require_once ("$pagename.php"); ?>
    At the moment, I believe it will only search for files in the
    same folder as my main template which is fine.
    The thing is though, is that I want to put all the news files
    in a folder called 'news'. Is there a way that this code can be
    edited so it can not only search for and include files in the same
    folder but also news/ ?
    Thank you very much and I hope to hear from you.
    All the best,
    Mark

    Spindrift wrote:
    > Is there a way that this code can be edited so it can
    not only
    > search for and include files in the same folder but also
    news/ ?
    Use ini_set() to change the include_path configuration. The
    actual code
    you need to use depends on the operating system used by your
    server,
    plus the file hierarchy.
    www.php.net/manual/en/function.ini-set.php
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

  • My iPhoto library has suddenly disappeared from my computer. When i click on iPhoto it tells me to choose my library or create a new one. However no library option appears. I have searched the computer for the library but it does not seem to exist

    My iPhoto library has suddenly disappeared from my computer.
    When i click on iPhoto it tells me to choose my library or create a new one. However no library option appears. I have searched the computer for the library but it does not seem to exist anymore. I did not have time machine set up, so there is no back up. Is there any way i can retrieve my library?
    Here is a picture of what appears when i click on iPhoto:

    In terms of searching i have searched for photos on my finder. However, none of the photos that appear are from my iPhoto Library.
    Search with FindAnyFile. You can download it here:   http://apps.tempel.org/FindAnyFile/index.php
    Search for any file with "ThumbJPGSegment" in the name. If you added at least one image to your library, the library should contain a file with this name, see OldToad's post: Re: Since I updated to iPhoto 9.5.1, my library is not listed or available. How can I find it? Can I use the time machine to restore it?

  • Endpoint Protection error: The source folder for content does not exist.

    I have a single SCCM 2012 SP1 CU4 server running on Windows Server 2012.
    I have been using this for a little more than a month for Endpoint Protection and Windows Updates.
    I just recently started seeing that my Endpoint Deployment Package has Failed.  I click on "Content Status" and select the Endpoint package (which again shows Failed).  I click on "View Status" and I get this
    message in the "Error" tab:
    The source folder for content does not exist.
    The Asset Details point to the exact location  that does not exist:
    The source directory "\\<server>\updates\endpoint\6bd81fde-3a3f-4aa9-bf70-ba007891ca68" for package "<package>" does not exist. 
    I didn't change anything related to this, and that directory path (\\server\updates\endpoint) is
    shared and is populated with a lot of other folders. 
    Is this possibly just a bad update file?  Should I manually create that sub-folder that it says is missing?
    Any help would be great!  Thanks!

    Thanks for the quick reply, Torsten.  (I often forget which logs to check for certain things).
    There are six lines (3 errors -- in italics below) in the log around the same time frame.  They read:
    The source directory \\sccm-corp\updates\endpoint\6bd81fde-3a3f-4aa9-bf70-ba007891ca68 doesn't exist or the SMS service cannot access it, Win32 last error = 2    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM  
     5920 (0x1720)
    STATMSG: ID=2306 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SCCM-Corp.pdcarea.lcl SITE=PDC PID=6008 TID=5920 GMTDATE=Tue May 27 16:54:46.962 2014 ISTR0="\\sccm-corp\updates\endpoint\6bd81fde-3a3f-4aa9-bf70-ba007891ca68" ISTR1="PDC00063"
    ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="PDC00063"    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    Failed to take snapshot of one or more contents in package PDC00063    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    CDistributionSrcSQL::UpdateAvailableVersion PackageID=PDC00063, Version=10, Status=2302    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    STATMSG: ID=2302 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_DISTRIBUTION_MANAGER" SYS=SCCM-Corp.pdcarea.lcl SITE=PDC PID=6008 TID=5920 GMTDATE=Tue May 27 16:54:46.990 2014 ISTR0="Endpoint Protection Definition Updates" ISTR1="PDC00063" ISTR2="" ISTR3=""
    ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=1 AID0=400 AVAL0="PDC00063"    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:46 AM    5920 (0x1720)
    Failed to process package PDC00063 after 33 retries, will retry 67 more times    SMS_DISTRIBUTION_MANAGER    5/27/2014 11:54:47 AM    5920 (0x1720)

  • Search for content within a PDF

    Is it possible to search for content within a PDF across a mapped drive?

    Yes. Use Edit>Advanced search. Choose All PDF Documents in and choose the mapped drive.
    They have to be searchable PDF's of course...

  • SAP Forums (Jive) and TREX 7.1 search for content in attachements

    Hi
    I'm trying to find out if and how its possible to set TREX 7.1 up to index content and attachments in Jive forums. I've found a statement saying that portal search dosent work for Forums (EP-COL-APP-FOR).
    Does anybody know if this can be done and then how ?
    Of course I need a search UI for Forums if the standard one dosent work..
    We are talking EP7.0 with Forums 7.00 sp 18.
    Brgds Henrik

    Hi Herik,
    you can configure TREX to index the forum repository manager and by that search forums, categories, threads and messages.
    Have a look at this link for more information:
    http://help.sap.com/saphelp_nw70/helpdata/EN/47/17904a21fa3696e10000000a11466f/frameset.htm
    Hope this helps,
    Robert

  • How do I search for content in my bookmarks?

    Hello,
    is there a way to search only my bookmarks for content?
    Essentially turn my bookmark folder into a personalized google?
    Thanks

    Click the Bookmarks icon left side of the Safari window then select a Bookmark folder.
    You should see a search field with a magnifying glass icon top right.

  • Custom Display template for Content Search webpart

    Hi,
    I am trying to customize the out of the box "slideshow" display template for content search webpart which renders Images.
    By default, the slideshow display template has a fixed the image size which is very small. Is it possible to increase the dimensions of the container or control template to show a much larger image size?
    Can anyone please help on how to do this?
    Thanks,

    Hi,
    According to your description, my understanding is that you want to increase the dimensions of the container or control template to show a much larger image size in the Content Search web part.
    I recommend to create a custom Display Template (control and Item display templates) and use JQuery Slider plugin to achieve this goal.
    More detailed information are provided in the link below:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/02/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-2.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Searching VIs for particular object combinations

    I'm pretty sure I already know the answer to this but is there any way to search VIs for particular pairs or combinations of objects?  For example, say I want to find every place a certain global variable gets assigned a constant of 21.  As it now I can only search for instances of that global but if it appears in several hundred locations then it's not going to be easy to identify all the places where it gets set to some number of interest.

    Cunk wrote:
    I wholeheartedly agree with your assessment of the core problem here.  Unfortunately I'm in the unenviable position of having to get up to speed on a pretty complicated (unneccesarily so, I'm certain) code base that has a 10+ year history of off-the-cuff and rushed design choices like this.  Over-reliance on globals is only the tip of the iceberg here.  Add to that the fact that I'm new to Labview (I do have other programming experience in more traditional languages) and you have what I personally consider an intimidating task to deal with.  Luckily it's not a situation where the previous programmer is gone so I've been able to rely on him for help with this.
    It's probably not the best way to get introduced to Labview because I wind up getting more frustrated at the development environment than it probably deserves.  Any programming project, no matter the language, can devolve into an incomprehensible mess so I don't blame LV for that aspect.  However I don't like the fact that due to the closed nature of this platform I don't have the option to use any of the tools I've found to be essential.  Beyond Compare file diff for example.  I realize Labview has some sort of diff feature but you need to have the Professional version (which is more full of features than Full...) which we don't have and from what I've seen and heard it's not that good anyway.  Nor can I run any third party metrics tools on my code.  Look at any text-based language and you'll find a vibrant ecosystem of 3rd party tools available to support it.  Not so with LV.
    After I've gotten comfortable with this project (years from now probably...) I might suggest redesigning this application in .NET or something that utilizes the relevant freely available libraries (DAQmx currently).  I haven't seen much so far that wouldn't be fairly trivial to re-implement (although I/O updating and proper interaction with the UI might be challenging).
    Sorry, I've gone way off-topic in my own thread.  I guess I had to blow off some steam.
    Anyway, unfortunately searching for specific numbers like "21" doesn't help in this case.  If I manage to accomplish anything using LV Scripting I'll be sure to update this thread.
    I just want to applaud you for the most unbiased post that I have ever read from a text programmer who has come across a LabVIEW application like this (and to a certain extent we feel your pain. Almost everyone on these forums has come across this kind of thing before, and it's not easy for any of us to deal with, new or experienced). I understand the demands of the job and getting things done quickly, but I also encourage you to put some time into learning the "right way" and at that point, maybe you can convince your boss to let you refactor. I know that's not always the easiest thing to do, but I also think you'll be glad you did it.
    CLA, LabVIEW Versions 2010-2013

  • Search MS Word for Exact Match

    I've got a script that opens an MS Word document, then searches through a directory for each image file (.jpg), then does a find and replace using the filename as the search string, and inserts the image in place of the text it finds. My problem is that
    it's not doing an exact match. This means for example that if it looks for image1.jpg and that text exists in the word document inserts the image in it's place (the text being a placeholder). But if mimimage1.jpg was in place before it then it would insert
    the .jpg there - not doing an exact match.
    Here's the code I've got so far:
    # Get variables from XML file
    $MyDir = Split-Path $MyInvocation.MyCommand.Definition
    # Get settings from variables.xml.
    [xml]$settings = get-content "$MyDir\variables-test.xml"
    # Assign the settings to local variables.
    $SMTP = $settings.Settings.Setting.SMTP
    $port = $settings.Settings.Setting.port
    $from = $settings.Settings.Setting.EmailFrom
    $to = $settings.Settings.Setting.EmailTo
    $subject = $settings.Settings.Setting.Subject
    $body = $settings.Settings.Setting.Body
    $savepath = $settings.Settings.Setting.SavePath
    $docfile = $settings.Settings.Setting.WordDoc
    $XMLpath = "$MyDir\variables.xml"
    [String[]]$strXML=@()
    [xml]$xml = get-content $XMLpath
    $parse_results = New-Object System.Collections.ArrayList
    add-type -AssemblyName "Microsoft.Office.Interop.Word"
    $wdunits = "Microsoft.Office.Interop.Word.wdunits" -as [type]
    $application = New-Object -comobject word.application
    $application.visible = $false
    $document = $application.documents.open($docfile)
    set-variable -name wdGoToLine -value 3 -option constant
    set-variable -name wdGoToAbsolute -value 1 -option constant
    # Create new directory
    $date = (Get-Date -format "dd-MM-yyyy")
    $newdir = $savepath + "archive" + "-" + $date
    New-Item -ItemType directory -Path $newdir
    # Search Word document for filename and insert image
    foreach($file in Get-ChildItem $savepath -Filter *.jpg)
    if ($application.Selection.Find.Text = $file)
    if ($application.Selection.Find.Execute())
    $insertfile = $savepath + $file
    $objSelection = $application.selection
    $objShape = $objSelection.InlineShapes.AddPicture($insertfile)
    $gotoline = $objSelection.GoTo($wdGoToLine, $wdGoToAbsolute,1)
    # Move spreadsheets and images to archive location and cleanup after dfm2xls.ps1 before ending script
    foreach($movexlsx in Get-ChildItem $savepath -Filter *.xlsx)
    $xlpath = $savepath + $movexlsx
    Move-Item $xlpath $newdir
    foreach($movejpg in Get-ChildItem $savepath -Filter *.jpg)
    $imgpath = $savepath + $movejpg
    Move-Item $imgpath $newdir
    # Save document then close application
    $newsave = $savepath + $date + "-report.docx"
    $document.SaveAs([ref]$newsave)
    $document.Close()
    $application.quit()
    At the moment it doesn't do an exact match but I've tried using:
    $MatchWholeWord = $True
    $MatchCase = $False
    and then
    $application.Selection.Find.Execute($MatchWholeWord, $MatchCase)
    But that stopped it from finding any matches. Can anyone help?
    Thanks in advance

    Hi AJ Mellor,
    If you want to replace the words of the .jpg file's name with the picture in word file, this script should be helpful for you to modify your script:
    Hey, Scripting Guy! How Can I Read Words in a Text File and Make Those Same Word Italic in a Word Document?
    Insert pictures in a folder into a Word document (PowerShell)
    In addition, to get the words of the file name instead of the full path name, please refer to the script below:
    $files = Get-ChildItem $savepath -Filter *.jpg
    $words = $files.basename
    foreach($word in $words){
    I hope this helps.

  • Search multiple folders for files with same name and create single file

     I have a project where I need to search multiple folders for a file name and when found append data from each file to a single input file.
     Example
    root folder to start search
    \\servera\sales
    \\servera\it\salesa\cmmstr.txt
    \\servera\it\salesb\cmmstr.txt
    \\servera\it\salesc\cmmstr.txt
     I need to create a a single cmmstr.txt on the root folder. I would like it to be able to run this with parms to pass in folders to search and file names to search and single file name to create. I'm going to have a least 10 differnt files to
    search for and create output file for. The folders to search
    will somewhat be static.
     Thanks.

    I tested this out on my own seat and I think it should work for you. I wrote it as a function, all you have to do is pass the root folders you want to search and the file your looking for. The function will then search that directory and all sub directories
    for that file name. you will also have to provide it a file to append to, if the file dosen't exists the function will create it. If you run into an issues let me know and the links Mike
    Laughlin posted are a great resource.
    Function Search-Files{
    Param([String[]]$Locations, $SearchFor, $AppendTo)
    Begin
    If(-Not (Test-Path $AppendTo)){New-Item $AppendTo -ItemType File -Force}
    Process
    ForEach($Location in $Locations)
    $Files = Get-ChildItem -Path $Location -Filter $SearchFor -Recurse
    ForEach($File in $Files)
    Get-Content -Path $FIles.FullName | Out-File $AppendTo -Append
    End{}
    Search-Files -Locations "\\Server1\c$\Temp", "\\Server1\c$\Test1" -SearchFor "Install.cmd" -AppendTo "C:\Temp\Search.log"

  • How do I search a spreadsheet for a list of URL's | then search those URL's for keywords | save the output? (Oh yeah..., and schedule it)

    Fist, I should mention I am not a programmer but am eagerly learning powershell!
    I am looking for an automated solution to accomplish what I am currently doing manually.  I need a script that would combine the following:
    Reach out to a list of websites (probably a loop of some sort since the list will come out of a spreadsheet which could contain 1 or 100 different sites)
    Search each page for a specific word or words (not contained in the spreadsheet though that may make it more scalable)
    Save the URL of the site(s) that contained the keywords to one text file (versus the multiple .html files I am creating today)
    Have the output contain which words it found on which site.
    If not overly complicated, I would like to schedule this to recur once a week.
    A working script would be ideal, but even the resources that show me how to incorporate each element would suffice.
    I have had success pulling down the full content of the listed pages and saving them to a directory, which requires manual intervention.
    So far this works, but it's not scalable:
         Set-ExecutionPolicy RemoteSigned
         $web = New-Object Net.WebClient
         $web.DownloadString("http://sosomesite/54321.com") | Out-File "C:\savestuffhere\54321.html"
         $web.DownloadString("http://sosomesite/54321.com") | Out-File "C:\savestuffhere\65432.html"
         Get-ChildItem -Path "C:\savestuffhere\" -Include *.html -Recurse | Select-String -Pattern "Keyword 1"
    In otherwords, I have to manually replace the "http://sosomesite/54321.com" and "C:\savestuffhere\54321.html" when the URL changes to .\65432.com and the output name to match.  That works fine when it's a couple sites, but again,
    is not scalable.  
    Then, to see if any of the saved file's contain the keyword(s), I have to search the directory for the keyword which I am using:
    Get-ChildItem -Path "C:\savestuffhere\54321.html" -Include *.html -Recurse | Select-String -Pattern "Keyword 1"

    Hi Sure-man,
    Sorry for the delay reply.
    To automatically Reach out to all urls, you can list all urls in a txt file "d:\urls.txt" like this:
    http://sosomesite/54321.com
    http://sosomesite/65432.com
    Then please try the script below to save the URL of the site(s) that contained the keywords to one text file "d:\outputurls.txt":
    $urls = get-content d:\urls.txt
    foreach($url in $urls){
    $results = $web.DownloadString("$url")
    $matches = $results | Select-String -Pattern "keyword1","keyword2"
    #Extract the text of the messages, which are contained in segments that look like keyword1 or keyword2.
    if ($matches.Matches){
    $Object = New-Object PSObject
    $Object | add-member Noteproperty keyword $matches.Matches.value
    $Object | add-member Noteproperty URL $url
    $output+=$Object}
    $output|Out-File d:\outputurls.txt
    If you want to schduled this script in Task Scheduler once a week, please save the script above as .ps1 file, and follow this article:
    Weekend Scripter: Use the Windows Task Scheduler to Run a Windows PowerShell Script
    If I have any misunderstanding, please let me know.
    I hope this helps.

  • One Search service application for multiple web applications in a single server

      We are planning to host 17 Web applications in a single Server. Do I need to create search service application for each web application or I need to create one  Search service application , create a Content source for each web
    application and create a Result source for filtering. Which is the best approach. And which approach takes more RAM memory.
       In my application I am using Search web part, "Recently Changed Items", "Popular Items" web parts. when I created only one one  Search Service application for all web applications and using Result sources ,
    I am not getting the results. What could be the problem.

    Hi,
    One SSA is ok, but you should think about access rights. If the access is clear cut between all the web apps you should be ok with one SSA. Multiple result sources limiting on content source also works, but could easily be bypassed.
    Multiple SSA's will eat up RAM/CPU like a mother :)
    As for popular etc.. it could be due to how those sources are set up, but haven't investigated or tested this much.
    Thanks,
    Mikael
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • Help me to search on calendar for more than one year

    I desparately need to be able to search on calendar for more than one year., which was taken away on the new operating system.  I have kept personal memories of my husband on there in the notes sections on days when we did things. ( I have also kept all kinds of personal notes, like doctor records or conversations, in the notes of events/dates.) it is a huge loss for me not to be able to search my calendar for more than one year. Is there any way I can do this?

    Jens,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • How do I search and replace for invisibles in Pages 5.5.2?

    Three related problems all involving search and replace for invisibles.
    1. A block of text where all double returns need to become single returns.
    2. A block of text where all returns need to be replaced with a single word space.
    3. A block of text where all double word spaces to be replaced with a single word space.
    Pages 09 could do all three this handily. How can these be done in Pages 5.5.2?
    Appreciated.

    Here are screenshot of my attempts to make reducing double returns to one. First up selection of a double return:
    Copy to the clipboard. Do a Command-F. Here's the resulting dialogue:
    I paste in the contents of the clipboard:
    Note the Search field no longer has an empty slot selected. Something is clearly in there, but no instance of whatever is has been found. Nevertheless, I proceed to set up the Replace field by selecting a single return:
    Copy that to the clipboard and paste into the Replace field:
    Nothing to search for and therefore nothing to replace. Am now wondering what that little scoop to the right of the eyeglass icon might indicate. Clicking on it reveals this:
    Definitely not "a solution that just works."

Maybe you are looking for

  • Replicatio in oracle 8i

    I have a database named synteldb,which is in oracle 8i.I want to replicate the entire database.I'm planning for multi master replication in 8i(OS windows XP).For that i created another database named synteldbbkup.From this point i need some help on r

  • Using A Palm Pilot Today Good Idea or are they becoming obsolete?

    I started using a Palm Pilot in 1997. I used one constantly until 2006 when I broke the Palm PDA I had at the time and did not replace it. I still use the desk top software (Palm One Ver 4.1.4). I would like to go back to using a Palm Pilot. I will p

  • Mkinitcpio err: command not found [solved]

    I rebuilt fbsplash yesterday and get this error when running 'mkinitcpio -p kernel26' -> Parsing hook: [fbsplash] /lib/initcpio/install/fbsplash: line 90: err: command not found Line 90 reads err "Theme invalid or not found: '$theme'" The maintainer

  • Tracing Authorizations in Exchange Infrastructure XI

    Does anyone know how to identify missing authorizations when a user is in any of the XI Infrastructure Tools like the Runtime Workbench for example. We are familiar with SU53 and ST01 authorization traces when working on the ABAP side but do not know

  • BTYahoo email nothing showing in "From" column

    I am suddenly not geting anything shown in the "From" column. Was OK when used yesterday. Have tried signing out and back in. Also tried a re-boot and sign in. Still nothing. Can find nothing in the settings to help. Any suggestions please? BrianB