Code snippet problem: creates wrong snippet

I had a small code example and then created two subVIs from the example.  When this was done there was some cleaning up of the sub VI code that had to be done where I mostly cleaned up some pathways and labelling for clarity.  Then I selected the code on the block diagram of the sub VIs (one at a time) and created a code snippet of the new code on the block diagram.   The code snippet shows a png file of the original code!  I thought I forgot to save the file or some such nonsense and went back into the sub VIs and brought them back up and saw that the block diagram had all the changes that I incorporated!  I saved everything again and restarted my LabVIEW 2009 software and created another code snippet:  still the original block diagram is saved to the snippet and I cannot even see that block diagram anymore.  In desparation I made everything into a small project and tried again to no avail.
Am I dealing with a bug?

hounddog wrote:
It is a small snippet and it does contain property nodes, a local variable and semaphores to demonstrate resource sharing.
Egads!  I just realized that a code snippet does not do what I thought!  I really thought that a snippet was a png screenshot, but the IDE is doing more than that.  It seems that it is trying to show much more than a simple screen shot!  This does seem like a strange thing to do unless I can embed a snippet of code into another VI and actually run it - is that the case?
Yes just drag it into a diagram.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Code snippet to create SOAPElement

    i need to write a code snippet for creating the below SOAPElement
    <tag:resourceName>ABC</tag:resourceName>
    <tag:encodingFormat>?</tag:encodingFormat>
    <tag:ruleName>?</tag:ruleName>
    <tag:IdType>?</tag:IdType>
    <tag:allocationType>?</tag:allocationType>
    <tag:quantity>?</tag:quantity>
    <tag:filterValue>?</tag:filterValue>
    I am new to Webservices.
    Please help

    This link http://download.oracle.com/javaee/1.4/tutorial/doc/SAAJ3.html is the 4th hit on google for "java tutorial soapelement".

  • Posterous blog HTML Snippet problem - not all of blog is showing up...

    Good morning all! So I was looking for a solution for our newly formed website (I'm a novice) where I could have multiple users update our blog page without having to use iWeb to do it. I read up on Posterous and it appears this would be an ideal solution. So I found some code from another Apple Discussions poster, Alancito, that would pull my Posterous blog directly into the iWeb page I created. Well it has done that, sort of...
    I see the header from the blog, but the content isn't visable. Well, actually if you highlight the header or "blog differently" and then hold down like you're scrolling down the page, the info is there. But the HTML snippet always cuts it off. Even if I expand the size of the snippet in iWeb, it ALWAYS reverts back to this same size.
    I'm in a bind here and could really use some help.
    Here's the blog page address: http://www.sporkfoodwagon.com/SporkFoodWagon/Blog.html
    And here's the code I was provided.
    <iframe height="100%" allow transparency="true" frameborder="0" scrolling="no" style="width:100%;border=none" src="http://sporkfoodwagon.posterous.com/"></iframe>
    Message was edited by: andrewrichardson

    Andrew ~ Perhaps someone will suggest a solution to the HTML Snippet problem, but meanwhile, with this recent improvement to Posterous:
    http://blog.posterous.com/posterous-unveils-pages
    ...perhaps you don't need an iWeb site at all. If you must have one, consider linking to your Posterous blog directly from iWeb's navigation bar:
    Create a blank internal page titled "Blog" (actually you can name the page whatever you want.) Then in that Blog page add an HTML Snippet with the following code:
    <script type="text/javascript">
    parent.window.location = "http://www.yourblogname.com"; // change this to your own URL
    </script>
    ...Once published, clicking on "Blog" in the navbar will immediately redirect to your external Blog page. (Thanks to Cyclosaurus for the code).
    And to return from Posterous back to your iWeb site:
    http://blog.posterous.com/pages-20-add-links-to-your-sidebar

  • Inserting Script code into HTML - possibly using snippets?

    I am using Robohelp 7 and I need to insert some tracking script code into the HTML.
    The location needs to be right before the body close code.
    I have multiple pages and would love to use a snippet so that it would be easy to update as necessary.
    When I create the snippet code and drop it on the design page, it shows the code.
    I cannot get it to drop into the HTML.  Any suggestions?
    If it can't be done with snippets, is there a way to mass import code into the HTML of ALL pages?  I'm talking hundreds of pages.

    Hi there
    I doubt you will want to use snippets for this. Why? Well, if you use Snippets, you will need to edit all your pages so they include the snippet!
    So here's how I might approach it.
    Open the Project Set-up pod. Create a Topic Template. Inside the Template, add a Footer. Insert the script into the footer. Save the template and apply it to all your topics. You do this by selecting all topics in the Topic List pod, right-clicking them and choosing the Template. Whoosh! The template is associated and all topics now have a footer (with the script inside).
    Hopefully this helps... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • RoboHTML 7.0 Snippet Problem

    I have added a two Snippets to a project. After viewing the
    Snippets in the viewer, they no longer show up as greyed out text.
    Their space is a single empy line. And the Snippet pod shows no
    Snippets. They are in the code and show up in the viewer, but not
    in the topic window.
    If I add additional Snippets, they will appear in the Snippet
    pod until I close the project. Re-opening the project will again
    show "no snippets".
    It appears that the Snippet gathering process or some Snippet
    control file is messed up. Any ideas?

    Yes, I'm running RoboHTML locally.
    I think this issue was caused by a RoboHTML hang-up/abend
    while I was working with the Snippets. The samples work fine. And I
    am unable to reproduce the problem.
    The RoboHTML abends are now of concern. I had another one on
    Monday, 12/3 while reconstructing the project with the "broken
    snippets". That's my next forum post.
    It appears that Snippets are handled internally a lot like
    Links. That is, if I import a Topic with a Snippet, the Topic
    retains a filename reference to the Snippet. Does it manifest as a
    Broken Link? If the Snippet is not Imported, how is this flagged?
    How can I delete the Snippet reference? It appears that Snippets
    should only be manipulated from the Snippet Pod methods, and it is
    not there.

  • Snippet to create Script Tag

    I have created a number of snippets in CFBuilder Beta, but one will not work for me is a snippet to add an empty JavaScript tag.  Here is the code that I am trying to put into a snippet:
         Start Block:
         <script type="text/javascript">
       // <![CDATA[
         End Block:
        // ]]>
         </script>
    When I create this snippet and save it, it immediately ends up containing the content from another snippet, and not the content that I just entered.

    I have created a number of snippets in CFBuilder Beta, but one will not work for me is a snippet to add an empty JavaScript tag.  Here is the code that I am trying to put into a snippet:
         Start Block:
         <script type="text/javascript">
       // <![CDATA[
         End Block:
        // ]]>
         </script>
    When I create this snippet and save it, it immediately ends up containing the content from another snippet, and not the content that I just entered.

  • Problem creating Allocation Table with Reference to a PO

    Dear Folks,
    I am having problems creating an allocation table with reference to a PO in T-code WA01.
    I read the SAP help that some prerequisites need to exist:
    ==> You can only reference order items flagged as being relevant to a stock split (the Allocation table relevant indicator in the additional item data).
    Can anyone advice me where to find this stock split indicator?
    Also, can anyone advice me how to reuse an allocation table? For example, I had previously created an allocation table with many articles and various allocation rules. I already generated follow on documents for this table.
    Say after 2 weeks, I have the similar requirements that I can make use of the same table, only with minor adjustments to the quantity. How do I create a new allocation table using the existing allocation table data?
    Thanks and Regards
    Junwen

    Any idea please?
    thanks

  • Problem creating hierarchy based on 2 physical dimension tables

    I'm having a problem creating 1 logical dimension with a drill-down hierarchy, based on two separate physical dimension tables. The errors I receive when navigating the drill-down hierarchy is:
    "Cannot find logical table source coverage for logical columns" &
    "Missing join between logical tables".
    I'm using OBIEE 10.1.3.4
    Here are the details of what I have setup sofar:
    Physical layer:
    Dimension table DIM_ORG with columns:
    -dimension_key
    -org_total_code
    -org_total_description
    -org_detail_code
    -org_detail_description
    Dimension table DIM_DEPT with columns:
    -dimension_key
    -dept_total_code
    -dept_total_description
    -dept_detail_code
    -dept_detail_description
    Fact table FACT_SALES with columns:
    -fk_org
    -fk_dept
    -sum_sales
    Physical Joins:
    FACT_SALES.fk_org = DIM_ORG_dimension_key
    FACT_SALES.fl_dept = DIM_DEPT.dimension_key
    Business Model & Mapping layer:
    I created a logical dimension ORG_DEPT. It contains two logical table sources (DIM_ORG & DIM_DEPT) and the following logical columns:
    - All Departments (mapped to dept_total_code)
    - Organisation (mapped to org_detail_description)
    - Organisation Number (mapped to org_detail_code)
    - Department (mapped to dept_detail_description)
    - Department Code (mapped to dept_detail_code)
    The business logical key is based on the combination of Organisation Number & Department Code
    The hierarchy I need is: All Departments -> Organisation -> Department so I created the following hierarchy for ORG_DEPT:
    - Total Level containing: All Departments
    - Organisation Level containing: Organisation Number (defined as the Logical level key) & Organisation (defined als the Drill level key)
    - Detail Department Level containing: Department Code (defined as Logical level key) and Department (defined as Drill level key).
    In the LTS of the dimension ORG_DEPT I've set the Content levels for the sources:
    DIM_ORG : Organisation Level
    DIM_DEPT: Detail Department Level
    In the LTS no -inner- joins have been added against related physical tables.
    I created a logical fact table SALES (based on the physical fact table) and joined it against the logical dimension table ORG_DEPT.
    In the LTS the Content level for ORG_DEPT is set against the Detail Department Level. No - inner- joins have been aded against related physical tables.
    When I create a report in Answers to test the hierachy and select only 'All Departments' I get the correct dimension value returned. When I try to drill to the next level I get the following ODBC error:
    "Cannot find logical table source coverage for logical columns: [All Departments]. Please check more detailed level keys are mapped correctly".
    When I create a report in Answers and select both 'All Departments' and 'Sales' I get the correct result. When I try to drill to the next level I get a different ODBC error:
    "Missing join between logical tables DIM_DEPT and DIM_DEPT: There must be at least one physical join link between the underlying physical tables".
    Any suggestions are welcome!
    Thanks!

    Hello Robert,
    Your suggestions were known to me but I still wanted to combine the two physical dimension tables in one logical dimension. So I've played around a bit more and found the solution: In my original setup I had two seperate logical table sources (one for each physical dimension table). The solution was to combine the two logical table sources in one logical table source. I achieved that by logical joining the DIM_DEPT table to the FACT_SALES table and subsequently to the DIM_ORG within the 1 LTS and using inner joins.
    Then I created the logical table key (a combination of org_detail_code & dept_detail_code). After that I could create the hierarchy with no problem.
    Edited by: The_Dutchman on Nov 4, 2011 9:43 PM

  • Problem creating transactional iview for BW system

    Hi gurus
    We are facing one problem creating a transactional iview for a BW 3.5 system . We wanto to call transaction SU01 in our BW system using an iview. When we use SAP for html, we have all the menu on the iview , I mean the same result as if we use smen, not SU01.
    And if we use SAP GUI , we are always having the same GUI Error
    Sapgui 640 [Build 8986] Wed Apr 01 12:25:05 2009
    : 'service '' unknown
    Time          Wed Apr 01 12:25:03 2009
    Component     NI (network interface)
    Release          640
    Version          37
    Module          ninti.c
    Line          505
    Method          NiPGetServByName2: service '' not found
    Return Code     -3
    System Call     getservbyname_r
    Counter          1
    Please, can you help us?
    Thanks in advance and best regards.

    Thanks Bala for your quick reply. I´ve tried with function module RSBB_URL_PREFIX_GET  and all the settings were OK. Still the same result.
    Adding more information. We have another WAS 6.40 server with different Module(we have RM and XRPM , not BW) and we are having the same problems. I am wondering if its related with some special config or activation 
    Maybe  I´ve forgot some service activation in SICF? I´m able to reach the SMEN, but not the SU01
    or I´m missing some config elsewhere?
    Thanks in advance.
    Best regards.
    Edited by: Jose Ignacio Arlandis on Apr 2, 2009 8:41 AM

  • Problems creating invoice from order (DI API and SBO)

    Hello all!
    I´m getting various tax problems using the following code to automatically create invoices from existing orders.
    For Each currentKey In arrABEntrys
      objInv = objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
      objAB.GetByKey(currentKey)
      objInv.CardCode = objAB.CardCode
      With objInv.Lines
        .BaseType = SAPbobsCOM.BoObjectTypes.oOrders
        .BaseEntry = currentKey
        .BaseLine = 0
        For i = 1 To objAB.Lines.Count - 1
          objInv.Lines.Add()
          BaseType = SAPbobsCOM.BoObjectTypes.oOrders
          .BaseEntry = currentKey
          .BaseLine = i
        Next
      End With
    If objInv.Add() = 0 Then
    Else
    End if
    The result of objInv.add() was first "5002 - 'Tax Definition (1)' (a very informative message to me).
    Then I checked my admin tax settings and put a check on "EU".
    The next time the result was "10 - Customer´s tax ID not defined OINV.LicTradNum"
    Actually, I don´t want to pre-set any fields in the invoice, because the order looks complete to me.
    By the way: The error occurs in SBO, too.
    Thanks for help in advance!
    Best regards
    Marian

    Hi Marian,
    Your Error "10 - Customer´s tax ID not defined OINV.LicTradNum" is not working (through DI and in SBO)
    occurs because your "Federal Tax ID" is not set up against the Business Partner. (This is on the main page of the Business Master Data Screen).
    Set this up and it will work in SBO and the DI API!

  • T-code CO01 to create Production order:error message "No routing found"?

    I use t-code CO01 to create Production order.At the first screen I select material 72 and plant HJW1 .At the Header creen,I input the data in the General tab and press return but the sap show the error message "No routing found".But I have create the routing for the material 72 and plant HJW1.I don't know why the sap found no routing.So my question was how to found the reason about why the sap can not found the routing and how to resolve this problem.Thank you.

    Hi,
    Probably you would have created the routing today, with valid from todays date. But the order you are creating may be with start date in past and system is not able to find and valid routing for the day.
    I would suggest you to remove both the Basic "Start" and "End" and change the scheduling type to "Current date Scheduling", now enter. If system still not finding the routing, use the function "Read PP Master data".
    Regards,
    Prasobh

  • Error code 10 at create folder

    i am developing a vi in which i have to create a folder in any drive(e.g D:\dataacquisition) than in data acquisition folder, i have to create date folder and name folder and then we need to create some files e.g patient's information, and like this different files in the name folder, i have shown this in attached vi, now the problem is this that when i run the vi for the first time when no folder has been made it runs ok with no error, but when i again run the vi with different patient name it shows Error code 10 at create folder, i know this error is because the same folder is already present, but the problem is this that when an error comes the new patient's folder is not created, i have tried several things but not able to avoid or remove this error, is there any way to remove this error or if there is any other option of creating folder in LabVIEW.
    I am attaching the vi.
    Solved!
    Go to Solution.
    Attachments:
    create folder.vi ‏14 KB

    Thanks to every one, your suggestions helped me in solving my problem, although my problem is solved but i am having some more question
    To P Anand
    There is two ways you can do.
    You can create the folder along with a time stamp including seconds so that your folders will be new always otherwise before creating the folder check whether it is already created or not. If already created skip the create folder function else create it.
    Answer-Thankyou,for your suggestion, I tried Creating folder with timestamp including seconds, but it then shows error 1 which i think is formatting error, and yes the other option works well, by using the check if folder function vi works well.
    FreeLance V
    Thanks your vi works well, but now i am having 1 more question 
    I have also found 1 more other than check if folder exists by which error 10 is avoided but in that case name should be different, now what i want is when suppose i enter the same name in the suppose i want folder with name 'a' to be created and that folder is already present than what i am trying is that labview should ask weather you want to replace existing folder,or you want to delete,or you want to keep both files, delete and replace is easy to implement but although i am trying but if anyone knows the way that how we can keep both the files than that would be great help.
    i am attaching the vi which is not complete yet, i am trying to implement some more extra points like keeping both the same files or if i want to replace.
    Attachments:
    create folder.vi ‏42 KB

  • Problem creating  image from a data vector

    Hello i have a problem in this aplication.
    I get a image from a web cam. I want to put the original image in a file and the negative image in another file (in this example is not the negative image, is just a white image). The problem is when i use setData method. The image become black. If I use setFormat method the new image is the original image.
    Here is the code with problems:
    imageBuffer = frameGrabbingControl.grabFrame();
    theData = new int[dataLength];
    theData = (int[]) imageBuffer.getData();
    for (int y = 0; y < videoHeight - imageScanSkip; y+=imageScanSkip) {
    for (int x = 1; x < videoWidth - imageScanSkip; x+=imageScanSkip)
    theData[y*videoWidth+x]=Integer.parseInt("FFFFFF",16);
    Buffer b1=new Buffer(); //This is the new buffer in which i want to put the new pic
    b1.setData(theData);
    //here i create the 2 files frst from the original buffer and second from the new buffer b1
    Image img = (new BufferToImage((VideoFormat)imageBuffer.getFormat()).createImage(imageBuffer));
    Image img1 = (new BufferToImage((VideoFormat)b1.getFormat()).createImage(b1));
    BufferedImage buffImg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
    BufferedImage buffImg1 = new BufferedImage(320,240, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = buffImg.createGraphics();
    Graphics2D g1 = buffImg1.createGraphics();
    g.drawImage(img, null, null);
    g1.drawImage(img1, null, null);
    try{
    ImageIO.write(buffImg, "jpg", new File("c:\\webcam.jpg"));
    ImageIO.write(buffImg1, "jpg", new File("c:\\webcam1.jpg"));
    catch (Exception e){}
    the webcam1.jpg file is black(it should be white).
    If i put "b1.setFormat(imageBuffer.getFormat());" the webcam1.jpg will be same the file as webcam.jpg

    Hello i have a problem in this aplication.
    I get a image from a web cam. I want to put the original image in a file and the negative image in another file (in this example is not the negative image, is just a white image). The problem is when i use setData method. The image become black. If I use setFormat method the new image is the original image.
    Here is the code with problems:
    imageBuffer = frameGrabbingControl.grabFrame();
    theData = new int[dataLength];
    theData = (int[]) imageBuffer.getData();
    for (int y = 0; y < videoHeight - imageScanSkip; y+=imageScanSkip) {
    for (int x = 1; x < videoWidth - imageScanSkip; x+=imageScanSkip)
    theData[y*videoWidth+x]=Integer.parseInt("FFFFFF",16);
    Buffer b1=new Buffer(); //This is the new buffer in which i want to put the new pic
    b1.setData(theData);
    //here i create the 2 files frst from the original buffer and second from the new buffer b1
    Image img = (new BufferToImage((VideoFormat)imageBuffer.getFormat()).createImage(imageBuffer));
    Image img1 = (new BufferToImage((VideoFormat)b1.getFormat()).createImage(b1));
    BufferedImage buffImg = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
    BufferedImage buffImg1 = new BufferedImage(320,240, BufferedImage.TYPE_INT_RGB);
    Graphics2D g = buffImg.createGraphics();
    Graphics2D g1 = buffImg1.createGraphics();
    g.drawImage(img, null, null);
    g1.drawImage(img1, null, null);
    try{
    ImageIO.write(buffImg, "jpg", new File("c:\\webcam.jpg"));
    ImageIO.write(buffImg1, "jpg", new File("c:\\webcam1.jpg"));
    catch (Exception e){}
    the webcam1.jpg file is black(it should be white).
    If i put "b1.setFormat(imageBuffer.getFormat());" the webcam1.jpg will be same the file as webcam.jpg

  • Problem creating a binarize image

    Hi,
    I have a problem creating a binarized image.
    I have an java.awt.Image from Twain (with the Morena Framework) I have to compressing with COMPRESSION_GROUP4. Before I must obtain a binarized RenderedImage.
    Before I have need of one single-band image.
    With this code I succeed to obtain a single-band image but for acquired images with 100 dpi resolution only and moreover images have inverted colors.
    How I can obtain single-band images with resolution larger than 100 dpi?
    public static RenderedImage binarizer(RenderedImage img){
            double[][] matrix = {{ 1.0 , 1.0 , 1.0 , 0.0}};
            ParameterBlock pb1 = new ParameterBlock();
            pb1.addSource(img);
            pb1.add(matrix);
            RenderedImage bandCombinedImage = JAI.create("bandcombine",pb1);
            RenderedImage binarizedImg = JAI.create("binarize", bandCombinedImage, new Double(1));
            return binarizedImg;
    //..

    OK it seems no one can help, so I'll try a different question;
    The reason I want to create an encrypted disk image is because I've been everywhere on the 'net' and cant find out how to password protect a folder on my Mac.
    This seems like something that should be very straight forward, but for the life of me I cant find what I'm looking for. Every post I read refers to creating an encrypted disk image, or playing with folder permissions - non of which actually achieve the desired result.
    Surely its not that hard create a folder that requires a password to be viewed??

  • Hi,  We use a Mac os window. How can we get Adobe error code 16 problems in premier cs5. Before 6 da

    Hi,
    We use a Mac os window. How can we get Adobe error code 16 problems in premier cs5. Before 6 days premier does not loaded a Audio.
    please help me.

    I think you are posting to the wrong forum.  I'd post this in the Premier forum: http://forums.adobe.com/community/premiere/premierepro_current
    -Carl V.

Maybe you are looking for

  • Solution for Windows PCs not showing up in Finder

    Hello guys, after fiddling around with the networking between Windows and Leopard I just wanted to share my solution with you. In my home network, there are three computers: One Vista machine, one XP machine and my MacBook. I found out that the Windo

  • Iphoto not opening in mac os 10.5.8

    Hi, I am getting the below error when opening the iphoto: please help !! Process:         iPhoto [2096] Path:            /Applications/iPhoto.app/Contents/MacOS/iPhoto Identifier:      com.apple.iPhoto Version:         7.1.5 (7.1.5) Build Info:     

  • Apple TV won't play music from one device via Home Sharing.

    So I have just bought a new Mac, with which I got an Apple TV. I'm trying to save disk space on my Mac so I've setup my old computer (with my old iTunes library) as a Home Sharing hub kind of thing. However, the Apple TV seems not to want to play mus

  • Error creating incoming payment. (ODBC -2035)

    The error that I get while creating an incoming payment is: This entry already exists in the following tables (ODBC -2035) Here is the code: public static bool CreatePayment()        DateTime now = DateTime.Now;        Payments pmt = (Payments) m_com

  • Creating table on production database

    Hi expert I want some real time knowledge If a user requested create a table on production database where DBA a should contact 1st. form where dba get approval for create table. Thanks & Regards Sanat