Opening unknown number of files

Does labView have the ability to open a variable number of files?
If so how would i go about doing this?

pardon my ignorance... and do WHAT with these files? where does it get the file paths?  I mean after all, lay a file open within a for loop.  wire your number of files to the N terminal.  Then, knowing nothing else... it will prompt the user N number of times to select a file... You will then have opened N file references and have an array of references, if you wire the reference numbers to the edge of your while loop.  Does that accomplish your task?
 I really would like to help, but you have given no information to work with, to allow us to help you. If we knew what your intended functionality is, then we can suggest specific implementations to meet your needs... Otherwise this thread is quickly going to be 30 posts long, frustrating you with no answers and Us, cause we have no idea what you are trying to do.
Message Edited by Stradis on 08-21-2007 11:39 PM
Paul <--Always Learning!!!
sense and simplicity.
Browse my sample VIs?

Similar Messages

  • Powershell Script to Copy an Unknown number of Files in a Directory

    I need to be able to copy an unknown number of files in a folder to an FTP site.  I have the FTP components figured out and working, but am running into a problem when there is only 1 file for upload.  The folder is a queue that users manually
    copy files to, so i do not have control of how many files may be pending.  And the file names are always different.
    My script performs the following steps.
    1. Get a list of files in the directory with the a attribute.  (this prevents subfolders from being processed)
    2. Loop thru the list, copying each file.
    Here is my problem.
    no files. nothing happens. normal and expected
    2 or more files. all files upload correctly.  EXPECTED
    Filename returned from variable = "True".  File does not exist and upload fails.  ERROR
    This is what the script looks like. (There are several Write-Output statements for debugging purposes.
    $ftpUploadPath = "$ftpServer/claims/"
    $localUploadPath = "$localDir\claims\"
    $localSentPath = "$localUploadPath`Sent\"
    $listFile = "$localDir\uplist.txt"
    Write-Output "Uploading Claim files to $ftpUploadPath ..."
    #1 get list of claim files to upload
    $list = Get-ChildItem -Name $localUploadPath -Attributes a   
    Write-Output $list
    Write-Output " "
    #2 loop thru list and upload files
    if($list.Length -ne 0){
        #Write-Output "  Getting files from list"
        # download each file in the list
        foreach ($file in $list -cne "") {
            Write-Output $file
        } # end foreach file
    } #end if($list.Length)
    else {
        Write-Output "  No files for upload"
    } #end else($list.Length)
    Thanks in advance,
    Greg

    You are writing way too many lines for such a simple task. Try this:
    Get-ChildItem -Name $localUploadPath -Attributes a |
    ForEach-Object{
    Write-Host $_ -fore green
    $_
    \_(ツ)_/

  • Can't open a number's file :"index.xml   is missing "

    can't open a number's file :"index.xml   is missing "

    Hi Imarican,
    See this User Tip by Wayne on working with the new and old versions of Numbers.
    Need newer version of Numbers to open file
    Regards,
    Ian.

  • How can I open a number of files into PS6 from LR, without PS jumping forward eachtime it opens an image?

    I want to select several images from within LR to be opened in PS6.  I want this to take place in the background.  Currently any other task I attend to is interrupted when each individual image loads in PS.  How do I stop this?

    I have written the Lr (plugin) side, and created the capability to use Windows "Send to..." context menu to send a list of folders/files to Lightroom for selection.
    Here is the content of the god-aweful command file which does it in Windows, 'Lightroom File Selector.bat':
    @echo off
    for %%x in (%*) do (
        call :concat %%x
    start "%~n0" "lightroom://com.robcole.FileListener/Select/%pstr%"
    exit
    :concat
    set a=%1
    set lc=%a:~-1%
    if "%lc%%lc%"=="""" (
        set pstr=%pstr%[%a:~1,-1%];
    ) else (
        set pstr=%pstr%[%a%];
    Note: what it's doing is wrapping/separating all the folder/filenames received as arguments to the bat file, then appending them to the base url, for example:
    If you select folder "C:\MyFolder' and file 'C:\MyFiles\myfile.jpg' in Windows Explorer, then invoke the 'Send to' context menu item (or drag and drop directly on bat file), it will send the URL:
    lightroom://com.robcole.FileListener/Select/[C:\MyFolder];[C:\MyFiles\myfile.jpg];
    to whichever app is registered to handle it, i.e. Lightroom, which parses the plugin ID, and passes it to the plugin, which then parses the paths and then does the same thing as the "Choose Files Via OS & Select In Lightroom" script.
    Although I haven't got the Mac end, the goal would be the same - somehow translate the target folder/file paths from the format they're in to the requisite URL format and submit to OS, which submits to Lr, which submits to plugin.
    You can download the plugin here:
    http://robcole.com/Rob/_common/DownloadEasy/Download.cfm?dir=FileListenerLrPlugin&file=rc_ FileListener_(lrplugin)_1.0.zip
    There is no web page nor documentation for it, yet.
    Rob

  • Numbers '09 (v2.3) can't open latest Number's files

    I've been happily using Numbers '09 (v2.3) with my late-2006 MacBook Pro (Mac OS X v10.7.5) until I had the bad idea of working on a Numbers file on my iPad, running the latest version of Numbers (for iOS, that is). Now I'm unable to open that file on my Mac and I'm unable to update Numbers since it requires running Mavericks... and I'm unable to upgrade to Mavericks since it can't be installed on my MacBook Pro (too old apparently).
    Any idea? Do I have to ask someone who's running the Mavericks and the latest version of Numbers on his Mac to save my file in an older format, assuming that's at all possible?

    Unfortunately the iOS version of Numbers does not allow saving as an earlier version of Numbers. Your options would be to export as .csv or Excel or have someone with Mavericks & Numbers 3 re-save it as Numbers 2.

  • Illustrator won't run: "unable to set maximum number of files to be opened"

    I have an intel macbook pro (core duo with 2GB ram) and a copy of purchased adobe creative suite 2. Other applications in the suite like photoshop, acrobat, etc can run on my mac without any problem. But when I try to run illustrator, it just shows an error message "Unable to set maximum number of files to be opened" and quits. I also installed a trial version of illustrator cs3 and got the same problem. Can anyone help? Thanks.
    CC

    Hi, I realize this is an old thread but it was unanswered and the issue has come up again in a newer thread:
    http://forums.adobe.com/message/2534652
    If the original poster sees this, can you reply tin the new thread and let us know if you were ever to solve this problem?
    Thanks!

  • How to open-up a pdf file to a particular page via java? (file and page number from another program)

    I have created an Access 2003 Form. Data is entered. The data can be viewed once entered in the same form format, with one addition. The addition is a link to another program where we store files. The files stored are pdf documents. Each document is a scanned file (500+ pages). The link can open-up the pdf file. I want the link to open-up the pdf file to a particular page. I will supply the page number from the database.
    I am aware of Adobe Acrobat 7.0 PDF Open Parameters using a URL that specifies the file to be opened plus actions to be performed once the file is openend (i.e. http://example.org/doc.pdf#page=3). However, the 3rd party program transfers a file from a server to the client via java. The file does not go via a web browser. The java code transfer the file directly from the file server to the the client.
    Any idea how to accomplish the task of viewing a particular page with the process flow described?
    I am using Adobe Acrobat 7.0 Professional.

    So you are reading this file in a standalone version of Acrobat? If so then use the PDF Open Parameters /a option via the command line.
    Sabian
    Example:
    C:\Program Files\Adobe\Acrobat 7.0\Acrobat>Acrobat.exe /A "zoom=1000=OpenActions" "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\SimpleSubmit.pdf"
    Where:
    Path to Acrobat: C:\Program Files\Adobe\Acrobat 7.0\Acrobat>Acrobat.exe
    Note: The example starts in the Acrobat application directory
    Switch: /A
    Parameter Syntax: "zoom=1000=OpenActions"
    Path to file: "C:\Program Files\Adobe\Acrobat 7.0\Acrobat\SimpleSubmit.pdf"
    Note: The quotes are very important for the syntax to work appropriately.

  • HT1338 My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    My mac is becoming too slow. It takes long to open word documents, pdf files or excel documents or even safari. Can anybody suggest something? I have tried to reduce the number of open applications, but does not seem to work.

    Hi ...
    Checked to see how much free space there is on the startup disk lately?
    Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Freeing Up Hard Disk Space - Mac GuidesFreeing Up Hard Disk Space - Mac Guides
    If disk space is not the issue, booting in Safe Mode deletes system caches that may help.
    A Safe Mode boot takes longer then a normal boot so be patient.
    Once you see the Desktop, click the Apple menu icon top left corner of the screen.
    From the drop down menu click Restart.
    See if that makes a difference ...

  • I'm using acrobat pro in my project after debuging the project and after opening a certain number of PDF files I receive the message: the maximum number of files opened has been reached, you have to close some files to continu.even doing that, I steel rec

    I'm using acrobat pro in my project after debuging the project and after opening a certain number of PDF files I receive the message: the maximum number of files opened has been reached, you have to close some files to continu.even doing that, I steel receive the same message.Some one can tel what to do please? Thanks

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • How to get the number of files currently open?

    hi,
    does any one know how to get the number of files currently open in windows OS?
    e.g. lets say .txt files...
    any comment will be really appreciated.
    thanks

    Assuming that you don't want to actually do this from within Java code (which would obviously require native code), here's a utility that will give you a list of which file handles are opened by which processes (on Windows):
    http://www.sysinternals.com/ntw2k/freeware/handle.shtml
    - K

  • Uploading a text file with unknown number of  texts

    Hi ,
    i have a flat file with around  10,000 record's.
    each material number  followed by  different  lengths & unknown number of text's separated by delimiter '$',
    that need to be saved using save_text function module.
    the file is as follows, 
    record 1 :     material1$text1$text2$text3
    record 2 :     material2$text1$text2$text3$text4$text5$text6$.....
    record 3 :     material3$text1$text2$text3$text4$text5
    record 4:      material3$text1
    - - - - - - - - - - - -  so on ....
    i created the following  structure ,  to split and save each text separated by '$'  , to save in TLINE  of save_text function module.
    types : begin of ty_file,
                  matnr type mara-matnr,
                  text1 type string,
                  text2 type string,
                  text3 type string,
                  text4 type string,
                  text20 type string,
               end of ty_file.
    i have uploaded the file and saved in table  it_file type ty_file.
    loop it_file into wa_file.
       split wa_file at '$' in to matnr text1 text2 text3 text4 ....... so on.
    endloop.
    please, suggest me an alternate way to reduce the code, instead of creating a structure like above, so that each splitted text
    stores in a single variable and is passed to TLINE of corresponding material, in save_text function module
    thanks
    viki

    Hi,
    The flat file contains , material No. followed by it's text , each text sepearted by '$' symbol.
    For each material  i have to get all lines of text, and passed to tables paramter of save_text.
    The Number of text' for each material is varying.
    Please kindly suggest me , how many variables i need to create to hold each splitted text and store it in Tline
    I wrote the below program assuming that the material number has  maximum of 20 texts, it's working fine. But, what if the number of texts exceeds 20.
    file :
    4907507$ Druckrolle$ Durchmesser: 218 mm$ Länge: 750 mm$ Rollenwerkstoff: 1.4301/1.4541$ Oberfläche: gummiert$ Stärke Gummierung: 10 mm$ Näscher    E 71224$$$$$$$$$$$$$$                              
    1149598$ Tragrolle$ mit Stützringen$ Norm: ähnlich DIN 22112$ Durchmesser: 89 mm$ Mantellänge: 800 mm$ Form der Achsenden: A2$ Achsdurchmesser: 25 mm$ Achsanflachung: SW 18$ Einlegelänge: 808 mm$ Achslänge: 834 mm$ Lagerbezeichnung: 6305$ Anzahl Stützringe Form A: 6$ Anzahl Stützringe Form B: 4$ Anordnung links: 4$ Anordnung mittig: 6$ Anordnung rechts: 4$ Qualität Stützringe: N$ Durchmesser Stützringe: 159 mm$ Anzahl Zwischenhülsen: 7$ Anzahl Schlussscheiben: 2$ Erbö   3111.800.05.68                                                                      
    file upload
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          static    = 'X'
        CHANGING
          file_name = p_infile.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME            = gd_file
          FILETYPE            = 'ASC'
         HAS_FIELD_SEPARATOR = 'X'
         HAS_FIELD_SEPARATOR = '$'
        TABLES
          DATA_TAB            = It_data.
      loop at it_data into wa_data.
        split wa_data-line at seperator into matnr_txt text1 text2 text3 text4 text5
                                                   text6 text7 text8 text9 text10 text11
                                                   text11 text12 text13 text14 text15
                                                   text16 text17 text18 text19 text20.
        move matnr_txt to wa_material-matnr.
        move text1 to wa_material-text1.
        move text2 to wa_material-text2.
        move text20 to wa_material-text20.
        append wa_material to it_material.
        clear wa_material.
      endloop.
      loop at it_material into wa_material.
        WA_LINE-TDFORMAT = '*'.
        WA_line-TDLINE = wa_material-text1.
        APPEND WA_LINE TO IT_LINE.
        WA_LINE-TDFORMAT = '*'.
        WA_line-TDLINE = wa_material-text2.
        APPEND WA_LINE TO IT_LINE.
        WA_LINE-TDFORMAT = '*'.
        WA_line-TDLINE = wa_material-text20.
        APPEND WA_LINE TO IT_LINE.
        G_THEAD-TDNAME   = wa_material-matnr. " material number
        G_THEAD-TDID     = pa_id.                           "  'GRUN',
        G_THEAD-TDSPRAS  = pa_langu.                "  EN
        G_THEAD-TDOBJECT = pa_obj.                   "  MATERIAL
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            CLIENT                           = SY-MANDT
            HEADER                        = G_THEAD
            SAVEMODE_DIRECT     = 'X'
          TABLES
            LINES           = IT_LINE
          clear : wa_line, g_matnr.
          refresh it_line.
      endloop.
    Edited by: jvsvijay on Jul 28, 2011 12:51 PM
    Edited by: jvsvijay on Jul 28, 2011 12:53 PM
    Edited by: jvsvijay on Jul 28, 2011 12:55 PM

  • Error maximum number of files already open error.No Other files can be opened or printed until some are closed

    Hi everyone,
    While opening a file in Adobe reader 10 in Windows 7,I am getting the error as
    "The maximum number of files are already open.No Other files can be opened or printed until some are closed."
    Can Anyone help or suggest a setting for this ?
    Thanks in Advance
    Omkar

    Hello omkar841987,
    Could you please let me know how many files have you opened simultaneously.
    This count will include files that are being displayed as well as opened (without being shown in the viewer).
    Using Reader, you cannot make any setting for the same, but close some of the files before crossing that limit.
    It also depends on your OS and memory size as you would need enough memory to open many files at a time.
    Regards,
    Anubha

  • Max number of files that can be opened in harddrive through AEBS?

    What is the maximum number of files that can be opened in a external hard drive (Lacie 500 GB, USB 2.0) connected through the AEBS? Looks like there is a limit.
    When I am trying to 'seed' files through a bit-torrent client (Azureus 2.5.0.4) many of them give an error "Error: too many open files". I never had this error before.
    When I tried to delete a file in the hard drive, I got the error "too many open files". Then I stopped 'seeding' in Azureus and I was able to delete the file.

    Thanks Chris,  it has almost become unwieldy now at this stage ... I'm actually thinking of calling another template for certain sections
    I belive this is possible..

  • Every time I open a new illustrator file it says "print.ai" file unknown.  I can open previous work but no new files.  Any fixes?

    Every time I open a new illustrator file it says "print.ai" file unknown.  I can open previous work but no new files.  Any fixes?

    All nee AI files are based on document profiles, which are actually plain AI files.
    Print.ai is one of them. You may try and select a different profile to see if it's just the Print.ai
    But it may of course be all of them that somehow got corrupt.
    Could be that the files are corrupt or that Illustrator doesn't have access privileges.
    The files are located in your user folder. Find the exact location in this article:
    http://blogs.adobe.com/adobeillustrator/2009/05/startup_profiles_a_great_tool.html
    In case the files are completely corrupt you may try and rebuild the preferences or even do a complete reinstall.

  • Big number of files (physical + logical) opened by a SAP -related job

    Hello,
    We are implementing SAP ECC 6.0 on IBM System i (iSeries) 9406-550, i5/OS V5R4.
    SAP is implemented on sub-system R3_00, and the different SAP processes are served by OS/400 jobs : WP00, WP01, WP02,…etc.
    The noticeable thing is that since the very beginning of the working day, the number of open files (Physical + Logical) opened by one job (e.g. WP00) is extremely big (900 – 1000 files), and it remains big during the whole day; i.e. it varies by a small extent.
    The question is : is this a natural behavior of SAP, or is there something that we are missing that causes the un-necessary files to be closed after the relevant requirements are fulfilled.
    The problem with the huge number of files opened by a job is that the big number of file  ODPs exhausts the memory extensively, the thing which causes the memory faults to be high, thus impacting negatively the system performance.
    Thank you in advance for your cooperation.
    Best regards.

    Hi Reda,
    that is exactly working as designed ....
    Yes, the memory utilization is not too low because of that but on the other hand, it would be very expensive to close and open over and over again ...
    So, you have to deal with this somehow.
    The following is the default setting, that is active on your site as well: (You should be able to see these values in the dev_w0 etc ...)
    ODP Threshold:
    dbs/db4/odp_threshold     =          800
    ODP Commit Threshold:
    dbs/db4/odp_commit_threshold     =          810
    ODP Open Threshold:
    dbs/db4/odp_open_threshold     =          850
    (This is true even when you experience 900-1200 - this is just a "mis-adding" more or less ...)
    If you are really interested in: Try to change these parameters - but that is on your own risk, I do not have good experience with that ...
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

Maybe you are looking for

  • In-App purchase is not working in iOS7

    I have a working code for In-App purchase , its working fine in iOS6 but when I run in iOS7 I got "Failed to load list of products" in debug area and when I tap on restore button to get the already purchased product it says "Cannot connect to iTunes

  • The SHine Has Worn Off!

         I was an AT&T customer for over 9 years. Our area is very rural and they had been promising to get a stronger signal in our area for a long time. My husband finally said; "Why are we paying for services we are not actually getting. Lets switch t

  • Album cover flow quit working help!!!!!

    it says "iTunes is unable to browse album covers on this computer" It never used to do that!!!

  • Yeti Pro as stereo mic for guitar and voice

    This mic, which adds xlr phantom power user to the previous USB only, has two pods which can be switched to record stereo.  My question is, is this practical when I am playing acoutic guitar and singing?  My voice is folk-operatic, meaning heavy voic

  • Uninstalling FCS Academic

    I'd been using Final Cut Studio Academic for the past year on my 17" Mac Book Pro for a year. I used to have another Final Cut Studio Retail on a G5 which I sold a few months ago along with the installed FCS. So now I find out that FCS Academic is no