Automatic file naming and data saving

Hi,
I am building a program where there will be several I-V scan for each value of temperature. I would like to make the data saving fully automatic. 
To explain in more deatils:
I want the program to generate a new file on its own , give a file name depending on the temperature variable , save the data and again go for the next I-V scan and do the same way.
So, if at a particulat temp say 300K, there are 5 iterations, my program should be such that it generates a new file evrytime say 300K_001(1st iteration), 300K_002,...300K_005(5th iteration) automatically on the hit of "run" button.
Can some one help me on how to implement such a code.
Thanks!
Solved!
Go to Solution.

People do things like that all the time.
Look at the Number to String conversion functions in the String palette and the Build Path function in the File palette.
You should think about error handling. What happens if you try to create the 300K_001 file and a file with that name already exists? Do you want to over-write the file, change the name to 300K_001_a, or ask the operator for input?
Lynn

Similar Messages

  • Pg Number, File path and date automatically printed?

    Is there a way to automatically print the page number, complete file path and date at bottom of each  page (set to landscape)?
    Thanks!

    Thanks Carlos,
    It looks like the work72a would work if we were using macs, but we're not...
    And there is NO WAY my boss will pay $999 for the other one, even if it did work.
    So, now I'm open to other suggestions. We have hundreds of clients that we do work for, and our jobs are organized in folders for each client. A lot of clients with the same name but different locations (ie., Fox Meadow OH, Fox Meadow TX), and each has a different folder. The files are named by dept and year (ie., 2012 Glass, 2012 Art). We often access old files (which, there are thousands of, because they have been organized this way for years.) We need to have the client folder on the page along with the file name (hence the file path).
    The script that Carlos created is great, but there are too many steps. Open the script, change location and select info to be displayed (3 steps), close script. There are days we access 50 jobs and the script just added 5 plus steps to each job.
    Is there a way to use a hot key run a script that will place the info when and where we need it and auto close the script? Or is there a way to display the full path (in the Illustrator tab?) where we can see which folder the file is in and we will manually type the folder? Or does anyone have another suggestion?

  • I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc?

    I have 2 apple id's with different apps and data saved under each.  It's very annoying so now I want to create a new id with my primary email address I use now.  If I do that is there any way to transfer all my saved apps and app data like game saves etc so I don't lose all of that information and can easily switch to a singular apple id?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • How to print file name and date on document

    How can we print the file name and date, like in the old days, on a document as a header or footer?

    Not the print dialog for iWork but in the app itself. Here is Pages:
    Regards,
    Colin R.

  • File name and Date Display as an obj not the data

    All,
         The issue that I am having is that when I view a Visio file hosted on SharePoint. The file was created in Visio 2007 and when it is opened by Visio 2007 and Visio Viewer in SharePoint. The file name field object and date
    modified object show the information. The issue is when the file is opened by a device that has Visio 2010 the information does not show. Is there something that I can do for these users to have it show correctly.

    Hi,
    Which way did you open the Visio 2007 file in SharePoint?Opened it in the browser or downloaded it to open? I had test in my environment. Insert a text box>Add a data/time field, it worked fine both in Visio 2007, 2010.
    Thus, let‘s do some test to narrow down the issue’s reason. 
    1.Download the Visio 2007 file and open it with Visio 2010.
    If it worked fine, the issue seems more related to Visio object and sharePoint connection.
    If it does not display the information in Visio 2010 by a device client, the issue was more related to Visio 2010 client.  
    2.Create a new drawing included file name and Date
    field in Visio 2010.
    If the new drawing displays correct, the issue is more related the original, please try to repair the file or re-create the file name and Date filed.  
    If the new drawing still displays incorrect, please try to start Visio 2010 in safemode, some third-party add-ins my be casued the issue.
    If the issue still exists, try to repair Visio 2010.
    Regards,
    George Zhao
    TechNet Community Support

  • When viewing a photo in full screen, how do I get the file information and data along the footer.  How do i get that to go off?  Preferences.....???

    Love full screen view, but my file information and data are showing along the footer.  How do I change me settings so this doesn't show?
    Thanks!!!!

    Anne, didn't the answers Frank and I gave in the other tread work? See:
    Re: How do I turn of the focus points in Aperture when viewing a photo in a non-thumbnail view?  Thanks!
    Or did you want to know something differently?

  • Printing FILE NAME and DATE PRINTED?

    when i was on a mac i used to be able to have a default in the printer dialog so that every page printed showed the file name and the data printed. i would like to do this in the mac but i am guessing that this has to be done in either the specialized software dialog box or perhaps in a mac dialog box?
    in any event, can anyone help me figure out where i might find a place to do this? i haveadobe acrobat but i wold also like to do it in something like Preview as well.
    TIA

    hotwheels 22 wrote:
    if i have documents coming that i print for a project and these are quite naturally coming from different software it i have no way now of being able to FIND this file in my computer when i am looking at it.
    Consider using Find from the File menu or Spotlight to search for the document. In one of your previous posts, you stated that you name documents with a date and name. Then perhaps search for the name. Also, with your method of naming documents, if the document is a letter, wouldn't the date on the letter and the person to whom the letter is addressed to give clues to the filename and thus finding it on your computer?
    this is a major organizational issue over here and customizing a template for all my various software should be unnecessary IMHO.
    I do not know how many documents you deal with but I do know that there a many organizations that deal with billions of documents. In addition, if you share documents with others or others with you, there is not a filenaming method that works for everyone. People adapt to each other. A date in a filename could have several forms such as month-date-year or year-month-date, two digits or four digits for year and so on and so forth.
    Are you saying it IS necessary to have this dual file type that has a Pages document which then prints a PDF?
    No. Please re-read  what I wrote and the Pages Help Center articles.
    also, is there in fact a way to save a PDF back out as a Pages document?
    Yes, re-read what I wrote (that which you quoted).
    "Acrobat has the capability to save a PDF in other formats such as Microsoft Word, which can be opened in Pages. That said IMO, a separate Pages document for each "custom" letter/report would not be necessary."
    alternatively i guess i could create a Pages TEMPLATE - that has a DATE in the header that automatically updates .../but/ i am realizing that this has the unfortunate consequence of having the DATE updated if i open the Pages document again
    But that is what you stated you wanted because
    ...and try to remember to SAVE AS this document with another name with the original FILE NAME but a NEW DATE. this does not always work and sometimes i write over the original accidentally.
    anyway, maybe the answer here is to create a Template for any new document type and simply use this template any time i need to create a PDF and then not save or delete the original Pages document but this seems a bit hairy and dangerous in terms of possibly losing a file if i forget to print to PDF or something.
    You have redundant backups, yes?
    It seems that your understanding of a template is different from what it actually is, its purpose and its use. If you have not already done so, try using one of the included Pages templates to create a document that you would reuse to get a better understanding of how it works and to help determine your workflow. What you wrote in the last post seems to be a lot of what ifs but not hands on experience with the software itself. My response was based on my experience of using many types of software and in particular to your questions, Pages and Acrobat. Perhaps you will find better responses in the Pages forum and for Acrobat there is a forum at the Adobe web site.
    is there a lock file functionality in Pages in Mountain Lion or was this in Lion?!
    Perhaps reviewing the tutorials for Pages or searching with Google would  help answer many of your questions.

  • Pdf portfolio source file name and date in file details

    Is it possible to import the source file name and extension as well as the source file created date in the portfolio file details?  Need to document source to portfolio in working with 3rd parties that will only have the original source.  Need to document what was converted into pdf as not all files in a directory will successfully convert to pdf.  Sometimes need to convert 100's of files.  Manual entry is inefficient.  the file names and modified dates are displayed on the Combine Files dialog.  is there a way to capture the detail on that page?

    I don't need the detail of when the pdf was added to the portfolio.  I
    need know which dwg or jpg or word file was converted and the original
    created date of that file for control of information.
    That is impossible; sorry. For some *very specific* types of conversion to PDF the pdfx:SourceModified XMP tag will be set to show the last-modification date of the source file (for example DOCX files converted using MS Word), but there will never be a human-readable record of the source filename or its creation date unless you have manually added them as document XMP properties after conversion (this is what the "Custom Properties" dialog is for). To embed source data automatically would raise no end of privacy and security problems for customers, who most certainly do NOT want their recipients seeing details of internal documents.
    Without writing a plugin there's no access to the internal workflow of the Combine Files dialog, so you cannot use a script to read the names and dates of the files *before* conversion and store them automatically in the new PDF Portfolio's Fields array.

  • Preferences: Code Editor: Printing:  Add File Path and Date to Print Header?

    Is there a way to add file full path and date to the print file header for a SQL Worksheet when printing from the Code Editor?  So, for example, if my SQL worksheet is called MySQL.sql and is saved to C:\Myfiles\SQL_Code\, I'd like to print the full path 'C:\Myfiles\SQL_Code\MySQL.sql' and today's date as part of the print header along with the page numbers at the top of the code.   I see a Java preview in the Preferences: Code Editor: Printing window that mentions a "Today" date but I don't know Java and that is an uneditable preview.  I have checked the "Print File Header" check box.  Is the file header definition stored somewhere in a configuration file and/or is there a way to modify/customize the default file header?  
    I am a new user to SQL Nav. version 3.2.20.09 Build-MAIN  09.87. I could do this in SQL Navigator but can't figure it out in SQLDeveloper. Thank you.
    -Cathy

    HI
    First of all,
    Unless otherwise you selected some option like page break after/before - both body and header/footer will print on same page in report, so in pdf as well.
    If you have difference on report and PDF that you should look into your setup.
    If you want more help, please be particular on your issue
    james. wrote:
    Hi All,
    I am using Oracle Report 10g. How can I add header and footer on same page as my body? Right now when a generate a pdf file, it is printing individual pages instead of 1 one page. Please help me.
    Regards

  • Photoshop (all versions): Inconsistency/Bug in automatic File Naming algorithm

    Hello,
    I discovered this problem in PS CS3 and CS5 (don't have CS4) after a student of mine found it in PS Elements 8. Here's one way to replicate the issue:
    1) Open any image in Camera Raw. Let's call that file FILENAME.dng
    2) Click "Save Image" button on the left
    3) "Save Options" window opens
    4) Under "File Naming" there are several drop-down boxes. The first box is filled in with "Document Name" as the variable. Leave that alone and move to next box to the right.
    5) In this box, select the variable named "2 Digit Serial Number."
    6) Now, in that SAME box right after the word "Number," click after the "r" (at the end) and enter a hyphen "-"
    7) Look above the boxes and it shows you are about to rename the file "FILENAME2 Digit Serial Number-.dng"
    8) The term "2 Digit Serial Number" is now part of the file name (with a hypen at the end).
    This should never happen because it's mixing variables and constants. Plus, most importantly, nobody would EVER type ANY of the drop-down values as a file name. And, if someone did type in the hyphen at the end (like my student did), she obviously intended it to be a 2 digit number followed by a hypen and not the term "2 Digital Serial Number-."
    There may be other places in the software that use this file naming algorithm, too. For instance, in PS Elements 8, it cn be found also found under File>Process Multiple Files.
    This isn't a big issue, I know, but it should be fixed.
    I am primarily looking for a response from Adobe personnel.
    Thanks,
        Mike

    I did some tests and was unable to get it to work even with RAW. (perhaps it was just me) I did get it to work with multiple images being sent to "Merge to Panorama in Photoshop CS4" In all other cases, LR wants to control the naming. You end up with a file sent to PS with a LR controlled name added automatically to the LR catalog. (this is a duplicate of the orig LR file as no edits are made with this name) The file you create with your own name (when you save as from PS) needs to be imported back into the LR catalog manually later.
    This is not the kind of integration we need.
    We need to be able from LR to have jpg edits done in PS and named according to our needs, and re-added to the LR catalog automatically when we exit PS.
    For example the following scenario:
    IMG_1234.jpg is processed, cropped and tweaked in LR, then sent to PS for detailed enhancement.
    Coming out of PS might be:
    IMG_1234_Lucis90%
    IMG_1234_Lucis50%
    etc....
    We need to make this work somehow....

  • Copy File name and Date only from a Folder with SSIS

    Hello all,
    I need to create a package which will list the file names and the dates in a folder, these files are blank flat files. After extracting the file names from the file path i need to create a table which will have two columns Filename and
    Date.We get about 1000 such files every month and we are looking to maintain them in a table.
    Is this possible? Can someone point me in the right direction? 
    FM

    Arthur , I actually figured it out. The For each container let me pass thru the file name, then I inserted the file name into my staging table. I created a FilePath variable and basically Did a sql task and
    INSERT INTO MyTable
    SELECT Filename = ?,
    LoadDate = GetDate()
    In my for each loop I added a *.*txt qualifier... I`ve tested and works well... Got what I needed.
    FM

  • Best way to port all Windows XP files, applicaitons and data form my PC over to iMac and how to run those Windows apps on Mac?ns on Mac?

    I have a Windows XP machine with apps, files and data.  I want to get all that over to my Mac, and also run those apps under Windows XP or even Windows 7 on my Mac.  Im wondering:
    1.  How best to get those files over to my Mac
    2.  How to run those apps and use my Windows based files/data on my Mac
    3.  How best to run Windows on my Mac....either partitiion my Mac's hard drive and boot up either Windows or MAC OS, or run some other program where I can easily switch back and forth form Windows to MAC OS, or perhaps get it all on an external hard drive, maybe partition that Windows/MAC OS and boot from that?
    Thanks!

    I agree you would benefit by using virtualizaiton software. Virtual Box is one alternative the commercial apps for doing virtualization are Parallels and VMWare Fusion which you also might be interested in for their support and updates.
    Also you may benefit by book marking and using:
    Mac 101 , Switch 101 & Find Out How Video tutorials
    For your MS Office apps then I'd STRONGLY recommend using the native Office For Mac versions, you can find these on Amazon for less than $100 and then you can run the apps natively rather than having to lean on MS Windows. Also for your Financial and Tax software you also may want to use OS X apps too, for example I used Quicken for over 20 years (PC mostly and some Mac) but switched to iBank. Also for tax software I have used Quicken's Turbo Tax, this also runs natively on OS X.
    In other words for your stated needs I don't see much reason to stay with MS Windows. You may have other considerations, if you do please state them, some may be real issues and some may be easily overcome.

  • IDoc to File with different file name and data based on the IDoc header dat

    Hi,
    I got a requirement to implement IDOC to file senario.  In this the Converted file should have the file name and file content based on IDoc Header data.  Means If one of the IDoc header field value is
    'A'  - then the file name recieved by reciever system should be 'A.txt' and with the columns A  B  C  D  F.
    'B'  - then the file name recieved by reciever system should be 'B.txt' and with the columns C  D  F.
    In both the case IDoc message type is same.
    Please suggest me what i need to do to achieve this.
    Thanks in Advance. ...
    Regards
    Sri

    Hi,
    As per my requirement, we need to create one file for each IDoc based on IDoc header data. SAP program generates 10 IDocs for each run. All 10 IDoc's message type is same.  Each IDoc has one header record with the file name. Base on the  name in the IDoc header record, file needs to be created with different columns and file name. Means..
    IDoc 01- Header Description contains 'A' - than file will be generated should have name as 'A.txt' and columns 'parent'  'child' 'descripion'.
    IDoc 02- Header Description contains 'B' - than file will be generated should have name as 'B.txt' and columns 'Name' 'Department' 'Description'.
    IDoc 10- Header Description contains 'J' - than file will be generated should have name as 'J.txt' and columns 'Order No'  'Materail' 'Description'.
    Hope this will give more clarity on my requirement. Please let me if you are still not clear on requirement.
    Thanks for your all help..
    Thanks & Regards
    Sreeni

  • PSE 8 - Inconsistency/Bug in automatic File Naming algorithm

    Hello,
    I teach PSE 8 and a student found something that is confusing and should be fixed in Camera Raw and Process Multiple Files. Here's one way to replicate the issue:
    1) Open any image in Camera Raw. Let's call that file FILENAME.dng
    2) Click "Save Image..." button on the left
    3) "Save Options" window opens
    4) Under "File Naming" it has 4 drop-down boxes. The first is filled in with "Document Name." Leave that alone and move to next box to the right.
    5) In this box, select "2 Digit Serial Number."
    6) Now, in that SAME box right after the word "Number," click after the "r" (at the end) and enter a hyphen "-"
    7) Look above the boxes and it shows you are about to rename the file "FILENAME2 Digit Serial Number-.dng"
    8) The term "2 Digit Serial Number" is part of the file name. That should not happen.
    This same problem appears in  FILE>Process Multiple Files. And, I just checked in Photoshop CS3 and it happens there, too. I havent' checked CS5 yet.
    My student was saying to me, "Why is my file name being called Whatever2 Digit Serial Number"?
    The reason this is not a good thing is because this is a beginning program and it's confusing for new users. Plus, nobody would EVER name the file with using any of the weird terms in the drop-down box.
    Note: If you highlight the entire term "2 Digit Serial Number" and then enter a hyphen, it works as it should. But, you shouldn't be able to add onto the end of the term.
    I am looking for a response from Adobe personnel.
    Thanks,
        Mike

    Are you on Win 7? If the files in the Get Photos dialog disappear after you select them,confirm if the names of selected files/folders is shown under the File name . If yes, you can import these files by clicking Open. You should find the issue addressed in E9.
    Thanks

  • The export file from a calc script - naming and date/time stamp

    Here is a simple calc script to export data.
    2 questions:
    1. Is there an easy way to add a date/time stamp on the name of the data file so that it does not overwrite the older ones every time?
    2. I tried to specify the path so that it write to another server. "\\mfldappp011\E:\Exp_AW.txt". It's not working. How should I specify the path ?
    Fix (@Relative("Yeartotal",0),"Actual","Working",&ActualYear);
    Dataexport "file" "," "C:\Exp_AW.txt" "#MI";
    EndFix;
    Edited by: user9959627 on Sep 7, 2012 11:25 AM

    Probably easiest to call the maxl script from a command line script, then rename the exported file to include the tme stamp and copy/move it to a location.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Update to kernel 2.6.30.2-1 splashy do not work

    Hi all, 22th of july I updated my beautiful archlinux system, I do not have the list of files which where updated (does anybody knows how to know that? ), so after te kernel update Archlinux do a mkinitcpio and it return this messages errors : ERROR:

  • Creating a table/view or temporary table from within a stored procedure

    Hi Gurus, Can someone tell me if it is possible to create a table (or view) from within a stored procedure. PROBLEM: In fact I need to create a report at back end (without using oracle developer forms or reports). This report requires creating severa

  • Import c++ dll from 6i

    hello, can i import a c ++ dll library from the "import OLE LIBRARY INTERFACE under the tab "Pogram" -> import OLE LIBRARY INTERFACE" in forms6i? and how to do it plz? or i have to Call it somewhere in a PLSQL trigger in my form AS External procedure

  • Replicate ddl in an instance

    Hi, I would like to replicate two schemas in an instance to another database with same version (11g). One schema with ddl and one shcema without ddl. This approach can be supported as looked up from oracle manual. However, I would like to obtain some

  • Printouts light and color is off

    I am using lightroom 4.3 . My printouts are off AGAIN.  Don't know why.  I use an epson 2000, costco (ilford glossy} paper profile.  Looks great on the screen but is washed out, color is off when I print.  Prints out fine from photoshop elements. I a