Linking graphical objects

Hello
In my application, I have a double loop, over parameters x and y. I have a subVI that implements the y loop for one value of x. In that subVI, I have a real time plot that shows the quantity being measured as a function of x and y. I wish to "link" this plot upwards into the front panel which calls that subVI. Is this possible ?
If I place this realtime plot in the front panel, it won't be real time anymore - I would have to wait for the y loop to complete in that subVI in order to update the results.
Thanks.

Here's an example that will hopefully explain a little bit better. The main VI passes a reference to a chart on it's front panel. The subVI has a control reference as an input and writes to a value property node of the reference. When you run the main, as the subVI runs, you will see the chart update. Note that you do not have to have a chart in the subVI or wire a vale returned from the subVI to the indicator in the main. Having either is optional. There are shipping examples of control references tha you may also want to look at.
Attachments:
Main VI with reference.llb ‏26 KB

Similar Messages

  • Table linking graphics object to a smartform

    Hello,
    We are changing logos/ bitmap images that contains our address ( because we are moving to another place).
    Is anyone aware of a table that links the graphics object to a smartform?  For eg, All the texts in a smartform is available in table STXFTX. This helps to have a where used list kind of report.
    We are not able to find that can give us a hwere used list of graphic objects loaded via se78.
    If anyone could give some pointers, that owuldbe of great help.
    Thanks
    Ganesh.S

    You would need to scan the source code for each of your generated function modules.  The graphics calls are directly embedded in the generated code and are called at runtime via function SSFCOMP_PRINT_GRAPHIC.  Check one of your functions and you will see how this works.

  • Question on Graphics Object

    Dear all,
    A Graphics object draw on some surface. It would be appreciated if anyone could explain to me which surface is the Graphics object is drawn on? How to determine? How to change it?
    Many thanks!
    Francis

    Hello,
    A graphics object is a graphic context : Every objects where you can draw something can be associated to a Graphics object.
    For example, an image, an paper of a printer can have a Graphics abject.
    Graphics contains graphical objects like in ps.
    See Graphics objects as links.

  • Linked graphic reverses to its original size in alternate layout

    Hi, I'm using “Create Alternate Layout” function to export different orientations as well as sizes for my book. However, I’ve encountered problem keeping the graphic (size) inserted in the text frames as it is: the linked graphic in my second layout was resized to better fit the new layout, and I’ve checked every item in “preserve local edits while updating object links”; the graphic is, however, inserted in the threaded text frames (meaning it’s not a single object) in order to keep the text flow. My question is, every time I have updated the contents, the linked graphic in my second layout reverses to its original size. How can I fix this?

    I have exactly the same problem. The main photo in my (14) alternate layouts resizes whenever I adjust the size of the photo on the original layout, despite my having checked off all and/or a combination of 'preserve local edits' options in the link options dialogue.
    I could just place the photo (unlinked from the original layout) into all of my alternate layouts, but life would be easier if Indesign honored the 'preserve local edits' rules I established initially.
    What's up with that?

  • Open as linked smart object

    Hello,
    iam looking for a solution to open files in a folder
    and copy then into a document.
    Its working good, but i need the files to be linked smart object.
    Anyone knows a solution ?
    Here my Code so far:
    See in line 33. Convert to smart object: ?
    var file = new File('C:/User_MY PATH.PSD'),
    docRef = open(file);
    // Use the path to the application and append the samples folder
    var samplesFolder = Folder('C:/USERS_MY FOLDER');
    //Get all the files in the folder
    var fileList = samplesFolder.getFiles()
      // open each file
      for (var i = 0; i < fileList.length; i++)
      // The fileList is folders and files so open only files
      if (fileList[i]instanceof File)
      open(fileList[i])
      // use the document name for the layer name in the merged document
      var activeDocName = app.activeDocument.name;
      var targetDocName = activeDocName.substring(0, activeDocName.lastIndexOf("."));
      // Copy the Document
      app.activeDocument.selection.selectAll()
      //convertToSmartObject(); THIS ISNT WORKING - CONVERT IT ?
      app.activeDocument.selection.copy()
      // don’t save anything we did
      app.activeDocument.close(SaveOptions.DONOTSAVECHANGES)
      //Select specific layer to paste the copy, this is to make sure the layers are in a specific position
      var doc = app.activeDocument;
      doc.activeLayer = doc.artLayers.getByName("bgr");
      //Paste Document
      app.activeDocument.paste()
      app.activeDocument.activeLayer.name = targetDocName

    Use scriptlistener:
    var idPlc = charIDToTypeID( "Plc " );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc2.putPath( idnull, new File( "C:\\Photos\\myPhoto.psd" ) );
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc2.putBoolean( idLnkd, true );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc2.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc3 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc3.putUnitDouble( idHrzn, idPxl, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc3.putUnitDouble( idVrtc, idPxl, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc2.putObject( idOfst, idOfst, desc3 );
    executeAction( idPlc, desc2, DialogModes.NO );

  • How to change font/ font color etc in a graphic object using JCombobox?

    Hello
    My program im writing recently is a small tiny application which can change fonts, font sizes, font colors and background color of the graphics object containing some strings. Im planning to use Jcomboboxes for all those 4 ideas in implementing those functions. Somehow it doesnt work! Any help would be grateful.
    So currently what ive done so far is that: Im using two classes to implement the whole program. One class is the main class which contains the GUI with its components (Jcomboboxes etc..) and the other class is a class extending JPanel which does all the drawing. Therefore it contains a graphics object in that class which draws the string. However what i want it to do is using jcombobox which should contain alit of all fonts available/ font sizes/ colors etc. When i scroll through the lists and click the one item i want - the graphics object properties (font sizes/ color etc) should change as a result.
    What ive gt so far is implemented the jcomboboxes in place. Problem is i cant get the font to change once selecting an item form it.
    Another problem is that to set the color of font - i need to use it with a graphics object in the paintcomponent method. In this case i dnt want to create several diff paint.. method with different property settings (font/ size/ color)
    Below is my code; perhaps you'll understand more looking at code.
    public class main...
    Color[] Colors = {Color.BLUE, Color.RED, Color.GREEN};
            ColorList = new JComboBox(Colors);
    ColorList.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ev) {
                     JComboBox cb = (JComboBox)ev.getSource();
                    Color colorType = (Color)cb.getSelectedItem();
                    drawingBoard.setBackground(colorType);
              });;1) providing the GUI is correctly implemented with components
    2) Combobox stores the colors in an array
    3) ActionListener should do following job: (but cant get it right - that is where my problem is)
    - once selected the item (color/ font size etc... as i would have similar methods for each) i want, it should pass the item into the drawingboard class (JPanel) and then this class should do the job.
    public class DrawingBoard extends JPanel {
           private String message;
           public DrawingBoard() {
                  setBackground(Color.white);
                  Font font = new Font("Serif", Font.PLAIN, fontSize);
                  setFont(font);
                  message = "";
           public void setMessage(String m) {
                message = m;
                repaint();
           public void paintComponent(Graphics g) {
                  super.paintComponent(g);
                  //setBackground(Color.RED);
                  Graphics2D g2 = (Graphics2D) g;
                  g2.setRenderingHint             
                  g2.drawString(message, 50, 50);
           public void settingFont(String font) {
                //not sure how to implement this?                          //Jcombobox should pass an item to this
                                   //it should match against all known fonts in system then set that font to the graphics
          private void settingFontSize(Graphics g, int f) {
                         //same probelm with above..              
          public void setBackgroundColor(Color c) {
               setBackground(c);
               repaint(); // still not sure if this done corretly.
          public void setFontColor(Color c) {
                    //not sure how to do this part aswell.
                   //i know a method " g.setColor(c)" exist but i need to use a graphics object - and to do that i need to pass it in (then it will cause some confusion in the main class (previous code)
           My problems have been highlighted in the comments of code above.
    Any help will be much appreciated thanks!!!

    It is the completely correct code
    I hope that's what you need
    Just put DrawingBoard into JFrame and run
    Good luck!
    public class DrawingBoard extends JPanel implements ActionListener{
         private String message = "message";
         private Font font = new Font("Serif", Font.PLAIN, 10);
         private Color color = Color.RED;
         private Color bg = Color.WHITE;
         private int size = 10;
         public DrawingBoard(){
              JComboBox cbFont = new JComboBox(GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames());
              cbFont.setActionCommand("font");
              JComboBox cbSize = new JComboBox(new Integer[]{new Integer(14), new Integer(13)});
              cbSize.setActionCommand("size");
              JComboBox cbColor = new JComboBox(new Color[]{Color.BLUE, Color.RED, Color.GREEN});
              cbColor.setActionCommand("color");
              JComboBox cbBG = new JComboBox(new Color[]{Color.BLUE, Color.RED, Color.GREEN});
              cbBG.setActionCommand("bg");
              add(cbFont);
              cbFont.addActionListener(this);
              add(cbSize);
              cbSize.addActionListener(this);
              add(cbColor);
              cbColor.addActionListener(this);
              add(cbBG);
              cbBG.addActionListener(this);
         public void setMessage(String m){
              message = m;
              repaint();
         protected void paintComponent(Graphics g){
              super.paintComponent(g);
              Graphics2D g2 = (Graphics2D)g;
              g2.setColor(bg);//set background color
              g2.fillRect(0,0, getWidth(), getHeight());          
              g2.setColor(color);//set text color
              FontRenderContext frc = g2.getFontRenderContext();
              TextLayout tl = new TextLayout(message,font,frc);//set font and message
              AffineTransform at = new AffineTransform();
              at.setToTranslation(getWidth()/2-tl.getBounds().getWidth()/2,
                        getWidth()/2 + tl.getBounds().getHeight()/2);//set text at center of panel
              g2.fill(tl.getOutline(at));
         public void actionPerformed(ActionEvent e){
              JComboBox cb = (JComboBox)e.getSource();
              if (e.getActionCommand().equals("font")){
                   font = new Font(cb.getSelectedItem().toString(), Font.PLAIN, size);
              }else if (e.getActionCommand().equals("size")){
                   size = ((Integer)cb.getSelectedItem()).intValue();
              }else if (e.getActionCommand().equals("color")){
                   color = (Color)cb.getSelectedItem();
              }else if (e.getActionCommand().equals("bg")){
                   bg = (Color)cb.getSelectedItem();
              repaint();
    }

  • Button Link to Object Standard.

    Dear All.,
    Now I have a problem with button link to object stanbard (17 is Sale order object).
    I have to use button link and Editbox on the new form, then I set button link to this editbox and set LinkedObject=17 in screen painter. I have run this form i select Sale Order document Number on this Editbox and i click button link to sale order that show data following my selected.. but it can't not open sale order and alert message "You are not permitted to perform this action [Message 200-30]".. so how can i set permitted to perform this action. pls help me...
    Thanks,
    Sivhour.

    Hi Prasan,
    Authorizations are set in under the Administration  System Initialization  Authorization  General Authorization.
    Regards,
    Vítor Vieira

  • Linked Smart Objects

    When you send a PS file which has a linked Smart Object to a print vendor, will you need to send the linked Smart Object file as well?

    That's what I was afraid of. As a print vendor AND a designer I'm concerned that word has not gotten out that linked objects will need to accompany the file and we will end up dead in the water when we need to open up a photoshop file with a linked smart object. This is a relatively new problem for Photoshop, although InDesign and even many Illustrator users know that links need to be sent. In fact, we're seeing the opposite trend in InDesign, where artists are embedding artwork in their InDesign file rather than linking, which has both pluses and minuses.
    Thanks!

  • Layer Comps should capture changes to a Linked Smart Object's Layer Comp

    Normally, I can move things around or change visibility, and use Layer Comps in my master doc to capture these changes.
    However, changing which Layer Comp displays from a Linked Smart Object cannot be captured by Layer Comps in my master doc.
    Slightly more information: Sorry it's a little convoluted. I have several Linked Smart Objects inside a master doc, and these Smart Objects contain different Layer Comps. It's awesome that I can easily change which Layer Comp each Smart Object displays. But when I make a change, it cascades across the Layer Comps in my master doc. So my master doc's Layer Comps cannot effectively capture a state.
    It would be awesome if Layer Comps were able to capture state changes for the display of Linked Smart Object's Layer Comps. #featurerequest

    Photoshop Feature Requests should be posted over at
    Photoshop Family Customer Community
    But before posting one look around whether one exists already on this issue and add your +1 if it does.

  • Can you replace embedded smart object with linked smart object?

    Hi,
    I'd like to update some document to reflet the new workflow that linked smart object provide. I have made some transformation on those embedded smart object and would like to not have to redo all those so is there anyway way to replace those SO with the linked version of the same SO?
    TIA
    Jeff

    Hi,
    I'd like to update some document to reflet the new workflow that linked smart object provide. I have made some transformation on those embedded smart object and would like to not have to redo all those so is there anyway way to replace those SO with the linked version of the same SO?
    TIA
    Jeff

  • Convert an embedded smart object to a linked smart object

    Hey guys,
    love the new "linked smart object" functionality. However, I can not figure out how I can convert (or export) an existing embedded smart object to a linked smart object.
    I have a huge photoshop file with several embedded smart objects that I would like to break down into a lightweigt photoshop with with links to the varios smart object photoshop files.
    Is there any way to do this?
    Thanks,
    Philipp

    Thanks a lot guys.
    I am just now putting a document together with linked smart objects and I'm noticing that the file size of the PSD file still increases quite a bit. I thought the hole point of this was to have lightweigh psd files?
    I currently have 11 1920x1080 linked smart object files in the PSD and the file size is already at 140MB. Any ideas why this is happening?

  • Scripting layer comp property of linked smart object

    How can I through script set the layer comp property of a linked smart object?
    More generally, how can I access a smart object and manipulate it as a document?  I know that I get smart object layers by looking at the kind property, but I don't know what to do with them once I get them.  I'd like to be able to cast the layer to a document object I guess.  Thoughts, anyone?

    Photoshop Feature Requests should be posted over at
    Photoshop Family Customer Community
    But before posting one look around whether one exists already on this issue and add your +1 if it does.

  • How do I disable linked smart-object auto-update/refresh?

    Working in the CC3D features, I am constantly making changes to my bump map. Every time I step-backwards, or make a significant change to the bump texture (smart object?), CC auto-saves the layer. This specific file is a very very large document (3 gigs in the bump texture layer alone), and the 3D layer has lots of lights and is very complex. This auto-refresh/update really bogs down the time that it would take me to make my changes. I have a very fast machine (I know it's fast, I dont need to list my specs), and I have all shadows disabled.
    How do I disable linked smart-object auto-update/refresh?

    If you do not like a feature like smart objects there is nothing forcing you to use it. Use some other features to do what you want. Please don't ask Adobe to introduce bug into smart object support.
    You could work on your bump maps textures in external files. When your done some time in the future you could edit your project with the smart object layer and use replace smart object. Only then will all smart filters be applied to the smart layer with the replaced smart object.
    Or if by CC Auto save Layer you referring to CC Generate feature you can disable that feature.
    I have no idea what your referring to when you write "CC auto-saves the layer" being a feature. I know CC Generate will write layers out as web files but that more a Web feature then a 3d feature.  Where do you see your layer being saved?

  • Linked Smart Object:  Allowed File Type and Editor

    Please forgive my lack of knowledge.  I'm evaluating PS CC 2014, own PS 5.1 and am a hair shy of being a novice.  Presently I'm doing Photomerge Focus Stacking.  What I'm hoping is that DNG files can be Linked Smart Objects and that I can modify the merged photo by editing the DNG files in Adobe Camera Raw.  Is this possible?  The Adobe Help article has a rather cryptic "You can’t perform operations that alter pixel data", that leads me to believe no but, I don't understand that fully.
    Thanks.

    Currently you can not use any of the merge options: pano, hdr, or focus stacking with a smart object. So you would not be able to do that with dng files and retain the ability to edit them in Camera Raw. It would be nice though!

  • Linked Smart Object breaks a PSD after sync with Creative Cloud

    After using a linked Smart Object inside a PSD and sync with Creative Cloud, the online version of file does not preview and does not work with any online feature, like Extract, Layers, or Anything else.
    Any suggestion? Thanks in advance.

    Thanks for the example Deryck,
    The preview seemed broken on the comments tab but the image was appearing for me under the Extract one. When I downloaded the original it looked like the linking was preserved. The online version didn't seem to denote in any way that the Cecinas layer contained a Linked Smart Object, which might be helpful, but it did have the preview. Here are some screenshots of what I was seeing. Thanks for posting about it. I'll pass it on to our engineering department.

Maybe you are looking for

  • Firefox 17.0.1 cache activity on multiple hard disks?

    I upgraded OS of my desktop PC from Win 7 to Win 8 (install from scratch). I also loaded latest version of Firefox 17.0.1 My C system disk is a SSD (therefore no moving parts). I also have a second mechanical hard disk only for data (no software inst

  • Error code: 110, error text

    Hi all, While working with Soap Adapter and when the pay load is more 2.7MB i am getting the below error.   <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!--  Call Adapter   --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" x

  • Is there an app that I can DL that find BPM of songs?

    It frustrating to sit and adjust the metronome to match a song. There must be a way to find the beats per minute of a song without protools or other expensive software. Maybe there isnt, but, if there is... assist me please.

  • How do I retrieve my adobe products I already purchased?

    I bought Adobe Acrobat and my computer crashed.  How do I get it back on my new computer without buying it all over again?

  • Add photos together

    I cannot remember the term but I have used Photoelements 2 and 3.  I am currently using 8 and cannot find how to put two images together.  Any help will be appreciated.