Image of cluster

hello, I my App. I need to print several controls into a JPEG file. I am able to use the "Get Image" method (and Get Image Subset VI) with every control except one: a cluster.
Look into the attached VI. Could someone tell me how I could print the complete content of the cluster inside the picture?
Attachments:
test_cluster_picture.vi ‏22 KB

This bug also casues the method "FP.GetImage to fail with a similar ailment.
It behaves like the cluster container is transparent.
Ben
Message Edited by Ben on 10-28-2006 02:00 PM
Message Edited by Ben on 10-28-2006 02:04 PM
Message Edited by Ben on 10-28-2006 02:04 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
FP_Get Image.JPG ‏61 KB
ClusterbackgroundisTransparent.JPG ‏41 KB

Similar Messages

  • How to convert an AVI frame to an image data cluster ?

    Hi everybody,
    I have previous VIs that manipulate pictures (image data cluster) readen from JPEG files. I'd like to use these VIs to analyse individual frames from an AVI file.
    How can I connect the image out of the IMAQ AVI read.vi to the picture input of the Draw Flattened Pixmap.vi?
    Thanks for helping,
    Olivier
    Solved!
    Go to Solution.

    Thanks for the tip but, in my implentation, it generates that the no picture can be manipulated. Could you tell me where is my mistake?
    Thanks,
    Olivier
    Attachments:
    AVI2JPEG.vi ‏15 KB
    clock.avi ‏81 KB

  • How can I convert a bitmap image into an array in LabVIEW 6.0.2, then to a spreadsheet for further analysis without NI-IMAQ or Vision?

    I do not have NI-IMAQ or NI Vision.
    I acquired the image using a picolo board then just saved it as a bitmap file.

    You want to convert it to an array of what? Of numbers? Of LabVIEW colors?
    The "Read BMP File.vi" VI outputs a 1-D array of the pixels, but I suspect it is not exactly in the format that you need. I am NOT sure, but I think that each group of 3 elements of that 1-D array (which is inside the cluster "image data" that the VI outputs) represents the red, green and blue levels of a single pixel (but it may be hue, saturation and lum.). Also, since it is a 1-D array, you would have to divide it by the width (which is also included in the "image data" cluster) to get some sort of 2-D array of data.
    You can find the "Read BMP File.vi" VI in the functions palete> "Graphics & sound">"Graphics Formats".

  • How can I convert OPENGL canvas graphics into bitmap image format.

    I used the following code... but no conversion made... plz tell the write way..
    public static void savePaintingJPG(GLCanvas canvas, String fileName) {
            // saves the content of the 'panel' in a file 'file'.jpg
            String name = "";
    int framewidth = canvas.getSize().width; // get the canvas' dimensions
    int frameheight = canvas.getSize().height;
    System.out.println(framewidth);
    System.out.println(frameheight);
      java.nio.ByteBuffer pixelsRGB = BufferUtils.newByteBuffer(framewidth * frameheight * 3); // create a ByteBuffer to hold the image data
    GL gl = canvas.getGL(); // acquire our GL Object
          // read the Frame back into our ByteBuffer
    gl.glReadBuffer(GL.GL_BACK);
    gl.glPixelStorei(GL.GL_PACK_ALIGNMENT, 1);
    gl.glReadPixels(0, 0, framewidth, frameheight, GL.GL_RGB, GL.GL_UNSIGNED_BYTE, pixelsRGB);
    int[] pixelInts = new int[framewidth * frameheight*3];       // Convert RGB bytes to ARGB ints with no transparency. Flip image vertically by reading the
         // rows of pixels in the byte buffer in reverse - (0,0) is at bottom left in OpenGL.
    int p = framewidth * frameheight * 3; // Points to first byte (red) in each row.
         int q;   // Index into ByteBuffer
      int i = 0;   // Index into target int[]
      int w3 = framewidth*3;    // Number of bytes in each row
      for (int row = 0; row < frameheight; row++) {
        p -= w3;
        q = p;
        for (int col = 0; col < framewidth; col++) {
          int iR = pixelsRGB.get(q++);
          int iG = pixelsRGB.get(q++);
          int iB = pixelsRGB.get(q++);
          pixelInts[i++] = 0xFF000000 | ((iR & 0x000000FF) << 16) | ((iG & 0x000000FF) << 8) | (iB & 0x000000FF);
            BufferedImage bimg = new BufferedImage(framewidth,frameheight,BufferedImage.TYPE_INT_ARGB);
              bimg.setRGB(0,0,framewidth, frameheight, pixelInts, 0, framewidth);
            try
                File imageFile = new File("final.jpg");
                File imagf = new File("final.png");
                File image = new File("final.bmp");
                ImageIO.write(bimg, "jpg", imageFile); // saves files
                ImageIO.write(bimg, "png", imagf);
                ImageIO.write(bimg, "bmp", image);
                   System.out.println("Success");
            catch (IOException e) {
                e.printStackTrace();
        }

    You want to convert it to an array of what? Of numbers? Of LabVIEW colors?
    The "Read BMP File.vi" VI outputs a 1-D array of the pixels, but I suspect it is not exactly in the format that you need. I am NOT sure, but I think that each group of 3 elements of that 1-D array (which is inside the cluster "image data" that the VI outputs) represents the red, green and blue levels of a single pixel (but it may be hue, saturation and lum.). Also, since it is a 1-D array, you would have to divide it by the width (which is also included in the "image data" cluster) to get some sort of 2-D array of data.
    You can find the "Read BMP File.vi" VI in the functions palete> "Graphics & sound">"Graphics Formats".

  • Changing images in bsp application.

    hello freinds,
    i am new to bsp as well as SAP. now i have a task that..
    i have some images in MIME. But these images r always keep on changing in its size. Now i have to display them in a client.could anyone tell me that where should i store the images to make dynamic display (other than MIME).

    Hello,
    Another solution to this problem is: save the images in a cluster table.
    Here is the procedure:
    1) create the image database cluster
    name = zimg_rep, for example
    >>---structure
    field   type
    MANDT     MANDT         (primary key,initial)
    RELID     INDX_RELID    (primary key,initial)
    SRTFD     INDX_SRTFD    (primary key,initial)
    SRTF2     INDX_SRTF2    (primary key,initial)
    TYPE     TEXT30
    LENGTH     NUM08
    CLUSTR     INDX_CLSTR
    CLUSTD     INDX_CLUST
    2) capture the image input:
    >>---Put this code in "OnInputProcessing" event handler of the bsp capturing the images:
    DATA: value type string .
    DATA: BEGIN OF key ,
      id TYPE numc8 ,
    END OF key.
    DATA: entity         TYPE REF TO if_http_entity,
             file           TYPE xstring,
             content_type   TYPE string,
             content_length TYPE string,
             num_multiparts TYPE i,
             i              TYPE i VALUE 1,
             doecho         TYPE string.
    num_multiparts = request->num_multiparts( ).
    WHILE i <= num_multiparts.
    entity = request->get_multipart( i ).
    value = entity->get_header_field( '~content_filename' ).
    IF NOT value IS INITIAL.
    navigation->set_parameter( name = 'content_filename'
    value = value ).
    content_type = entity->get_header_field( 'Content-Type' ).
    navigation->set_parameter( name = 'content_type'
    value = content_type ).
    file = entity->get_data( ).
    content_length = xstrlen( file ).
    ENDIF.
    i = i + 1.
    ENDWHILE.
    IF NOT ( file IS INITIAL ) AND
    NOT ( content_type IS INITIAL ) AND
    NOT ( content_length IS INITIAL ) .
    key-id = '???' . "put key here
    EXPORT
    type = content_type
    length = content_length
    clustd = file
    TO DATABASE zimg_rep(aa)
    ID key .
    ENDIF.
    >>----in "Layout", the tag "form" will look like:
    >>---- inputfield to capture de image
    image filename:
    >>----in BSP Properties
    myImage type char1 (automatic)
    the above two steps will help us to save images in a cluster table .
    Later, When you wants to retrieve them:
    1) make a bsp page, "show_image", for example:
    in "OnInitialization":
    DATA: entity TYPE REF TO if_http_entity,
    content_type TYPE string,
    content_length TYPE string.
    DATA:
    BEGIN OF key ,
    id TYPE numc8 ,
    END OF key.
    DATA xfile TYPE xstring.
    key-aplno = '???'. "put key here
    IMPORT
    type = content_type
    length = content_length
    clustd = xfile
    FROM DATABASE zimg_rep(aa)
    ID key .
    IF sy-subrc = 0.
    navigation->set_parameter( name = 'content_type'
    value = content_type ).
    navigation->set_parameter( name = 'content_length'
    value = content_length ).
    runtime->server->response->set_data( xfile ).
    runtime->server->response->set_header_field(
    name = 'Content-Type'
    value = content_type ).
    runtime->server->response->set_header_field(
    name = 'Content-Length'
    value = content_length ).
    runtime->server->response->delete_header_field(
    name = 'Cache-Control' ).
    runtime->server->response->delete_header_field(
    name = 'Expires' ).
    navigation->response_complete( ).
    ENDIF.
    >>-- put the key in attribute type automatic, "key" 
    that's all
    when you want to display a image, you may use in another bsp page the corresponding tag "img", like this:
    i hope this hint be useful to you.
    francisco carreñ

  • Saving image from CCD Camera (without IMAQ and Vision)

    Hi,
    I am using the basic Labview 7.0 (no IMAQ and no Vision). I am triggering a
    CCD camera (Megaplus ES 310 Turbo) from my NI acquisition card and the
    signal goes to the triggering input of the camera. How to save the file
    captured by the camera under labview? I found the "Write a jpg" VI but how
    can I refer the image data to it?
    Any clue is truly welcome.
    Thanks
    Mathieu

    Hi Matthieu,
    What kind of format is your CCD image in? If it’s in some sort of a pixmap (2D array) then you can use the Flatten Pixmap VI in All Functions >> Graphics and Sound >> Graphics Format to convert the pixmap to an image data cluster. You can then pass this image data cluster into the Write JPG VI.
    Kileen
    Attachments:
    pic.vi ‏36 KB

  • Solaris MC and Sun Cluster?

    Could someone tell me the relationship between Solaris MC and Sun Cluster?
    Thanks!
    Bill

    Solaris MC is a distributed operating system for
    multi-computers (i.e., clusters of nodes) that provides a
    single-system image: a cluster appears to the user and applications
    as a single computer running the SolarisTM operating system. Solaris
    MC is built as a set of extensions to the base Solaris UNIX � system
    and provides the same ABI/API as Solaris, running unmodified
    applications. The components of Solaris MC are implemented in C++
    through a CORBA-compliant object-oriented system with all new services
    defined by the IDL definition language. Objects communicate through a
    runtime system that borrows from Solaris doors and Spring
    subcontracts. Solaris MC is designed for high availability: if a node
    fails, the remaining nodes remain operational. Solaris MC has a
    distributed caching file system with UNIX consistency semantics,
    based on the Spring virtual memory and file system architecture.
    Process operations are extended across the cluster, including remote
    process execution and a global /proc file system. The external network
    is transparently accessible from any node in the cluster.

  • Printing fields of cluster

    I have to cluster with some fields and necessary to print these fields
    without it is the image of cluster in the screen.

    Do you mean this?
    André
    Message Edited by andre.buurman@carya on 09-04-2007 12:59 AM
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)
    Attachments:
    cluster.PNG ‏3 KB

  • Using values to create a scatter plot in a character array

    Ok, I am fairly new to the language and i am working ona program that will first, get the users input of how many values and the x and y of each value, it will store it into a 2d array and also have the x-squared value and X*Y value. I have all the entry of the data working and the calculation for the line of best fit works correctly.
    What i need help with is, I want to take those values and store them into a character array that will display the points where they belong with a '*'. I also need to make the graph lines on the left and bottom. If the values are less than 10 for the x or y, i need to make them 10. The Y line needs to be rounded to the next highest 10s place if its over 10. I have tried a few things and i realised that it is completly wrong..
    public void graph(int[][] grid, int n)
                int highY = 0;
                for(int x=0;x<n; x++)
                 if (grid[x][1] > highY)
                    highY = grid[x][1];
             char[][] output = new char[n+1][highY+1];
             for(int z=0; z<highY+1; z++)
                 output[z][0]='+';
             for(int w=0; w<n+1; w++)
                 output[n][w]='+';
             int tempx=1; int tempy=1;
             output[tempx][tempy]='*';
             while(tempx<n+1)
                 tempy++;
                 if(tempy==highY+1)
                     tempx++;
                     tempy=0;
                 output[tempx][tempy]='*';
             System.out.println();
               for (int I=0; I<n+1; I++)
                      for (int J=0; J<highY+1; J++)
                          System.out.print(output[I][J]);
                          System.out.println();
    }Grid is the grid of the values, and for the [x][1] is all the Y values going down, [x][0] is the X values. the x would go up to however many values there are. Again, i know the code above is wrong.
    Any thoughts or suggestions would be appreciated. Also, if you need any more info from what i have done please ask.

    Big El,
    I think you can ditch the RGB To Color block, if that's what you're using.
    If I understand your description, what you need to do is use Interleave 1D Arrays to combine your three sine arrays together into one long array. Then use Draw Flattened Pixmap to turn the array into a picture. You can use Bundle By Name to stick your interleaved array into the image data cluster, and also make sure to specify 24-bit image depth and an appropriate bounding box.
    Hope that makes sense,
    John

  • CUCM, Why do we have to install firmware in every CPE?

    Hi people,
    I was wondering, (and I’m sure I DID read), on some CUCM documents that when we upgrade a firmware for a Phone, we have to upgrade the firmware in every CPE (Active Call Manager Node), and on the TFTP server, then do a wide cluster restarts.
    Why does Cisco advise that if there is only a TFTP server and I backup TFTP server that some on the cases even don't run the Call Manager Service?
    Sorry for this question,
    I hope you guys borrow me some of your time, I'll appreciate it!

    Manish is spot on. It is very key to understand that there is a difference between upgrading the firmware for an existing device type and adding a new device type. When upgrading the firmware of an existing device type, you only need to install the firmware cop file on the publisher node and the TFTP nodes. The former so things like Dev Defaults get updated. The latter because the TFTP nodes access their local file repository when serving files.
    You have to restart the TFTP service so that the server can refresh cache. You DO NOT need to load firmware images on cluster nodes that are not running the TFTP service. In larger clusters, it is common to have nodes designated as TFTP only or as media only (or as TFTP + Media, if you walk that line).
    When installing a dev pack, you typically need to update the db schema and update various web (admin/user) files (while accounting for new locales, etc.). Since the installer touches various file system locations, db tables, etc., Cisco opts to go for a UCM reload. Since you have to install dev packs on each server, that leads to the cluster reload scenario.
    -Bill

  • Saving Pattern matching information to an array

    I am using imaqLearnPattern function to create a template image. According the IMAQ documentation, the pattern matching information is "appended" to the image. But when I try to call the imaqImageToArray function on this template image, it does not give me any pattern matching information. Is there any way, that I can save the template data into an array? I do not want to use the imaqWriteVisionFile function because I want the data in an array format and not saved in a file.
    Thanks.

    Normally you cannot save this information without this function. This information saved in *.png file. This format have a possibilities for saving "user data", and this fact used by IMAQ Vision. Theoretically you can extract this information from *.png into array (format of png is a well known format), but what can you do with this information afterwards? You cannot load this information separately without IMAQ Read Image and Vision Info.vi, because (pretty sure) this function allocated memory for Vision Info before loading, but you not able to do this. You can make this only if you know internal representation of IMAQ image in memory. How organized common parameters, such as width, height, pixel pointer, resolution, linewidth - not very complicated (IMAQ Image -
    a cluster of string and pointer to appropriate structure), but where placed vision info - not very easy.
    Better, fastest and easyest way - to use IMAQ Write Image and Vision Info.vi.
    with best regards

  • Problem using 'Picture to Pixmap.vi' on RT target

    I have an application that runs fine from 'My Computer', but not when run on a RT target (PXI-8145 RT).  I narrowed down the difference in performance to Picture to Pixmap.vi (supplied by NI).  When run on the RT target, the 'image data' cluster output contains an empty array for 'image', but returns a properly sized 1d array when run from 'My Computer'.  Is this is a known problem?  Or is there something I can do to fix it?  Thanks.
    -Joe
    LV 8.2.1
    LV-RT 8.2
    cRIO 2.1.4
    RIO FCF 2.2.2
    VISA 4.1
    Attachments:
    draw_circle.vi ‏23 KB

    Picture to Pixmap.vi is not supported on RT. Internally it does a call library node to a function that isn't available on RT. In future versions of LabVIEW RT that VI will be removed from the palette under RT targets and it will break the run arrow if you open a VI with it in an RT context. Unfortunately I don't have an easy workaround other than to try to move that code to a Windows host machine.
    -JRA

  • How do I center a picture in an indicator?

    I have picture data (in this case generated by a draw transfer function subVI) that I would like to display in a picture indicator. The indicator is larger than the actual picture will typically be, and I would like to find a way to center the picture in the indicator. Any thoughts?
    Thanks

    Before you call "Draw flatterned Pixmap.vi" to display the picture, modify the image data cluster, add an offset. The attached vi demonstrates how to add a horizontal offset.
    George Zou
    http://gtoolbox.yeah.net
    George Zou
    http://webspace.webring.com/people/og/gtoolbox
    Attachments:
    test.vi ‏27 KB

  • WCI clustering

    We are doing the WCI clustering similarlu we do fro weblogic where we have two machines, We have clustered two managed servers where first managed server on first machine and second managed server on second machine, after that we have installed and started WCI on both machine and deployed portal and image on cluster. now we redirected the request to cluster via oracle apache http server, We can able access portal console when both managed servers are running but if be bring down the first managed server ( which is on first machine ) then we are getting below error on page -
    "Error - The server has experienced an error. Try again or contact your portal administrator if you continue experiencing problems. "
    Any help on this will be really appreciated.
    Thanks.

    Hi Mukesh;
    I am new to WCI and have few questions regarding general WCI setup. My Setup Includes: 1 AdminServer, and 2 Managed Servers all on the same box. Users need to access the portal app via Apache web server.
    1. Should I deploy portal.ear on the clustered Managed Servers or AdminServer or all servers?
    2. How do you administer portal.ear application?
    3. Will apache setup for portal cluster be similar to one for a weblogic eg: WLCluster = xyz:7001,abc:7002?
    4. What is the diff between WCI Administrative Portal Vs Portal which users would access on managed servers only?
    Thanks
    Aattish
    Edited by: user13293215 on Jun 14, 2010 4:34 PM

  • Cluster not saved correctly in Append Control Image to Report VI

    [LV8 with Windows XP]
    I'm using the Append Control Image to Report VI to save the image of a control to Word (the same problem occurs if I save to Excel). This VI seems to work fine with all my controls except clusters. Not all of the contents of the cluster show up in the saved image. I have to expand the edges of the cluster way beyond the cluster contents in order for all the contents to show up in the saved image. Is this a bug? Is there a way to "realign" the contents of the cluster within the boundaries?
    George

    Hi,
    just had a customer with the problem with this cluster picture function and I wrote a little VI that manually gets the picture, resizes it to the cluster and the rest is up to you. The only thing is, that you have to place the "zero point" of the frontpanel in the upper left corner to get the proper image.
    For Users who want to upgrade: This issue is fixed with the next LabVIEW release.
    Best Regards,
     Andreas Pistek
    ~~~ Logic is a systematic method of coming to the wrong conclusion with confidence ~~~
    Attachments:
    better picture.vi ‏19 KB

Maybe you are looking for

  • Why can't my Airport express be found by the airport utility?

    Why can't my airport express be seen by the airport utility?

  • Connecting usb to networked printer

    Officejet Pro Plus 8600,  Win 7 HP Printer works very well networked.  How can I connect a USB cable to use the USB  port without the printer defaulting to USB connection?

  • Acceptaing a variable with a quote in it

    Hi Guys, searched quite a bit but couldn't really find what I need. I have a sql report generated from a simple query where the user can type in what they need, I accept the parameter and generate the report, here is teh simple form for this question

  • Error Message "the system cannot find the specified file"

    Hi, I built my website with iWeb, but when I want to publish it on my own domain (not .mac) I've always this error message (the system cannot find the specified file) with many files. I've tryed many ftp host but I still have the same problem. I ask

  • Web Services with Attachments

    Hello, I need to consume a web service with attachements (mime type) from sap was j2ee 7.0 (nw2004s). Unfortunately, we have not been able to find any SAP documentation (online help, oss note,,,) describing if SAP WAS Java 7.0 supports this standard,