Changing File path for different TIFF files in a For loop

Hi dear users:
I am using "IMAQ write TIFF File.vi" that basically writes a TIFF file to a specified file path. However, I would like to CHANGE the file path for each TIFF file i save in a for loop. The reason for this is that the File path has to include the file name and I do not want to write over the same file name all the time in a for loop. What I would like to have are sequential TIFF images. So if the file name would be "Image", I would like the result to be Image0, Image1, Image2 and so forth when I run my For loop. Can anyone help me with this?
Thanks

Use the "Format Into String" and the "Build Path" functions:
Message Edited by smercurio_fc on 06-26-2007 05:16 PM
Attachments:
Example_BD.png ‏3 KB

Similar Messages

  • Join 2 Tiff files in 1 monopage Tiff file

    Hello everybody,
    I'm trying to append 2 tiff files in 1 monopage tiff file with this specificity : the second will be appended below the first one.
    Files have same columns numbers, but not the same lines number. I don't need to change images contents.
    I'm new with JAI and I don't see wich way I have to go. Do I have to work on rasters, or on bufferedData ? Wich one will be quicker ?
    Thanks in advance.

    After you've installed JAI ImageIO
    https://jai-imageio.dev.java.net/binary-builds.html
    then the rest is trivial...
    //load tiff images
    BufferedImage tiff1 = ImageIO.read(/**File/URL to tif #1*/);
    BufferedImage tiff2 = ImageIO.read(/**File/URL to tif #2*/);
    //combine buffered images
    BufferedImage newTiff = new BufferedImage(
            Math.max(tiff1.getWidth(), tiff2.getWidth()),
            tiff1.getHeight() + tiff2.getHeight(),
            BufferedImage.TYPE_3BYTE_BGR);
    Graphics g = newTiff.getGraphics();
    g.drawImage(tiff1,0,0,null);
    g.drawImage(tiff2,0,tiff1.getHeight(),null);
    g.dispose();
    /*Write out result as a tiff.  Instead of using the easy way of
    * ImageIO.write(...) I use the ImageWriter directly and specify
    * I want LZW compression.  I do this because the default settings
    * are used for ImageIO.write(...) and those default settings specify
    * no compression which would cause a large tif file.*/
    ImageWriter writer = ImageIO.getImageWritersByFormatName("tif").next();
    ImageWriteParam param = writer.getDefaultWriteParam();
    param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
    param.setCompressionType("LZW");
    writer.setOutput(
          ImageIO.createImageOutputStream(new java.io.File(/**output*/)));
    writer.write(null, new IIOImage(newTiff,null,null),param);
    writer.reset();
    writer.dispose();The only time JAI comes in is loading a tif images and saving the resulting BufferedImage as a tif. The actual combining
    of the images is simple Java2D.

  • How to export the same mb size of my cr2 files into jpg or tiff files in Lr?

    How to export the same mb size of my cr2 files into jpg or tiff files in Lr?
    Let's say my file size is 22mb, when i export the file to tiff or jpg, although Iam careful with the settings- file size, dimension, resolution, I can't manioukate how I want it.
    With jpg I tried everything, no matter what i do or change in files size or resoltion it remains the same size- 7mb as opposed to 22..
    Please advise,
    Best wishes,
    T

    I would noramlly opt for a tiff file, sending such a high res through the nest a nightmare
    This is probably just an improper use of terminology, but the resolution of a JPG, DNG and TIF should all be the same.
    The files differ in size, not resolution and not number of pixels.
    Jpg is not that bad, but its a pitty they have to be edited under a jpg format..
    Your raws are edited as raw. There is no loss of quality in the editing process. The files are then exported as JPG, which will cause a loss of quality. For just about any use, the loss of quality in the image when you export a JPG at quality level 12 is NOT noticeable. For many uses, exporting a JPG at a quality level of 8 will not be noticeable either, unless you intend to print the photo at a very large size. As twenty_one (not his real name) said, "Jpeg compression is fantastically effective".

  • How to use XSJS file path in Controller.js file

    Hi Experts,
    Regarding How to use XSJS file path in Controller.js file.
    I have gone through the SAP HANA Extended Application Services (Thomas Jung http://scn.sap.com/community/developer-center/hana/blog/2012/11/29/sap-hana-extended-application-services article.)
    Seems to be there is no information about the same. May be the article is targetted for Beginners and above. As I am a learner I am not able to do the same.
    var aUrl = '../../logic/demo_main.xsjs? (highlighted)
    Suppose my XSJS file is at http://ipaddress:8000/newtest/Func.XSJS.
    Can I use like below
    var aUrl = 'http://ipaddress:8000/newtest/Func.xsjs?
    or
    var aUrl = '../../newtest/Func.xsjs?
    I tried with multiple options but not able to get the expected output.
    Can you please provide more details on this?

    Dear Thomas,
    I am a abap developer , recently we meet a problem on our webdynpro report performnace issue. As in the development, we use SALV_WD_TABLE to design a ALV. and verything work correctly in our DEV system.
    But after when our QAS system, there are more records for the ALV, one of them has 21000 records. And in the layout, we have a column as checkbox.
    If we click any one checkbox, then the layout will respond almost 1~2 minutes. With debug I found the most time cost in the standard program.
    And with search I found that you have solution to solve it as 1,000,000 rows.
    So is it possible to provide some idea or solution to us?
    Many thanks for your help!
    BR
    Vincent Chen

  • How to get full file path while uploading a file in flex Applications

    How to get full file path while uploading a file in flex applications.
    FileReference Object is giving file name and other details but not the actual path.
    Is there any workaround to to get the file path?.
    Thanks

    Why not ask in the Flex forum; it is more likely that someone over there knows.

  • How do I disable Illustrator (CS6) from recognising TIFF paths inside placed TIFF files?

    Hi all,
    I have recently output a job to print that was supplied .AI with a simple .TIFF image placed on an artboard at its desired crop.
    After referring to the original TIFF file I have realised whilst inside illustrator my image suddenly has a clipping mask attached to it, and a lot of it is missing. (however in outline, illustrator only see's a single TIFF bounding box)
    Looking more closely at the TIFF in Photoshop, i've found it has x3 paths inside it!)
    Illustrator is picking these up and masking my photo. Is there a default function or process that can stop this from happening in the future, so it ignores any paths within the file?
    It's concerning how many jobs may be ruined because of this auto feature.
    I look forward to your response
    Thanks
    Matt

    haha, it's not an easy one to describe.
    So when checking the TIFF initially, it is a flat locked image: (image below)
    when placed into Illustrator CS2 and outputting a PDF, I get this correct result: (image below)
    When placed into illustrator CS6 and output to PDF I get this incorrect result: (image below)
    Close up detailing masking effect: (image below)
    When looking more closely in photoshop at my TIFF, it has this inside of it: (image below)
    However, in illustrator there is nothing I can release anywhere as it still treats it as a flat image: (image below)

  • How to change the path of all dbf files once database installed...

    Hi All,
    I m using 10g Database...
    During my DBCA installation I forget to change location of the database files, redlologs and control files... and my Database is successfully installed. Now, I want to change my all these above mention files location And also adump,bdump,cdump and udump...so what I did is
    1- create pfile from spfile.
    2- Shutdown immediate.
    3- from OS level copies all files to new location.
    4- Editing in pfile
    5- Startup with new pfile and check all the locations...
    for datafiles
    SQL> select FILE_NAME,TABLESPACE_NAME,STATUS from dba_data_files;
    (this shows me the older location not new one.)
    for controlfiles,adump,bdump,cdump and uduump
    SQL>Show parameter...
    6- create spfile from pfile .
    pl. suggest me what should I do for the datafiles?
    Thx,

    Hi All,
    Thx for ur support.
    I go through with both links and able to success for the renaming of all datafiles except system and undotbs.. as below :
    SQL> alter tablespace sysaux offline normal;
    Tablespace altered.
    SQL> alter tablespace sysaux rename datafile '/u01/app/oracle/product/10.2.0/oradata/elitrepl/sysaux01.dbf'
    2 to '/u01/app/oracle/oradata/elitrepl/sysaux01.dbf';
    Tablespace altered.
    SQL> select FILE_NAME,TABLESPACE_NAME,STATUS from dba_data_files;
    FILE_NAME TABLESPACE_NAME STATUS
    /u01/app/oracle/oradata/elitrepl/sysaux01.dbfSYSAUX AVAILABLE
    but for the system n undotbs.. what I did is below :
    SQL> startup exclusive mount elitrepl
    SQL> alter database rename file '/u01/app/oracle/product/10.2.0/oradata/elitrepl/system01.dbf' to
    2 '/u01/app/oracle/oradata/elitrepl/system01.dbf';
    Database altered.
    SQL> alter database elitrepl open;
    alter database elitrepl open
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: '/u01/app/oracle/oradata/elitrepl/system01.dbf'
    Now, I don't hv any backup of my database.... let me know how to overcome this scenario?

  • Force finder to render thumbnails for layered tiff files

    Since updating to to Mavericks I've noticed that the Finder no longer renders thumbnails for large layered TIFF files(1 to 2 Gb). This was never the case with prevoius versions of OS X. Is there some way to force Finder to render them again?

    exactly the same problem here, solutions?

  • Schemas for Different Sequence Files

    I  have a database that is storing my results from Test Stand.  I'm having trouble creating the tables for the 6 different sequel files in the same database.  I tried making a new schema to rename all the tables, but I cant execute a new SQL window to build the tables because all the files I have to open are the text files TestStand supplies which all create the same table names.  Do I have to create all those text files myself to make the tables for a new schema?  As you all can see I am a struggling novice.  Thanks for the help. 

    Hi Roons,
    It appears you must be using a TestStand version prior to 3.0.  TestStand 3.0 and above have a utility to build a .SQL file directly from your schema.  With your version, you still have 2 options:
    1.  You still have the default schema .SQL files in the C:\Program Files\National Instruments\TestStand 2.0.1\Components\NI\Models\TestStandModels\Database directory that you can work against.  You can use these as a template for creating the CREATE TABLE statements for your particular database.
    2.  You could open up your database in TestStand Database Viewer (Click the View Data button of the Data Link tab in Database Options) and can then use the Right Click options to Add the tables and columns you need and, if necessary, drop any tables that you don't need.  If you are not familiar with SQL, this may be easier to do.
    Give either method a shot and please repost with any other questions you have as you go through this process.  Thanks and have a good one.

  • Bridge to PS CC 2014:  Error "Windows Cannot Find Photoshop CC" for PSD & TIFF files

    Since installing PS CC 2014, I have been unable to open PSD & TIFF files from within Bridge.  If I do- I get the error above.   Once Photoshop CC 2014 was installed, I removed the older version of PS CC. 
    Sounds like a registry issue created when PS CC 2014 installed alongside PS CC; confusing Bridge of where to send Photoshop files.

    Looks like bridge is still trying to run the old version.  Did you uninstall Photoshop CC after installing Photoshop CC 2014?
    Have you made sure and fully closed Bridge and reopened it?  Logging off and back on would ensure that.
    Failing the above, people have reported success with using the Creative Cloud Cleaner tool followed by a reinstall of Photoshop CC 2014...
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    -Noel

  • Issues with file path in java.io.File

    I am getting file path in eclipse plugin using org.eclipse.swt.widgets.FileDialog and saving the path in XML files.
    In web.xml , path is stored as below (I can't change backsladh to forwardslash or escape backslash since the value is coming from SWT FileDialog)
    <init-param>
    <param-name>filePath</param-name>
    <param-value>c:\new\demo\next\version.txt</param-value>
    </init-param>
    In my filter , i have below code in init() method but am not able to get File reference due to special characters
    String filePath = filterConfig.getInitParameter("filePath");
    // Tried filePath.replace('\\','/') --> Didnot work since \n is a single character
    File f = new File(path)

    No it does not. You need to escape file paths properly. You can check this with simple code and that the problem i am facing now
         public static void main(String[] args) {
              String path = Messages.getString("filePath"); //in messages.properties put filePath=c:\new\next\verison.txt
              System.out.println(path);
              File f = new File(path);
              System.out.println(f.exists());
         }

  • Linking button from one flash file to a different flash file

    Hi All,
    Wondering if anyone knows how to link buttons in one flash
    file to open a specific scene of an entirely different flash file?
    If it isn't possible to choose a specific scene, is there a way to
    just open a flash file...in the same browser window, but not within
    the flash file...if that makes sense?
    I'm putting this on a website, so additionally, I will need
    to know which file to link it to, the swf, html, or fla.
    Thanks!!

    I would advise against using scenes for your website. You
    would need to create a separate html which would load the second
    swf file within the same browser window.
    This is how you call for it:
    on(release){
    getURL("
    http://www.sitelocation.com/secondswf.html");

  • Absolute file path in a war file

    Hi,
    I have a war file which I have deployed on a Weblogic 7 server.I have a startup servlet which tries to read an xml file located in the WEB-INF folder.I need to have the absolute path to the file so that my parser can read the xml file.
    ServletContext.getRealPath() returns null when the application is in a war format.
    Would be grateful for any help.
    regards
    Vikram

    I've been using the getRealPath() method from the
    ServletContext object to ..
    I'm suspicious of the fact that
    you are getting a null pointer when you use
    getRealPath().
    I have also been deploying my webapps to Tomcat using
    war files. So without knowing more I'm guessing you
    may have some sort of problem with your overall
    configuration here...Nothing to do with configuration. getRealPath() returns null if the .war file doesn't get unpacked. The Tomcat servlet engine unpacks the war files but weblogic apparently does not.
    So getRealPath() is not generic enough, as it depends on the servlet container used.
    Also, I would not recommend the suggestion to use the ProtectionDomain.getCodeSource() method (although it may work). ProtectionDomain is not intended for reading xml files, (wether inside the web-inf dir or not) but has to do with security. It is simply overkill in this case.
    The poster should be able to get the file with the class.getResource() method, get a java.net.URL obj out of it, then call URL.getPath() or getFile() (check the URL class for these methods ), get back a path string and call his parser.
    The other way would be to simply list that file in the web.xml as an init param :
    <context-param>
    <param-name>filename</param-name>
    <param-value>WEB-INF/file.xml</param-value>
    </context-param>and get it with
    getInitParameter("filename")

  • Access a component in an mxml file from a different mxml file

    Hi,
    I want to access a component in an mxml file 1 such as this one  <mx:Image id="img" width="101" height="200" source="{product.image}"/> using the
    id
    from the actionscript function from a different mxml file 2
    public function init():void
           HERE.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );    
    so i can make it dragable, Please help me  in this if u can urgently!!!!

    okay,
    I have the image component in ProductCatalogThumbnail.mxml, which has an id of "img"
    so, i created a public variable in the file and a public function that returns the value of the object.
    public var imagecopy:Object;
            [Bindable]
             public function imagecopyfunction():Object{
             imagecopy  = img;
             return imagecopy;
    now, I want to access this image in the mxml file ProductList.mxml in a function
      public function init():void
          ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
         // accepting a drag/drop operation...
           this.area.addEventListener( DragEvent.DRAG_ENTER, acceptDrop );
           // handling the drop...
          //this.area.addEventListener( DragEvent.DRAG_DROP, handleDrop );
    I tried to use the variable, and then i tried to use the function:
    I got this error when I tried the variable : 1119: Access of possibly undefined property imagecopy through a reference with static type Class.
    ProductCatalogThumbnail.imagecopy.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    and this error when i tried the function:  1061: Call to a possibly undefined method imagecopyfunction through a reference with static type Class.
    ProductCatalogThumbnail.imagecopyfunction().addEventListener( MouseEvent.MOUSE_DOWN, beginDrag );
    i made sure i imported ProductCatalogThumbnail file in the beginning of my application.
    I am not sure what went wrong.

  • Installing dictionaries for different languages in FM7.0 for Windows

    Hi there,
    I'm wondering how it's possible to install the dictionaries for different languages in FM 7.0. I installed it about a month ago and now I only have te languages US English and UK English in my Paragraph Designer. I know from my previous work that it is possible to have a lot more languages over there. When I look in the manual that's delivered together with the software, it says that:
    "The FrameMaker CD contains dictionaries for all supported languages. However, the default Windows and Mac OS installation contains only one dictionary in a single language."
    That's great, but when I re-enter the CD, I cannot find the other dictionaries anywhere.
    Can someone please help me how to fix this? It's really important for handling files in different (european) languages, e.g. for the hyphenation.
    Thanks a lot!

    1. Start the FM 7.0 installation from the CD.
    2. Work your way to the Setup screen and select "Custom" installation.
    3. Select only the "Dictionaries" components (i.e. uncheck the other
    components) and click on the "Change" button.
    4. This will pop-up the available "sub-components", i.e. the
    dictionaries.
    5. Select the ones you want and click on the "Continue" button and
    then the "Next" button to install only the new dictionaries.

Maybe you are looking for