Using IMAQReadFile with .jpg format of file is producing an "incompatible image size" error ?

The .jpg monochrome images are of slightly different sizes. Is there a way round this or should i use a different file format ?
Attachments:
Read_multiple_IMAQ_Image_and_other_data_from_file_and_loop_through.vi ‏88 KB

I trimmed down your code a bit, but I don't see any problems with using various sized images. I ran your code first with no changes except removing the text file IO and changing the paths and saw no problems. I am using LV 6.1 with Vision 6.1. Take a look at the code below and see if it works for you.
Regards,
Brent R.
Applications Engineer
National Instruments
Attachments:
fileread.zip ‏309 KB

Similar Messages

  • Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help.. Thanks in Advance

    Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help..
    Thanks in Advance

    This is not a Java problem, this is a WEBBOT problem.
    I suggest that you research the topic in your FrontPage help files.
    Yes, we do know how to solve this problem using ordinary HTML and JSP. The sample code that you've posted implies that you are looking for an extremely different solution. To put it another way, it looks like you're logging onto the Federal Aviation Administration's forums and asking them how to go from Chicago to New York by train.
    But in any case, if you can't find the information in FrontPage, I'm 100% certain that if you went to www.microsoft.com and searched for FrontPage and downloads, and skipped the results that actually want you to download FrontPage, you'll get some sample code.

  • Problem with saving a pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21).

    Need advice on a saving file issue. I'm having problem with saving a .pdf file to computer. Continually get an error message " This document could not be saved. There was a problem reading this document (21). This is new as this error message just recently started to pop-up.

    More information about this issue can be found here:
    https://forums.adobe.com/thread/1672655
    A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
    Then download each of the individual updates and run them sequentially. 
    I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
    You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
    Adobe Reader 11.0 - Multilingual (MUI) installer    AdbeRdr11000_mui_Std
    Adobe Reader 11.0.01 update - Multilingual (MUI) installer    AdbeRdrUpd11001_MUI.msp
    Adobe Reader 11.0.02 update - All languages    AdbeRdrSecUpd11002.msp
    Adobe Reader 11.0.03 update - Multilingual (MUI) installer    AdbeRdrUpd11003_MUI.msp
    Adobe Reader 11.0.04 update - Multilingual (MUI) installer    AdbeRdrUpd11004_MUI.msp
    Adobe Reader 11.0.05 security update - All languages    AdbeRdrSecUpd11005.msp
    Adobe Reader 11.0.06 update - Multilingual (MUI) installer    AdbeRdrUpd11006_MUI.msp
    Adobe Reader 11.0.07 update - Multilingual (MUI) installer    AdbeRdrUpd11007_MUI.msp
    Adobe Reader 11.0.08 security update - All languages    AdbeRdrSecUpd11008.msp

  • Using Mapviewer with MrSID format images

    Hello,
    I'm using Mapviewer, it only supports JPEG and GIF formats so If you want to use other formats, you have to create your own Custom Image Render. I have tried to do this with ECW format (there is an example in Mapviewer Documentation) because we have some images in this format, but we work with images in MrSID Format, Has anybody done a Custom Image Render for this format?, and for ECW Format?
    Thank you very much
    Carlos.

    Chris, File>Page Setup gives me the choice to select small icons for portrait or landscape or reverse landscape. The problem is that I select them, then Save (Command S), I get a landscape view in the print dialog that has the image as the same size and shape as the portrait version. It has large white bars of paper on each side of the image.
    The only way I've been able to get this to print out properly is by opening it into Keynote instead of Preview.

  • Using OR with WHEN in .ctl file

    Hello,
    Can I use OR with WHEN clause in .ctl file?
    I am trying to load txt file into oracle table. I used positions.
    INTO TABLE ABC
    WHEN ((814:834)!=BLANKS) OR ((934:938)!=BLANKS)
    DE_CASE POSITION(1:7) NULLIF DE_CASE=BLANKS,
    DE_WHERECODE POSITION(814:814) NULLIF DE_WHERECODE=BLANKS,
    DE_WHERE POSITION(815:831) NULLIF DE_WHERE=BLANKS,
    DE_PDCODE POSITION(832:832) NULLIF DE_PDCODE=BLANKS
    If not what should I do for OR?
    Thank you,
    H.

    My mistake, it should be WHEN not WHERE.
    review the documentation:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch05.htm
    When I asked 'Did you try the import process already?', I meant, did you try your sql loader process with your control file? Are you getting an error while executing the loading process? if you are please post the error and you probably need more info likethe entire control file with sample data
    Edited by: rkhtsen on Mar 26, 2009 1:11 PM

  • Pb displaying image in a canva with jpg format

    I have an applet that displays images in a canva by pushing buttons. It works very well with gif image but bad with jpg image.
    Coincidence or not ? I don't know.
    What I know that I use the same method painting jpg or gif image
    (first changing image name then calling mycanva.validate() and mycanva.repaint() and of course mycanva paint method contains g.drawimage(myimage,0,0,200,200,this) )
    With jpg image what happens is the image is not completly painted (sometime half painted, sometime less than half painted) and if I do reload the browser the image is very well displayed...
    has someone an idea ?
    many thanks

    try your app on another computer and see if it does the same thing. I had a very similar problem and it turned out to be my video driver was not driving my video properly. I changed/updated the video driver and my problems were totally solved.

  • New to using Firefox with MAC: How does one save a single jpeg image from the web (as in a right click on a pc?)

    New to using Firefox with MAC: How does one save a single jpeg from the internet, similar to using the right mouse click on a pc?

    If your question comes about because you have a single button mouse, it's time to visit your local computer store and get a ''real'' mouse for that MAC. I don't "get" Apple, they sell their hardware for almost twice what a comparable PC would sell for - and then they leave out what is probably the most important time saving control, the right-button.
    See this for setting the hidden pref for context menus in Firefox, for Mac's.
    http://kb.mozillazine.org/Ui.click_hold_context_menus
    type '''about:config''' in the URL bar and hit Enter
    Pref Name = '''ui.click_hold_context_menus'''
    Double-click to Toggle to '''True'''

  • Help with "The iTunes Library file cannot be saved. An unknown error occurred (-54)"

    Hi,
    Has anyone else had this problem?  And how do I correct it?  "The iTunes Library file cannot be saved. An unknown error occurred (-54)"

    adamwineguy wrote:
    I was having this issue as well, after doing two things: updating iTunes yesterday, and installing and running ClamXav, a Mac antivirus tool.
    I have now fixed the issue, first I made sure that I had the proper permissions for iTunes and it's library folders. Then I completely removed ClamXav and all its related files and restarted iTunes.  Now I no longer get this error when adding new media to iTunes or updating apps, and the library file saves fine.  For some reason I think it was related to the antivirus software.
    I think it was a coincidence as ClamXav only modifies permissions on the files it installs and none of those are anywhere near your iTunes folders, but I'm glad you got it working.

  • ELF file's phentsize not the expected size - ERROR on Linux

    I followed all the steps shown on the javasoft/tutorial on JNI and created the following files
    ThreadTool.c
    ~~~~~~~~~~~~~~~~~~
    #include <jni.h>
    #include "ThreadTool.h"
    #include <jvmdi.h>
    JNIEXPORT jint JNICALL Java_ThreadTool_getThreadStatus
    (JNIEnv *env, jclass clazz, jobject thread)
    jint threadStatus;
    jint suspendStatus;
    jvmdiError error = JVMDI_GetThreadStatus (env, thread, &threadStatus, &suspendStatus);
    return (threadStatus);
    ThreadTool.h
    ~~~~~~~~~~
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class ThreadTool */
    #ifndef IncludedThreadTool
    #define IncludedThreadTool
    #ifdef __cplusplus
    extern "C" {
    #endif
    #undef ThreadTool_THREAD_STATUS_UNKNOWN
    #define ThreadTool_THREAD_STATUS_UNKNOWN -1L
    #undef ThreadTool_THREAD_STATUS_ZOMBIE
    #define ThreadTool_THREAD_STATUS_ZOMBIE 0L
    #undef ThreadTool_THREAD_STATUS_RUNNING
    #define ThreadTool_THREAD_STATUS_RUNNING 1L
    #undef ThreadTool_THREAD_STATUS_SLEEPING
    #define ThreadTool_THREAD_STATUS_SLEEPING 2L
    #undef ThreadTool_THREAD_STATUS_MONITOR
    #define ThreadTool_THREAD_STATUS_MONITOR 3L
    #undef ThreadTool_THREAD_STATUS_WAIT
    #define ThreadTool_THREAD_STATUS_WAIT 4L
    #undef ThreadTool_SUSPEND_STATUS_SUSPENDED
    #define ThreadTool_SUSPEND_STATUS_SUSPENDED 1L
    #undef ThreadTool_SUSPEND_STATUS_BREAK
    #define ThreadTool_SUSPEND_STATUS_BREAK 2L
    * Class: ThreadTool
    * Method: getThreadStatus
    * Signature: (Ljava/lang/Thread;)I
    JNIEXPORT jint JNICALL Java_ThreadTool_getThreadStatus
    (JNIEnv *, jclass, jobject);
    #ifdef __cplusplus
    #endif
    #endif
    ThreadTool.java (This is my test class)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    public class ThreadTool {
    public static final int THREAD_STATUS_UNKNOWN = -1;
    public static final int THREAD_STATUS_ZOMBIE = 0;
    public static final int THREAD_STATUS_RUNNING = 1;
    public static final int THREAD_STATUS_SLEEPING = 2;
    public static final int THREAD_STATUS_MONITOR = 3;
    public static final int THREAD_STATUS_WAIT = 4;
    public static final int SUSPEND_STATUS_SUSPENDED = 1;
    public static final int SUSPEND_STATUS_BREAK = 2;
    public static native int getThreadStatus (Thread t);
    static {
    String currpath = System.getProperty("java.library.path");
    String newpath = currpath+":/home/apota/";
    System.setProperty("java.library.path", newpath);
    System.loadLibrary ("ThreadTool");
    public static void main(String[] args) {
    Reaper rp = new Reaper(1000, "apota");
    Reaper rp1 = new Reaper(2000, "drice");
    rp.start();
    rp1.start();
    while (true) {
    System.out.println("Apota thread "+ThreadTool.getThreadStatus(rp));
    System.out.println("Drice thread "+ThreadTool.getThreadStatus(rp1));
    I use the following command to compile on Linux
    gcc -I/usr/local/java/include -I/usr/local/java/include/linux ThreadTool.c -c -o libThreadTool.so
    When I run the java program to test it, I get the following
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/home/apota/libThreadTool.so: /usr/home/apota/libThreadTool.so: ELF file's phentsize not the expected size
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1419)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1343)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at ThreadTool.<clinit>(ThreadTool.java:21)
    Whats going on?
    (FYI: I am trying ot get the status of a Thread in Java using the JVMDI C API)

    aldus99 wrote:
    I use the following command to compile on Linux
    gcc -I/usr/local/java/include -I/usr/local/java/include/linux ThreadTool.c -c -o libThreadTool.so
    I could be wrong, but it looks like you're invoking gcc all wrong.
    1) You're using the -c flag which tells the compiler to only compile, yet you're trying to also link.
    2) The last time that I used gcc, I believe you had to use a special flag to tell it that you wanted a shared library... something like -G. (It's not smart like Kai's KCC or Forte).
    3) On top of all that, you may have to use a -thread option to make sure you are generating multi-thread safe code.
    I suggest taking a second look at the man pages for gcc.
    God bless,
    -Toby Reyelts

  • Email attachment for text file using ABAP with funny format output

    Hi All,
    I am developing an ABAP program to generate an email to an external email address by using Function Module FUNCTION 'SO_DOCUMENT_SEND_API1. There is an attachment included in this program. The attachment is generated by reading through a data file from an Application Server and place it in the internal table before attaching it to the function module.
    Currently when I download the data file through SO01, I found that the data file looks a bit funny as below. It seems that all the letters are separated with an additional space in between.
    Funny Output:
    A B C D  1 2 3  A B C
    Suppose Output:
    ABCD 123 ABC
    I am not too sure if there is any output format that I need to set in order to make it works?

    hi Sree Ram,
    Thanks for your quick reply. The following is my code. I am not too sure if your reply will help to change the format of my data file or attachment sent through email.
    Thanks.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = w_doc_data
          put_in_outbox              = 'X'
          sender_address             = ld_sender_add
          sender_address_type        = ld_sender_add_type
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = w_sent_all
        TABLES
          packing_list               = t_packing_list
          contents_bin               = t_attachment
          contents_txt               = it_message
          receivers                  = t_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.

  • Problem with .avi-format import files. PE cannot recognize correctly

    I am creating DVD:s based on scanned Super-8 movies. The scanned files are in .avi-format. When doing a couple of projects on my former PC using Premiere Elements 11 it worked fine. However today I have installed the same sw on an other PC and Premiere Elements 11 does not handle the files correctly. I got an error message for one of the files saying roughly (translation from Swedish) "this file type cannot be handled or the compulsory codec has not been installed". How do I proceed? Was the sw not properly installed or do I actually have to downlod the .avi codec and if so from where and how? Many thanks in advance! Ivar

    ivahag
    Thank you for your replies. Glad you have downloaded gspot utility to evaluate the codec situation. Unfortunately your replies have not included vital information that would help us help you.
    The gspot dialog should look like the following
    What we need to know is what you are seeing at the top right under Video.
    What do you see in each of the following fields
    Codec
    Name
    Status
    The .avi that you see is just the file extension (format that wraps the video and audio compression). What we need to get at is the name of the video and audio compression that is being used in the file. Right now the focus is on the video compression.
    Certain .avi fileS are particular problematic for Premiere Elements in different degrees
    Xvid.avi
    MotionJPEG.avi
    Cineform.avi
    AVCHD.avi
    to name a few.
    We will be watching for your follow up.
    Thank you.
    ATR

  • Problem adding NAS quorum device using scconf with RSH disabled on filer

    Hi,
    we are having problems to configure a quorum device via scconf.
    /usr/cluster/bin/scconf -a -q name=XXXdc00xp1,type=netapp_nas,filer=XXX607ap fails with
    scconf: Failed to add quorum device (XXX00xp1) - invalid quorum configuration.
    scconf: Unable to communicate with filer "XXX607ap".
    using snoop i realized that scconf is trying to configure the quorum using rsh. as our filer is only accessible via http and ssh - i have no idea how to configure a quorum using the standard methods described in the documentation provided by sun.
    the documents only state that we need http administrative access - which is available.
    any ideas ???
    thankd,
    chris

    Hi Christian,
    this should be a bug. If you send me some more customer details offline, I can add them to the bug and make sure this gets fixed.
    The workaround should be (according to well informed sources):
    on filer do:
    options rsh.enable on
    do scconf to add quorum and then
    options rsh.enable off on filer
    This has been tested and found to work. If it does not let us know.
    Regards
    Hartmut

  • Can you convert a folio created with jpg format to pdf format?

    I want to see pinch and zoom on some of the pages and it looks like I can't mix up pdf articles with pngs unless "automatic" knows the difference.

    If you are building a Single Edition publication you can read http://www.adobe.com/devnet/digitalpublishingsuite/articles/building-multi-rendition-artic les.html for details on how to use a single set of assets for both low and high resolution iPads.
    Neil

  • Mac using iPhoto with elements 9 saving file after editing

    I start with iPhoto select a photo to work with, make adjustment or add layer etc and then when I save the file I can never find it again!
    It says it is saving it to my iPhoto folder I started from but it is not there.
    Never had this kind of problem before. How can you direct Elements to save where you want it not where it wants it.
    Thanks
    LarryB

    Thanks for that info.
    I had it almost set up correctly did not know in Elements to set "save over original" feature so that solved it.
    I have no idea where these others I have modified went.
    I search for them in the spot light but the path doesn't get me there.
    It stops at iphoto library/modified etc.
    They are not in the library that's for sure.
    Anyway this method will work just fine.
    LarryB

  • I'm using the free epub reader, the file I imported says "Due to an error in the ePub file, the table of contents can't be displayed correctly.

    For experts: The NCX-file is not a valid xml-file..Can you help me? Donna

    Hi,
    It's actually not the first time I have seen this issue, please refer to this thread below:
    https://social.technet.microsoft.com/Forums/en-US/01bbe40c-f522-4148-a7cc-86303da5416d/your-file-could-not-be-printed-due-to-an-error?forum=excel
    Here are some suggestions:
    1. If this issue only occurs to one Workbook, copy the file contents and paste them to another new Workbook, try to print and check the result.
    2. Maybe Excel is configured to run in Compatibility Mode. Right click on the Excel shortcut, click Properties -> Compatibility tab -> If Excel is configured to run in compatibility mode, untick it and click OK.
    3. There may be some corruption in the Excel install, try to repair Office from Control Panel -> Programs and Features.
    I hope the information is helpful to you in this scenario.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for