How to upgrade the file name in a loop

Hello

I try to use the value input (voltage, current) as file name in a while loop. the voltage and current are increment in the while loop.

I want to save a file in each iteration and the name of the file is C:\voltage_current.csv.

Someone at - it how to update the name of the file in a loop?

Thank you

Tian

The easiest way I can think of that would add to what follows in the loop: number in fractional string to convert these values into strings and String Concatenation to create the correct file name.  Also concatenate file name with the path of your backup location.  Finally convert the string path.

Unfortunately my current computer is not installed LabVIEW, so I can't create a nice demo.  But you should be able to wire just those together without too much confusion.  It will look as follows:

["C:/path/goes/here/"] -----------------------> [                      ]

[voltage]--> [fractional number string]--> []---> [string path]-->

["_"]    -------------------------------------> [       String         ]

[current]--> [fractional number string]--> [concatenation]

[".csv"] -------------------------------------> [                      ]

The only question I could foresee is if you come across the same voltage/current.

For example:

-Voltages and currents

1                    2

2                    2

3                    2

4                    2

1                    2

You may obtain the names of files as follows:

1_2.csv

2_2.csv

3_2.csv

4_2.csv

1_2.csv * error.  Depending on your settings, this results in the file overwritten, raise an error or be added.

Take this into account if you have not only different combinations for each file.

Tags: NI Software

Similar Questions

  • How to get the file names?

    Hello

    I have two questions,

    1. I have a set of xml files in a folder in a blackberry. I need to be able to read the contents of the folder that is read all the names of the xml files and be able to display them. How should I do for this?

    2. the samples of the fileconnection class containing all to access the .txt files. Is it not possible to read other files and .xml files?

    just give the path up to the last directory...

    try {}
    FileConnection fconn = (FileConnection)Connector.open("file:///SDCard/BlackBerry/documents",Connector.READ_WRITE);
                  
    If (! fconn.exists ())
    {
                          
    Enumeration e = fconn.list ("*", true);

    }

    This will retrieve all the file name in the folder of document...

    See you soon!

  • BlackBerry Z10 how to display the file names of the images?

    I bought an App to recognize the flowers. My blackberry shows photos, but not the names of the plants. That's why I need to see the file names of the images. How do I handle this, STI is possible?

    Use the file manager with your device application.

  • How watermark with the file name?

    I've searched and searched and I can't find an easy way to do this... but it MUST be possible!

    Some (really clumsy) Solutions, I found:

    1. I can create a .csv with two columns, each list of filename for each image in a folder.  Then, using variables in PS, I use the first column as a variable image replacement and the 2nd column as a text replacement variable to export the files.  This solution is both your time and creates images that are all the same size.
    2. LR/Mogrify plugin 2 - what might do the trick, but it doesn't seem to work with the latest version of LR
      • (I get this error: an internal error occurred: LRCatalog; withCatalogDo has been marked obsolete in Lightroom 2.0 and is not supported from Lightroom 3.0) This call is necessary.)
    3. Somehow use a droplet, pulling on the name of the metadata file to generate a watermark text... which I can't figure out how to do.

    How can this be complicated?  There must be a clear Super button, Miss me him somewhere in LR, because I can't imagine NOT having need of this feature.

    Help, please!

    You can do it in the slideshow module. By clicking on the ABC button on the toolbar and choosing the file name in the menu dropdown. You can drag the text box anywhere to anchor it in the Center, downstairs, etc. top of page. You can print a whole batch to PDF. See image:

  • How to get the file name of the current active document in InDesign CS4?

    Hello

    If I open a document in the file-> open, I can get the file name of the document using IOpenedFileInfo-> GetOpenedFilePath().

    But, if I create a new document and run the file-> save as, GetOpenedFilePath is invalid back reference IdFichier.

    What is the right way to get the file name of the active document?

    Thank you

    VSP

    You can try this:

    IDatabse * db =: GetDatabase (theDoc);

    IdFichier * SYSIXCOL = db-> GetSysFile();

    PMString docName is SYSIXCOL-> GetFileName();.

    Good luck

  • associate a file extension with my executable, how to receive the file name?

    Hello
    I use flaslh profresional to create this application: Edit_epl.exe

    I have install the application.

    I'm doing a file association extension because I want to do: when double-clicking a file with the extension '.elp', and then runs Edit_epl.exe.

    example doubleclick on: 'my_sample.epl'-> then tracks Edit_eplp.exe.   So far so good.

    My question is how do you know its file name (my_sample.epl) as a 'parameter' inside the 'Edit_eplp.exe '.

    Can someone help me?

    Thank you

    I solve it!

    Question:

    I want to click on a text for example file hello.txt, with the content: "my name is Fernando.

    1 - create a My_edit_txt.exe application (with a single text_field, MY TEXT)

    2. install the application.

    3 associate the extension txt with my editor: My_edit_txt.exe

    4 - when I click on hello.txt,

    5 - the system starts-> My_edit_txt.exe (works good so far)

    6. so I don't know: inside My_edit_txt.exe:

    What the user clicked file?

    Resolution:

    NativeApplication.nativeApplication.addEventListener (InvokeEvent.INVOKE, onInvoke);

    package silbo.esment.general.base_juegos

    {

    import flash.desktop.NativeApplication;

    import flash.display.MovieClip;

    import flash.events.InvokeEvent;

    import flash.text.TextField;

    SerializableAttribute public class Clip_editor_epl extends MovieClip

    {

    public var t_texto:TextField;

    public void Clip_editor_epl()

    {

    Super();

    NativeApplication.nativeApplication.addEventListener (InvokeEvent.INVOKE, onInvoke);

    }

    function onInvoke(event:InvokeEvent):void {}

    mitrace ("on call");

    mitrace ("ARG =" + Event.arguments);

    mitrace ("file to open:" + event.arguments [0]);

    }

    function mitrace (piece) {}

    {if(Trozo==null)}

    Piece ="";

    }

    t_texto. AppendText (piece + "\n");

    }

    } //clase

    }

  • How to get the file name of IOErrorEvent

    I have charge "test.swf" file. If file not found how to show dynamically don't find it not file name.

    var url: String = "test.swf";
    var loader: Loader = new Loader();
    loader.contentLoaderInfo.addEventListener (IOErrorEvent.IO_ERROR, ioErrorHandler);
    var request: URLRequest = new URLRequest (url);
    Loader.Load (request);


    function ioErrorHandler(event:IOErrorEvent):void {}
    trace ("ioErrorHandler:" + event);
    }

    Yes, as it should... url is a property to a valid media you are loading.

    Think - I do not think there is a native way of reading URLRequest url on the charger. But the requested URL can be read out of the event text property. Not very elegant but it does the trick:

    function ioErrorHandler(e:IOErrorEvent):void
    {
         var pattern:RegExp = /(?<=URL:\s).+/g;
         trace(e.text.match(pattern));
    }
    
  • How to load the file name in the table target. ?

    Hi Expertise,

    I load the data of 100 files of same schema using packages,

    It is a variable stores the names of files. I used this link for reference: ODI gurus: SEVERAL FILES - TARGET SINGLE TABLE - SINGLE INTERFACE & several files simple single interface target .

    but now I need what files have been executed in the interface. Please give me some ideas?
    I need when the data from a particular file was loading then in DB, the particular file name must also be sent to the target.

    using ODI 11.1.1.9 & wls 10.3

    Help with kindness,

    Thank you

    Shakur

    In my example src_file_name is a column name

    and #projectName.variableName - is a variable

    If you want to store in the column you define '#projectName.variableName.txt '- don't forget the single quotes - (as a result, you get an error)

  • How to see the file name of the document with the full path when you move mouse title bar?

    PS CS6 using, Windows 7 x 64.

    I was under the impression that when my mouse hovering over the title bar of the document, I would see a ToolTip showing the full file name, including the path.  This isn't the case and I wonder if there is a way to do it.  I know that I can click on file > save as, or Ctrl-Shift - S to see the full path, but hoving over the title bar would be easier.  (What I now see in the ToolTip is the name of the file, % magnification and layer that I selected.)  Basically, the ToolTip is showing just what is in the title without hovering bar.)

    Thank you!

    John

    AHA, I think it's a view tabbed vs thing windowed mode...

    I do not think that trying to change the way you manage your documents, well that--most people like one way or the other and stick with it.

    -Christmas

  • How to capture the file name using af: inputFile?

    We had a user download a file without file in an application extension, we built using JHeadstart. Looking through the jdeveloper forum, it seems that the way to 'prevent', it is through the valueChangeListener. I understand that this must be a fix server side, the client is therefore always able to download this file, but then I want to check and return an error message and throw the file if it is not an extension. How is this possible when JHeadstart has already created a valueChangeListener?

    JDeveloper 11.1.1.4
    JHeadstart 11.1.1.3
    Oracle 11g
    ORDDoc column

    Thank you
    Michelle

    Michelle,

    You can make a subclass of JHeadstart FileHandlerBean, override the uploadFile method, check the ecxtension in your class and then call super.
    Create a custom template for the fileHandlerBean.vm (or fileHandlerBeanInTable.vm) to use your custom subclass.

    Steven Davelaar,
    JHeadstart team.

  • How to print the file name of the form?

    All the data that I use with the Designer is a set of specifications of equipment for sellers. For the purposes of monitoring, it would be nice to be able to place the name of the file that contains information of the equipment, on the form without having to type in it. These forms will be go to the wide electronically to various vendors who may or may not present new electronically, it would be nice to be able to establish a correlation between the response to the original.

    In the script (JavaScript) calculation of a text field, enter:

    this.rawValue = event.target.documentFileName;

    It updates once the form is saved.

    I hope this helps.

  • How to upgrade the version name? Action parameter 'UpdateVersionPropValue' does not

    Hello world

    I want to update the name of version and used UpdateVersionPropValue in the updated action script the name of the version using the settings below, but it doesn't seem to work. Can someone help me if I am missing something or something wrong?

    UpdateVersionPropValueOriginal nameVersion nameNew name

    Thanks in advance

    Sam

    Hi Sam,

    We cannot rename a version, but what you can do instead-

    Right click on the version and you will see an option to "Copy" the version, click on that and you will be able to give the copy a new name.

    You can start using the new version copied with your desired name and delete or expire the older version.

    Thank you

    Denzz

  • where to save the files under options the file name is duplicated how to remove an additional folder with the same name

    Under Options in Firefox, I clicked on save the files under downloads, but the file name twice and an additional file with the same name is created in the folder, i.e.:

    G:\Akbar's Songs\HAMARA DOWNLOADS\HAMARA FORUMS DOWNLOADS FORUMS

    As you can see the file repeats, how can I fix it?

    Also the music files, I download from a site of downloads as a WinRar file and I need to open it. Y at - it an option where the file opens automatically in the folder I chose?

    Thanks a lot for your help.

    Hi Akush, when you install 7 - zip, make itself the default application to open .zip and .rar files. So if you double click on the .rar file, it should open in 7 - zip. If you prefer to decompress immediately, right click the file and look for new 7 - zip items in the menu. I can't think of a way to do this automatically, however.

  • How to save an email in .eml format and customize the name of the file, for example the file name will be ' date, time, sender, title "?

    It would be fantastic if when save my emails on my computer the file name can be customized to be something different than just the title of the message. As I suggested in the question, if it could be set up to be "date, time, sender, title" that would be great, much assistance during the passage of a .eml files between colleagues, or just simply organize your emails into folders. Is this possible and if yes, how does one?

    Install ImportExportTools then adjust the Options (see photo).

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • How to upgrade the proxy settings (.pac file is modified) without having to restart Firefox?

    How to upgrade the proxy settings without restarting Firefox?
    I have a .pac with a proxy configuration file.
    When I likely this .pac, I like that Firefox update settings in order to study the new .pac contents.

    You can do it with the Prefbar extension and Reload PAC button.

    https://addons.mozilla.org/en-US/firefox/addon/67148/ - PrefBar
    http://PrefBar.mozdev.org/buttons.html#reloadpac

Maybe you are looking for