Add comments to a file name

Hi
In my VI when I want to collect and save data to CSV , I use curremt date and time for the file name but I would like to also use a popup message and ask if the operator wants to add a comment to the file name ( just a string ) . Could u plz help me how can I implement it in LabVIEW
thanks

Jeff·Þ·Bohrer wrote:
They used to have to since there used to be versions of LabVIEW that did not have events And, I suppose they still have to for backwards compatability.
I call BS.  Express VIs are newer than Event Structures by at least 1 version (Events in 6.0, Express VIs in 7Express).  I think what was missing was the scripting capability to manipulate the event structure and they haven't revisited the express VIs for a while.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How to add increment number to file name properly

    Hi, all:
    I have a simple question. As shown in the attached code, I need to add an increment number to file name and save the file. The problem is, if you run the code and put something like ".dat" in the extension name, you will see a blank space between the number and the dot in the file name. What should I do to eliminate the blank space? I can't specify the format of the file name since the file name would vary from case to case.
    Thanks a lot for any suggestion and correction in advance.
    Attachments:
    temp.vi ‏11 KB

    Hi,
    Please take a look to the attached VI. I hope that I understood what you really want.
    I've replaced the Vi: Format into string with Number to Decimal String plus a Concatenate String. 
    Now, this is working for me, I don't get a space anymore.  If something is wrong, please let me know.
    Regards,
    Paul
    Attachments:
    temp_back.vi ‏11 KB

  • Add to iPhoto removes file name

    Apple Mail - It's great that we now have the return of the "Add to iPhoto" link for image attachments However, when using this function Mail renames the file as IMAGE, IMAGE-1, IMAGE-2 etc etc in the metadata.  This creates an issue where iPhoto is then unable to detect if any of the imports are already in the library, ie duplicates.
    A work around is to "Save" the images to a folder then using iPhoto "Add to Library" but this should not be necessary of course.
    I found this issue on both Macs in my home so presume it could be a wide spread issue?   Anyone have any experience of it.

    01. As per casdvm, download 'ExifTool-7.20.dmg' (872 KB in size), and install 'exiftool''.
    02. Try the provided starter code, editing it according to your needs ...
    --- Code starts here ---
    tell application "iPhoto"
    set tSelection to selection -- Obtain list of selected photos.
    repeat with i in tSelection
    try -- Capture any unexpected AppleScript error(s).
    set imagePath to (image path of i) -- Obtain full path of file.
    set imagePath to quoted form of imagePath -- Encase files' full path in single quote marks.
    set {oAStid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"}
    set imageName to last text item of imagePath as string -- Extract file name from files' full path.
    set AppleScript's text item delimiters to oAStid
    set imageName to get (characters 2 through ((count imageName) - 5) of imageName) as string -- Extract date and time values from file name.
    set tYear to (get (characters 5 through 6 of imageName) as string) -- Extract year from file name.
    if (tYear as number) > ((do shell script "date +%y") as number) then
    set tYear to ("19" & tYear) as string -- Append '19' before 'tYear'.
    else
    set tYear to ("20" & tYear) as string -- Append '20' before 'tYear'.
    end if
    set createDate to tYear & "." & (get (characters 3 through 4 of imageName) as string) & "." & (get (characters 1 through 2 of imageName) as string) & " " & (get (characters 8 through 9 of imageName) as string) & "." & (get (characters 11 through 12 of imageName) as string) & ".00"
    do shell script ("exiftool -DateTimeOriginal='" & createDate & "' -CreateDate='" & createDate & "' -overwriteoriginal_inplace " & imagePath) -- View 'exiftool -h' in 'Terminal'.
    end try
    end repeat
    end tell
    --- Code ends here ---

  • Add Timestamp to Remote File Name in Output Tab

    Hi,
    Is it possible to add a timestamp to the Remote File Name in the Destination part of the Output tab?
    E.g. If I have an FTP as the desgination, can I have a file name as dailyReport20130227.pdf, where the date part is generated dynamically on every run?
    Thanks and Regards
    JB

    For everyone's reference, this is possible using the below delimiters.
    http://docs.oracle.com/cd/E15586_01/bi.1111/e18861/T539768T541118.htm
    Expression     Description
    %y     Displays the year in four digits: Example: 2011
    %m     Displays the month in two digits: 01-12 (where 01 = January)
    %d     Displays the date in two digits: 01-31
    %H     Displays the hour in two digits based on 24-hour day: 00-24
    %M     Displays the minute in two digits: 00 - 59
    %S     Displays the number of seconds in two digits: 00 - 59
    %l     Displays milliseconds in three digits: 000 - 999
    In this case, we just need to set up the file name as "+dailyReport%y%m%d.pdf+"

  • Is there a way or a plugin to add "capture time" as file name

    I just photographed a surf contest out in California - I would like to add the capture time as the file name to make it easier to identify the surfers.  Any easy ways to do this for 600 images?

    Sure, just rename the photos.
    In the library module select all photos you want renamed, go to Library > Rename Photos... (or just press F2)
    In the dialog box that appears select Edit... (the bottom option)
    and in the edit box of the next dialog paste this:
    {Date(YYYYMMDD)»}{Hour»}{Minute»}{Second»}
    If you have more than one photo in a given second, LR will append -n (where n is 1, 2, 3...) to the filename.

  • Possible to add comments to a file?

    Is it possible to add a comment to a File?
    I need to be able to add comments (short sentence) to some archives (TAR and ZIP) that I'm creating, but I don't see any native way of doing this. The best I can think of is to create a log that lists all of the archives in the directory, and records the comments associated with each.
    Anyone have a better idea?
    Thanks!

    Thanks for the reply!
    Won't that just set a comment for each entry? I need to be able to tag each archive (both ZIP and TAR) with a comment.

  • Add counter in  Receiver File name

    Hello  Everyone,
    I have a Idoc to file scenaraio . The file comes regularly and whenevr the file comes, it should get suffix with datestamp and then the counter.
    The  name is should be Partner_YYYYMMDDHHMMSSL.xml.
    Where L is counter and should be increased everytime.
    Regards,
    Ravi

    try below logic:
    partnerconstant(_) concat -> time stamp udf + concatcounter concat+constant(.xml) +concat -> dynamic config udf -> target node.
    click on counter standard function and enter Initial value 1 and incremental 1 .
    time stamp udf:
    String AddTimestamp(String var1, Container container) throws StreamTransformationException{
    String DATE_FORMAT_NOW = "yyyyMMddHHmmss";
       Calendar cal = Calendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
        return sdf.format(cal.getTime());
    note :add import instructions(pkg) java.text.SimpleDateFormat
    dynamic conf:
    String DynamicConfig(String a, Container container) throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key,a);
    return "";
    in id:
    you have to enable ASMA and File Name properties in Receiver File Adapter.
    Edited by: bhavanisankar.solasu on Mar 7, 2012 4:13 PM

  • How to add variables in the file name in Reciever CC?

    Hi all ,
    I am working on a outbound interface .
    in the reciever communication channel i have to gve the file name as
    S<plant code >.<file name>.<timestamp > > 
    example of filename:  u201CS141. SPPFE860. 20110421114559u201D (The plant code has to be the same used in the field STABEMT presents in the header).
    now in the structure it is like
    MT
       HEADER
             STABMENT
    i am using tht Avanced tab in CC but am not able to understand what to gve in reference.
    Can you please help???

    heyy i could find the solution to it....so am closing the thread..thanksss

  • Audition adds _01 to the file names of my audio files

    .I record an input and give it a file name like My test audio. What I end up with is  My test audio_01.wav. Strange behaviour.

    GreyMatter2 wrote:
    I do remove them but when they are put into windows media player the _01 comes back after a short pause. This seems to be embeded into the file itself.
    No it's not, and no they don't 'magically' get renamed again unless a file of the same name already exists - which it might well.
    GreyMatter2 wrote:
    Can this FANTASTIC facility be tirned OFF.
    No it can't. Audition in multitrack mode is a direct-to-file recorder. You can't just record another file of the same name in the same place, because the OS wouldn't let you without a warning. If you wanted this as an option, then every time you tried to record another track, you'd get an OS message about an overwrite that you'd have to agree to - and that would be a PITA. So instead, when you try to do this, you get an automated addition to the end of your file, which at least lets you continue to work without interruption.
    So, it's like this for a good reason, and the reason that you can't turn it off is because of the way the OS is organised, not Audition. The only alternative would be to create a new sub-folder every time you hit record on a track. How much more mess is that going to cause?

  • How to add "Comments" and attach files onto a form?

    My server is LiveCycle ES 2.5, trial version, Turnkey install / Express mode  with  Reader Extensions.
    Client side has IE8 and Reader X 10.1.2.
    User interface is the standard out-of-the-box WorkSpace ES.
    I have an application that routes a PDF form through a Workflow,
    the input/output of the User Tasks is a Document variable that points to the PDF form.
    I know that in the WorkSpace, ther's a built-in Attachment "tab" where the user can attach files and get them routed along with the form.
    But how about Reader's "attach file" (the paper clip) and annotations (the yellow sticker)?  how to allow users to use those features?
    I tried it in the WorkSpace, and when the form is loaded in the IE window, those features were disabled.
    How to enable them?
    Do I need to modify the standard Render service? and add 'Apply Usgae Rights' or something?
    is there an easier way that I missed?
    thanks

    Attachments are lost if your form submits as XDP. If you change the submit type to PDF then server that same PDF back to the next user, the attachments will be there. If you decide for other reasons, you still want to submit as an XDP, take a look at this: http://forums.adobe.com/message/4316578#4316578

  • Add comments to multiple files w\different existing comments

    hi all,
    i've got several thousand songs that i'd simply like to add the word "album" to in the comments field. the problem is, most of them already have comments in that field, and most of these existing comments are unique to each song. so, when i select all the songs i want to add the new comment to and select "get info", the comment field defaults to an empty field. i'm afraid that if i type "album" in the comment field and press the "ok" button, it will over write all of the selected songs existing comments and replace them with the word "album" only. is that true? if so, is there a way to simply append comments to multiple songs with different existing comments?

    Welcome to Apple Discussions, Lance. Yes, it's true that if you mass-update any of the ID3 fields you will replace whatever used to be in that field. All your comments would read "album."
    I know of no way to append new info. You could, however, display the Comment filed in your library, then sort by it. All blank comments will be together at the top. Select them all, and add "album" to them. At least you'll have "album" on many/most of your songs.

  • Need script to add path and file name to fillable  form

    I have a fillable pdf form that I would like to have a script that adds the path and file name to the form. This script would be in a field at the end of the document.
    I am a newbie to javascript and formcalc. The script will be the only one in the form.
    Thanks for any assistance.
    Lisa

    Hi,
    I have a sample that attach a file to the PDF and write in a text field the file name. I don´t know how to get the full path and it only works in Acrobat. To work in Adobe Reader is necessary the LC Reader Extensions to give some special permissions to the document. But, regard this, you still want the sample send me a email to [email protected]
    Best Regards,

  • Dynamic File name in FTP Communication Channel

    Hi All,
    We have requirement where ,we create a filenames dynamically ( runtime).These filenames whihc do change for every execution needs to be added in FTP communication channel.
    1. How can we add the this generated file name in FTP CC Communication Channel.
    2. Does this file needs to part of target structure during graphical mapping ?
    3. Can we also dynamically append the Directory name to file names aswell ?
    Please provide your valuable sugestions.
    Thanks for your support.

    1. How can we add the this generated file name in FTP CC Communication Channel.
    3. Can we also dynamically append the Directory name to file names aswell ?
    to get the FileName:
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    To get the Directory:
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    Then append:
    key+key1
    And then in the CC select the Directory checkbox under the ASMA properties...
    2. Does this file needs to part of target structure during graphical mapping ?
    The file which is sent using the CC will have the FileName as configured in the UDF of the graphical mapping....and if i am not wrong then the target structure resembles the file (if there is no FCC done)....
    Regards,
    Abhishek.

  • Counter in file name in receiver file adapter

    Hi,
    I am using FTP, my requirement is to add counter in the file name i.e XYZ001.
    And added to this i can increment the counter till XYZ020, after this i am supposed to start again from XYZ001.It will be some how handled that when i place XYZ001 for the second time , it will not overwrite the earlier one as it will be proccess by that time.
    I could have used addcounter but it doesnt work for FTP:(...also have seen /people/shabarish.vijayakumar/blog/2009/10/05/pixi-maintaining-sequence-numbers-in-file-name-scheme
    Do we have any new feature added in PI 7.1 for handling this.
    Regards,
    Abhi

    thanks shabz..
    Request you to please let me know how to proceed with the first option which you have mentioned i.e,how to create tables and will i be able to start the counter again from xyz001 once i reach xyz020? is there any abap code to be written (wiil be asking SAP counterpart ) or we need to do it in the dynamic configuration udf? Please let me know how to do the same.
    1. Maintain a table in SAP. Use/Code a RFC call to look up the sequence number from this table, incrementing the value after it is read. The result is then used in a dynamic configuration code, and the file name can be generated at that point.
    Will this impact performance ?..mine is a credit card authentication interface and response time is imp...
    Regards,
    Abhi

  • Need help adding a default file name in a file chooser of save dialog type

    I need to create a file chooser with save dialog type, how can I add a highlighted default file name into the File Name textfield? As in Microsoft Word, when you want to save a document, a default file name Doc1.doc will appear in the File name text field of the file chooser even when you change to other directories.

    For JRE 1.4.0 you can use this fix:
    public class FileChooserFix implements PropertyChangeListener {
      private String fileName;
       * @see PropertyChangeListener
      public void propertyChange(PropertyChangeEvent ev) {
        JFileChooser chooser = (JFileChooser)ev.getSource();
        if (JFileChooser.FILES_ONLY == chooser.getFileSelectionMode()) {
          if (JFileChooser.SELECTED_FILE_CHANGED_PROPERTY.equals(ev.getPropertyName())) {
            File selectedFile = (File)ev.getNewValue();
            if (selectedFile != null) {
              // remember fileName of selected file
              fileName = selectedFile.getName();
          if (fileName != null &&
              JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(ev.getPropertyName())) {
            // reset selected file
            File directory = (File)ev.getNewValue();
            chooser.setSelectedFile(new File(directory, fileName));
       * Convenience method to create a fixed file chooser.
       * @return      fixed file chooser
      public static JFileChooser create() {
        JFileChooser chooser = new JFileChooser();
        chooser.addPropertyChangeListener(new FileChooserFix());
        return chooser;

Maybe you are looking for