FileNameGet with only 1 file chosen

Hello,
we have a student working on an autosequence that uses the FileNameGet function to get a list of the files in a directory and then list them in a ListBox on a userform. The problem is that, when only one file is chosen (in mulit-select mode), the .dat ending is no longer on the file name. If more than one file is chosen, then all have the .dat ending on the file names. This problem DOES NOT occure on DiaDem 8.X, but only on 9.x (Save sequence, 2 computers). Was there anything changed with the FileGetName function between 8.x and 9.x??
A copy of his code is below:
Sub Btn_Sel_Data_EventClick()
Dim This : Set This = Btn_Sel_Data
Pfad="Seq_File_List.txt"
Call FileClose(Pfad) ' Close file in case it is already opened
' Call the "Open File" Dialog "Any" specifies that multiple files can be selected
' The list of data files are saved in the "Seq_File_Listtxt" File
Call FileNameGet("ANY","FileRead", "*.dat",".dat",Pfad ,1 , "Please Select data file.")
Call FileClose(Pfad)
If (DlgState = "IDOk") Then ' If OK was pressed and not Cancel
Call FileOpen(Pfad,2) ' 2= Read only
I=1
T1= FR(Pfad,i)
Do While T1<>"EOF"
If instr(T1,"dat")<1 Then
t1=t1 & ".dat" ' Quick fix for the problem
End If
LB1_.Items.add T1, I
' Loop to next file
I=I+1
T1= FR(Pfad,i)
Loop
Call FileClose(Pfad)
End If
End Sub
Any assistance would be appreciated.
Jeff

Hi Jeff B.,
This was a bug in DIAdem 9.0 SP1, which was fixed in DIAdem 9.0 SP1a. Both the service packs are free, and the latest (SP1a) is still available for download at:
http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C104B?opendocument&node=132070_US
If for some reason you are experiencing this problem with a version of DIAdem other than DIAdem 9.0 SP1, please let us know. I have not seen this problem in DIAdem 9.1.
Regards,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • How to create a Jar with only class files?

    Dear all,
    I want to create a jar file with only classes.My class files and java files are in different folders under com .
    say
    com
    in com there are two folders
    folder 1 -- subfolder 1
    folder 2 -- subfolder 2
    like this.
    If i want to create a jar file from com directory how should i give the jar command.Again my jar should contain only .class files.
    Any help will be appreciated
    Thanks
    lekshmi

    It doesn't work.Says "No such class or directory"
    Any other way Or is it possible to do so?Read the link I posted and create the statement to make your structure. I was thinking you were inside the com directory but if you are above it you will need something like this instead:
    jar -cf test.jar com\*.class com\subfolder1\*.class com\subfoler2\*.class
    But either way don't just copy and past this. Think about what is does so that you can make it work for you.
    Also, you might want to look into using Ant if you are going to be building this a lot.

  • After what seems to be a normal upgrade to the new Lion OS. My computer counted down to restart and left a white screen with only a file folder in the center of the screen with a ? in it. How do I get my screen back to normal? Jim L.

    After what seems to be a normal upgrade to the new Mountain Lion OS X on my early 2008, 24" iMac. My iMac counted down to restart but did not turn all the way off. At the end of the count down the screen went white with a small file folder flashing on and off in the center of the screen. Also there is a ?, question mark in the miaale of the file folder. The screen responds to no keyboard or mouse commands. Request help.

    My computer was doing the same as yours hinikuru but now there is a change. I turned my iMac off by the button on the back and left it off for about an hour. When I just turned it on the center Apple logo was back and soon the  loading logo for the new Mountain Lion program came up. On the bottom of the logo there is a horizontal sliding bar that says the program will take 34 minutes to load. Time will tell. I have two iMacs and if this goes we'll I will install the new Mountain  Lion tomorrow. Hinikuru, I was about to follow the information in one of the side bar blocks titled "More like this" on the right side of this screen when my iMac seemed to fix itself! Good luck. I think not all is lost.

  • Printing invoice with only XML file

    Hi all,
    I have a problem. When the invoice print with XMLP 5.6.2 is OK, but users want the possibility to reprint the same invoice with the same informations when they want (same if the bill's addresse has changed, for example). Is it possible to reprint the invoice with the XML file generated at the first time and how?
    Thanks

    You can do this by running XML Report Publisher and selecting the original request that was run. This will pick up the original XML and apply it to the specified template to recreate the original invoice(s).
    Cheers,
    Dave

  • Can anyone confirm that "upload to ftp host" with "only modified files" works as designed?

    It seems to take a really long time to verify existing files on the host. I have found it more productive to ignore this function and use a dedicated ftp client to upload/update Muse-created sites.

    I have found that "upload to FTP host" often uploads the entire site, seemingly ignoring the "only modified files" setting. This is not invariably the case, but seems to happen more than it should.

  • Really bad distortion with only some files and ga

    Hello,
    I recently bought an audigy 2 value 7.. Works like a charm with winamp, media player etc..
    however, whenever I try to play certain files with VLC media player or even some games (example, only the opening of Rise of nations) i get crazy distortion.
    I have a P4 2.3 with 384 Ram. I have reinstalled the drivers, and still no luck. Please help so I can watch the movies that are being affected.
    Ryan

    can someone please help me!!!!!!!!!!!

  • Transporting Only Those Files in My Library

    Hello,
    Soon I am leaving the country for three weeks. I'll be taking my 80g iPod, but would like to take along the music files on a portable HD for backup. The portable HD is 120g and I have a Music Folder that's 180g. Is there a simple way to copy only the files that I have on my iPod onto the HD?
    I tried opening Music in my iTunes browser, selecting a few hundred titles, and dragging them to the HD window as a test. The files did copy over, but most of them got dislodged from their Artist and/or Album folders along the way. This is not ideal, as I'd like to have them organized on the portable HD just as they are in the Music Folder at home--just not so many of 'em.
    Any help? Thanks in advance.

    Well, there may be a simpler way, but my jerry-rigged solution was:
    On my Mac, I exported all of the playlists that I'm going to take with me into a folder created for that purpose.
    I created a new library on the portable HD and a folder there to use as its Music Folder.
    With "Copy files to Music Folder when adding to library" checked, I imported the playlists from Step 1 into the new library.
    Now my portable HD has a Music Folder with only the files I want to take with me in it, and a library that I can use if necessary with my laptop while traveling. Not all that elegant, but simpler than doing the whole copying job album by album.
    I will leave this question "unanswered" in case anybody wants to offer a simpler solution.

  • Hello everyone. As a new Mac user, I would really like to know the easiest way to move my music files from my old PC to my MacBook? Do I move only the files, the entire iTunes and how? I have a lot of music so it is not a solution with iPod/iPhone.

    Hello everyone. As a new Mac user, I would really like to know the easiest way to move my music files from my old PC to my MacBook? Do I move only the files, the entire iTunes and how? I have a lot of music so it is not a solution with iPod/iPhone.

    Your best option is to post this in the iTunes forum.
    Ciao.

  • How can I do the same as Windows Explorer with datemodified:11/6/2013 .. 11/13/2013 showing only changed files with path in tree and NOT every folder along the way as Finder seems to do by default? Thanks!

    I'm an Apple newbie.
    I'd like to be able to list each file in the "Desktop" tree (ie; on the desktop, or in any folder on the desktop, etc.), along with its path, that has been modified since a certain date.
    When I use Finder to do a similar search, I get tons of output including every folder in the path to the modified file, etc. Although I can view the path to the individual files in the output, I can't for example, order the output by path, etc.  Very difficult to sort through. I'd love to have output like the example above - just the filename and path for each changed file.  Possible?  Thanks in advance!
    Wayne

    The file structure is a little complex. I will use inbox as an example.
    Inbox (a large file with no file extension)
    Inbox.msf ( An index of inbox with tags etc. Can be deleted with only loss of tags)
    Inbox.sdb (a folder, indicating that the folder within Thunderbird has a sub folder.
    POP mail is stored in
    Appdata/Roaming/Thunderbird/Profiles/*.default/Mail/[Server name]/
    Local folder is stored in
    Appdata/Roaming/Thunderbird/Profiles/*.default/Mail/Local Folders/
    As long as you do not overwrite, you can copy and paste whole folder trees into local folders (stuff on your old computer under a mail account is best relocated to local folder and then sorted as necessary afterwards.
    Note that you should delete foldertree.json after making those sorts of copies (it forces a full refresh of the folder tree, no cache) and under no circumstances copy data with Thunderbird running. It can irrevocably corrupt things

  • Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    haben
    From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
    A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
    Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
    User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
    presets there for the QuickTime choice there.
    What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30)  or something else? Do you know if this camera is recording with a variable or
    a constant frame rate?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • I am able to 'create a new version from original' but when I try to export the original, I only get a .jpg with the XMP file. The original is obviously there but why can't I access it please?

    In Aperture 3 when I right click on an image I am able to 'create new version from original' which suggests that the original is there. When I try to export the original I only get a .jpg with the XMP file. These particular images are from 2010, has the RAW file become disconnected somehow? Please, how do I get access to the RAW file for editing in Ps? Thank you. Thomasrevil.

    Sorry leonie, 'Use RAW as Original' is not an option for the image shot with the Canon.
    Then your Import settings must have been different, when you imported the Canon photos.
    You can check, if there is still a hidden raw file somewhere. If the image has been imported as a pair, you should see the "J" badge in Browser and Viewer, if you enable badge overlays. This indicates a pair, with the jpeg as original.
    Select one of those images, and then relocate the original files "File > Relocate original" to a folder, where you can inspect it. Use "File > Show in Finder" after ward. Look, don't touch .
    Then put it back, using "File > Consolidate".
    Do you see your raw files in the folder, or is only a jpeg there?

  • I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    P.S. Site is http://www.coldwatercreek.com

  • Unzip.vi only works with 1-internal file, error2 with multiple even in raw form.

    I've attempted to use the LabView unzip tool with several different meathods & I can only get it to work when there's only one file in the zip file. Multiple files continually cause an error in the VI, even when using raw LabView example code/tools. The first file does get unzipped in the specified folder before the error. Error 2 occurred at System Exec.vi. Command was "touch 08131333062007 "Chamber 1.ted"",LabVIEW:  Memory is full.

    Thanks for you response Juan & while this gives me some insight as to where the error is occurring it doesn't solve my problem. You can use the NI provided "Zip Tool.vi" to zip some files & then start a new blank VI & drop in the unzip tool & do nothing with it & run the Untiltled VI like that & it'll prompt for the file & as soon as you select the file...."Error 2", you can even double-click the unzip from the block diagram & use it that way.  I did this as a test to verify that what I'm doing wasn't causing the problem. My actual code uses the "File Dialog Express VI" in a flat sequence to first determine the zip file then the unzip-to location then runs the unzip function. I even get folders if zipped but only one file, no error if there's only one file, the error only occurs with multiple files.
    It appears to be an access issue as if it gets the first file & then trys to re-access for the next. I could handle this if it had functions to close the reference but it doesn't. I did try to take the preview, turn it into an array, run it through a for-loop but there's no way to specify a specific file w/in a zip file.
    Any thoughts?

  • Map with 500 pdfs. How to make a new file with only the first pages, new file with second pages etc.

    Hi,
    A client confronted me with the next question:
    I have a map with 500 pdf's in it.
    Is it possible to make a new file with only the first page of each pdf?
    After that to make a new file with only the second page of each pdf?
    And after that the third?
    Etc.
    Is that possible with an action?
    Or are there scripts for?
    I couldn't find them.
    I use an iMac with Acrobat XI.
    Any help is very welcome.
    Thanks in advance.
    Bornholm

    You can extract each page from each pdf as a seperate page.     Once this is done you can select the pages tocombine.
    You would have to write custom a custom JavaScript and programatically code the names to combine if the extracted file pages habvestandars naming that could  be programed. There maybe some security  coding you will have to do because of Adobe restrictions but this all documented in the Acrobat JavaScript Reference.

  • HT201442 I am got error while trying to restore,, but i just only error file with 3194. I try many step by install lastest version and fix host file, but still fail. Anybody can give me any key point to solve this problem? Thank you

    I am got error while trying to restore,, but i just only error file with 3194. I try many step by install lastest version and fix host file, but still fail. Anybody can give me any key point to solve this problem? Thank you

    Error 3194:
    This device isn't eligible for the requested build
    It means that Apple has stopped signing the version of iOS that you have, try downloading the latest iOS version, then try Restore again.

Maybe you are looking for

  • Std::atomic_exchange return wrong pointer type

    I am using the following product: Microsoft Visual Studio Professional 2013 Version 12.0.31101.00 Update 4 Given the following example: #include <atomic> #include <iostream> std::atomic<int*> ptr = nullptr; int desired = 5; auto previous0 = std::atom

  • Desktop does not setup successfully (a message appears on screen) on windows XP

    When I open my browser a message comes on stating that Google Desktop setup was unsuccessful I do notice that my apps that come on in the top section of my page are not coming on. How do I go about correcting this problem?

  • Iphone stuck in emergency mode after downgrade from 4.0.2 to 4.0?

    iphone stuck in emergency mode after downgrade from 4.0.2 to 4.0? Upgraded to 4.0.2 last night. Immediately, itunes would no longer detect my iphone. Decided I had to downgrade back to 4.0 again. Learned I cannot do that easily, so i found a .ipsw fi

  • Emails confirmations are not coming through

    Hi Many of my customers are contacting me as they are not receiving a confirmation of their order completed on adobe forms central. i have set the options on adobe to ensure that they receive an email notification reciept. But they still dont get any

  • User Contributed Tips, Ports & interfaces on MacBook Pro (Late 2008 & 2009)

    *The following User Contributed Tips are located in the Ports and interfaces on the MacBook Pro (Late 2008 and 2009) Forum:* None at this time. *The following related tips are located in other areas of Apple Discussions:* a brody - June 8, 2009 MacBo