Drawing Rectangle shape using Labview 8.0

Is it possible to draw a rectagle shape using Labview 8.0? I found in the HELP content tat it did exist some function related, but when i click on "place to block diagram" it doesnt work. So i susect tat it is for further version of Labview.
I have an idea of how to draw the rectagle, which is by drawing line from point to point. Since i need to draw multiple of rectangle, so i hope tat there is an easier way to do it.
Thanks for ur time and help.

You can have the numbers created, programmatically
Attachments:
Example_VI_BD2.png ‏3 KB

Similar Messages

  • Draw a shape and add it to cells in a JTabel. Help Please

    Hi all
    I have written some code that draws a shape using Graphics2D.
    What I am after being able to do is create this shape then place it in a cell of a JTable.
    One Other thing is I need to create different color shapes for each row in the table.
    is this posable ??
    Any help would be appreciated
    Craig
    import java.awt.*;
    import javax.swing.*;
    public class RectangleDemo2D extends JFrame {
      private Color color1 = new Color(255, 3, 3);// Color
      private Color color1a = new Color(255, 3, 3, 155); // Color with Alpha
      private Color color2 = new Color(255, 255, 255, 155); //Color White
      int x = 150;
      int y = 150;
      int w = 12;
      int h = 12;
      int arc = 6;
      GradientPaint gradient = new GradientPaint(5, 0, color1, 5, 90, color2, false);
      final static BasicStroke stroke = new BasicStroke(1.0f);
      public void paint( Graphics   g) {
        Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
        g2.setPaint(gradient);
        g2.fillRoundRect(x, y, w, h, arc, arc);
        g2.setPaint(color1a);
        g2.setStroke(stroke);
        g2.drawRoundRect(x, y, w, h, arc, arc);
        //ImageIcon ico = new ImageIcon("check.png"); // This adds a check image
       // g2.drawImage(ico.getImage(), x, y - 3, this);
      public static void main(String s[]) {
        RectangleDemo2D demo = new RectangleDemo2D();
        demo.setBackground(Color.white);
        demo.pack();
        demo.setSize(new Dimension(300, 300));
        demo.show();
    }

    Hi,
    You can check out a similar thread where the poster has opted to use imageicons instead of shapes. That thread is here.
    http://forums.java.net/jive/thread.jspa?threadID=15074&tstart=0.
    As for creating different color shapes for different cells of the jtable, it is definitely possible once you have a custom renderer for your jtable. Just read up on how to create custom table cell renderer.
    cheers,
    vidyut
    http://www.bonanzasoft.com

  • I can't able to access shapes(circle,star) in tool,only rectangle is used.what to do for drawing other shapes?

    i can't able to access shapes(circle,star) in tool,only rectangle is used.what to do for drawing other shapes?

    Mylenium is right; we don't know enough to help you.
    Screenshots of your interface would help. Also, more information about your OS, version of AE, etc.: FAQ: What information should I provide?

  • Drawing an arrow between two rectangle shapes

    i am trying to draw an arrow between two rectangle shapes. the arrow will start from the center of one rectangle and end with the arrow tip at the edge of the other rectangle. i actually draw the arrow first, and draw the rectangles last so the effect of where the arrow starts will seem to come from the edge and not the center.
    i have code using some trigonmetry that works for squares, but as soon as the shape becomes a rectangle (i.e. width and height are not the same), the drawing breaks.
    can i detect where a line intersects with a shape through clipping and use that point location to draw my arrow head? if so, how?

    Here's one way to do this using the rule of similar triangles.
    import java.awt.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class Pointers extends JPanel {
        Rectangle r1 = new Rectangle(40,60,100,150);
        Rectangle r2 = new Rectangle(200,250,175,100);
        int barb = 20;
        double phi = Math.toRadians(20);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.blue);
            g2.draw(r1);
            g2.draw(r2);
            g2.setPaint(Color.red);
            g2.draw(getPath());
        private GeneralPath getPath() {
            double x1 = r1.getCenterX();
            double y1 = r1.getCenterY();
            double x2 = r2.getCenterX();
            double y2 = r2.getCenterY();
            double theta = Math.atan2(y2 - y1, x2 - x1);
            Point2D.Double p1 = getPoint(theta, r1);
            Point2D.Double p2 = getPoint(theta+Math.PI, r2);
            GeneralPath path = new GeneralPath(new Line2D.Float(p1, p2));
            // Add an arrow head at p2.
            double x = p2.x + barb*Math.cos(theta+Math.PI-phi);
            double y = p2.y + barb*Math.sin(theta+Math.PI-phi);
            path.moveTo((float)x, (float)y);
            path.lineTo((float)p2.x, (float)p2.y);
            x = p2.x + barb*Math.cos(theta+Math.PI+phi);
            y = p2.y + barb*Math.sin(theta+Math.PI+phi);
            path.lineTo((float)x, (float)y);
            return path;
        private Point2D.Double getPoint(double theta, Rectangle r) {
            double cx = r.getCenterX();
            double cy = r.getCenterY();
            double w = r.width/2;
            double h = r.height/2;
            double d = Point2D.distance(cx, cy, cx+w, cy+h);
            double x = cx + d*Math.cos(theta);
            double y = cy + d*Math.sin(theta);
            Point2D.Double p = new Point2D.Double();
            int outcode = r.outcode(x, y);
            switch(outcode) {
                case Rectangle.OUT_TOP:
                    p.x = cx - h*((x-cx)/(y-cy));
                    p.y = cy - h;
                    break;
                case Rectangle.OUT_LEFT:
                    p.x = cx - w;
                    p.y = cy - w*((y-cy)/(x-cx));
                    break;
                case Rectangle.OUT_BOTTOM:
                    p.x = cx + h*((x-cx)/(y-cy));
                    p.y = cy + h;
                    break;
                case Rectangle.OUT_RIGHT:
                    p.x = cx + w;
                    p.y = cy + w*((y-cy)/(x-cx));
                    break;
                default:
                    System.out.println("Non-cardinal outcode: " + outcode);
            return p;
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new Pointers());
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    }

  • Is it possible to integrate a mentor graphics drawing file using labview or any labview toolkit..!!!

    I m having a mentor graphics drawing file having drawn with the components like resistor,capacitors etc..I need to develop an application to interface to the file using labview or adding a toolkit to labview to access the components like resistors etc .Can any body  help me about this....?
    Thanks in advance...!
    Certified Labview Associate Developer(CLAD)
    Don't Forget to Rate the answers.!!! You can do it in few seconds

    Hi Lynn ,
    Basically i want to read the mentor graphics drawing file data in a labview front panel, so that i can display the components as we see in the mentor graphics development enviornement and should be able to click on the components to perform the tests associated with the same.For this,i think i need to have the BOM kind of data only as i need the components data associated with the drawing file,after this i would create a custom control for each and every component and then call the tests associated with it as soon as the user clicks on the same.I hope you understand my requirements.
    Thanks & regards,
    Dinesh Kumar
    Certified Labview Associate Developer(CLAD)
    Don't Forget to Rate the answers.!!! You can do it in few seconds

  • Trouble with VI for drawing an arbitrary shape using mouse control.

    I have attached the vi which i am really struggling with. Basically, i want to select n points using the mouse clicks and then draw a shape connecting those points by using 
    a boolean LED to move smothely through points in order and back to the first point. i have noticed that when the gradient between two is negative the LED goes in opposite direction unexpectedly.
    I really dont know how to fix this.
    Any help will be appreciated.
    Solved!
    Go to Solution.
    Attachments:
    arbitrarymovement.vi ‏24 KB

    Hello gurucode
    I have made the changes in the VI, once again to the best of my understanding. 
    Problems with the code (if you have a straight line parallel to the y axis the movement is super fast)
    i've left that one for you to play around with set to your liking 
    PS. If you have some free time, you may want to look into design patterns, they are pretty cool and help manage your code better 
    Links :
    http://www.ni.com/white-paper/7595/en/
    http://www.ni.com/white-paper/3023/en/
    Derick Mathew
    Attachments:
    arbitrarymovementfinal.vi ‏26 KB

  • How to draw the circle diagram of induction motor using labview

    hi
      i am trying to model the  electrical machines using labview..
    i want to know that is it possible to draw the circle diagram of induction motor using labview..........
    if its possible then please suggest me the possible ways.
                                                                                         thanks

    There may be better ways, but the method I used was to convert amplitude & angle to rectangular coords, then create an XY plot from (0,0) to those coords.  (Or 1 plot for Voltage, 1 for Current, etc.)  I would then just keep updating this plot and feeding it to the graph in a loop.  The result was a slightly choppy looking but useable animation of the phase vectors.
    -Kevin P.

  • How to draw 2D shapes on the image generated by JMF MediaPlayer?

    Hello all:
    IS there any way that we can draw 2D shapes on the image generated by JMF
    MediaPlayer?
    I am currently working on a project which should draw 2D shapes(rectangle, circle etc) to
    mark the interesting part of image generated by JMF MediaPlayer.
    The software is supposed to work as follows:
    1> first use will open a mpg file and use JMF MediaPlayer to play this video
    2> if the user finds some interesting image on the video, he will pause the video
    and draw a circle to mark the interesting part on that image.
    I know how to draw a 2D shapes on JPanel, however, I have no idea how I can
    draw them on the Mediaplayer Screen.
    What technique I should learn to implement this software?
    any comments are welcome.
    thank you
    -Daniel

    If anyone can help?!
    thank you
    -Daniel

  • Is there an easier way to draw a shape in 3d to match X,Y, Z of photo?

    I usually start a project in 2d and import photos, draw shapes and text in this 2d environment. I find it easier this way because they all start out on the same plane, and when manipulating in 3d later, this initial plane acts as a reference plane that I can shift X,Y,Z and rotation paramaters from. I then add a new camera and turn everything into 3d. However, as I work further in the timeline, I sometimes want to add a rectangle that overlaps exactly on top of a photo lying in 3d space as to cover it. When I start the shape command in the active camera view and draw the rectangle to match the outline of the photo, it seems like the photo and rectangle are on the same plane in this view. However, when I check this by going to the perspective view and checking from other angles I see that the rectangle was placed on an arbitrary plane and the rectangle is not overlapping the photo.
    To correct this, I open the inspector of the photo and write down it's X,Y,Z positions and also it's X,Y,Z rotation parameters. Then I go to the rectangle that I have already drawn and in the wrong plane, open it's inspector properties, and replace with the X,Y,Z and rotation parameters of the photos. Then fine tune the orthogonal positions and scaling within the plane with the 3d tranform tool. This seems like a lot of work, especially when I have to do it a 100 times. Looking for an easier way to draw a shape on the same plane of a photo in 3d space.
    Thanks

    Howdy,
    This is a really good question about one of the bigger challenges of building a 3D project. When you add objects to the Canvas (including drawing), they get added in the camera's viewspace, facing the camera and sharing the same up-vector (i.e. positive Y is up). This is all well and good, but what about doing what you ask, where you want to add an object in the localspace of another object? Let's look at your example: adding a shape that is coplanar to a photo, with the camera not necessarily aligned with the photo.
    As Mark suggested, you can draw the shape in the camera's viewspace and then drag-and-drop the Position and Rotation channels from the photo onto the shape. This will replace the shape's Position and Rotation values with that of the photo, making them coplanar and located in the same place. The shortcoming of this method is that you draw the shape at a size that seems correct in the Canvas, but once it's moved to the same place as the photo, it will often turn out to be too small or large. Then you have to make further tweaks.
    Another solution is to use the Isolate command. Isolate temporarily aligns the current view to the selected object and solos that object. So you could isolate the photo and then draw the shape in the Canvas and it will be coplanar with the photo. The only caveat is that the moment you finish drawing the shape, it will disappear. This is because the photo is still isolated (and soloed). As soon as you de-isolate the photo, everything will reappear.
    The easiest way to use Isolate for new photos—not ones already in the project—is to place the photo in a 3D group, position the group where you want the photo and shape to be, then isolate the group and add anything you want to it (shapes, image, text, etc).

  • Subtract Front Shape after drawing the shapes?

    Hi,
    i can't figure out how to subtract the front shape from two already drawn shapes. I can draw a shape, choose "Subtract Front Shape" from the menu and then draw the second shape. But what if the two shapes are already there and i wanna subtract the front shape from the other. Please don't tell me, thats it's not possible ...
    Mario

    Fireworks (and any other simple drawing application) is also able to do that. Why not Photoshop? It's the same like rounded rectangles. There's no possibility to change the radius (or to subtract shapes in this case) after drawing. Every time i try to use Photoshop as a replacement for Fireworks in webdesign i discover a new problem like this. Very disappointing.
    Mario

  • Draw rectangle

    Hi,I want to use mouse to draw a rectangle.But my code doesn't work.Could anyone have a look and make it work please?Heaps of thanks!
    import javax.swing.JInternalFrame;
    import java.awt.Cursor;
    import java.io.File;
    //for inner class
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseMotionListener;
    import java.awt.event.MouseEvent;
    import java.awt.Point;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Shape;
    import java.awt.Rectangle;
    import java.awt.Color;
    import java.awt.Container;
    import javax.swing.JFrame;
    * Testing drawing rectangle
    public class TestDraw extends JInternalFrame
    private Container c;
    public TestDraw(String name) {
    super(name,true,true,true,true);
    //Set the window size or call pack...
    setSize(300,300);
    c = this.getContentPane();
    c.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
    c.addMouseListener(new MouseMonitor(this));
    setVisible(true);
    }//End of constructor
    public static void main(String[] args)
    TestDraw td = new TestDraw("test");
         TestGUI tg = new TestGUI(td);
    private static class TestGUI extends JFrame
         public TestGUI(JInternalFrame jif)
              setBounds(100,100,400,400);
              Container c = getContentPane();
    c.add(jif);
    setVisible(true);
    /********************MouseMonitor INNER CLASS********************/
         private class MouseMonitor extends MouseAdapter
              private int clickedX,clickedY,releasedX,releasedY;
              private JInternalFrame j;
              public MouseMonitor(JInternalFrame ji)
    this.j = ji;
              public void mouseClicked(MouseEvent event)
              clickedX = event.getX();
              clickedY = event.getY();
              }//End of mouseClicked()
              public void mouseReleased(MouseEvent event)
                   releasedX = event.getX();
                   releasedY = event.getY();
    System.out.println("clickedX="+clickedX);
    System.out.println("clickedY="+clickedY);
    System.out.println("releasedX="+releasedX);
    System.out.println("releasedY="+releasedY);
    Node node = new Node(clickedX,clickedY,releasedX,releasedY);
    node.setColor(Color.RED);
                   j.paintComponent(node);
                   j.repaint();
                   j.validate();
    /********************Node INNER CLASS********************/
    class Node extends Rectangle
    private Color color;
    private int left, top, width, height;
    public Node( int x, int y, int width, int height)
    setBounds(x, y, width, height);
    repaint();
    void setColor(Color color) {
    // Set the color of this shape
    this.color = color;
    public void setBounds(int left, int top, int width, int height) {
    // Set the position and size of this shape.
    this.left = left;
    this.top = top;
    this.width = width;
    this.height = height;
    void draw(Graphics g) {
    g.setColor(color);
    g.fillRect(left,top,width,height);
    g.setColor(Color.black);
    g.drawRect(left,top,width,height);
    /**************************END INNER CLASS**********************/
              public void paint(Graphics g)
                   Graphics2D g2 = (Graphics2D) g;
                   g2.setPaint(Color.red);
                   g2.draw3DRect(clickedX,clickedY,releasedX,releasedY,true);
    }

    Fabulous program!
    I'd like to add more function,but stuck at the right click when the mouse pointing to the node.I want to show the popup menu when user right-clicks at the node,but show error message when he left-click(means he try to draw another node on the top of that node).
    The program seems act properly when mouse is pressed,but error dialog pops and blocks the mouseReleased action.Thanks in advance!
    import java.awt.Color;
    import java.awt.Cursor;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseMotionListener;
    import java.util.ArrayList;
    import java.util.List;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.JOptionPane;
    import javax.swing.JPopupMenu;
    import javax.swing.JMenuItem;
    public class ShapeFrame1 extends JInternalFrame {
         private List<Node> nodes;
         private Node selected;
         private Point start;
         private boolean drawing;
         public static void main(String[] args) {
              ShapeFrame1 sf = new ShapeFrame1("Shape Test");
              JFrame frame = new JFrame("Shape Test");
              frame.setBounds(100,100,640,480);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(sf);
              sf.pack();
              sf.setVisible(true);
              frame.setVisible(true);
         public ShapeFrame1(String title) {
              super(title,true,true,true,true);
              setContentPane(new NodePanel());
              nodes = new ArrayList<Node>();
              getContentPane().addMouseListener(new MouseMonitor());
              getContentPane().addMouseMotionListener(new MouseMonitor());
         protected Node createNode(Point start, Point end) {
              return new Node(start.x, start.y,end.x - start.x, end.y - start.y, Color.BLACK);
         protected Node getNodeAt(Point location) {
              for(Node node : nodes)
                   if(node.contains(location))
                        return node;
              return null;
         class NodePanel extends JPanel {
              public void paintComponent(Graphics g) {
                   for(Node node : nodes)
                        node.paint(g);
                   if(drawing) { // User is currently drawing
                        Graphics2D g2 = (Graphics2D)g;
                        g2.setColor(Color.BLUE);
                        g2.draw(createNode(start, getMousePosition()));
                   else if (start != null){
         class Node extends Rectangle {
              private Color color;
              private String name;
              Node(int x, int y, int width, int height, Color color) {
                   super(x, y, width, height);
                   this.color = color;
              public void paint(Graphics g) {
                   Graphics2D g2 = (Graphics2D)g;
                   if(selected != null && selected.equals(this))
                        g2.setColor(Color.BLUE);
                   else
                        g2.setColor(color);
                   g2.draw(this);
              void setName(String n){
                   this.name = n;
              String getName(){
                   return this.name;
         class MyPopupMenu extends JPopupMenu{
              MyPopupMenu(){
                   createDefaultMenuItem(this);
              private void createDefaultMenuItem(JPopupMenu popup) {
                   JMenuItem item;
                   item = new JMenuItem("cut");
                   popup.add(item);
                   item = new JMenuItem("copy");
                   popup.add(item);
                   item = new JMenuItem("paste");
                   popup.add(item);
                   popup.addSeparator();
                   item = new JMenuItem("Add Node Name");
                   popup.add(item);
         class MouseMonitor extends MouseAdapter implements MouseMotionListener {
              private MyPopupMenu popup = new MyPopupMenu();
              public void mousePressed(MouseEvent evt) {
                   checkPopup(evt);
                   Node node = getNodeAt(evt.getPoint());
                        if (node != null)
                             JOptionPane.showMessageDialog(
                                   new JFrame(),
                              "Node exists.Please choose another location!",
                              "ERROR",
                              JOptionPane.ERROR_MESSAGE);
                        else
                             start = evt.getPoint();
              public void mouseReleased(MouseEvent evt) {
                   checkPopup(evt);
                   if(drawing) {
                        Node node = createNode(start, evt.getPoint());
                        nodes.add(node);
                        setCursor(Cursor.getDefaultCursor());
                        drawing = false;
                   } else {
                        // User isn't drawing, so select a Node if there is one
                        Node node = getNodeAt(evt.getPoint());
                        selected = node;
                   repaint();
              public void mouseMoved(MouseEvent evt) {}
              public void mouseDragged(MouseEvent evt) {
                   drawing = true;
                   setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR));
                   repaint(); // User is currently drawing, so repaint the view
              private void checkPopup(MouseEvent evt){
                   if (evt.isPopupTrigger()){
                        popup.show(evt.getComponent(),evt.getX(),evt.getY());
    }

  • Can I find the OS of a remote system using LabVIEW?

    I wish to be able to start an application on a remote system using
    LabVIEW. To do this, I need to know what the OS of the remote system is
    (Windows, Linux, etc). I can ask the user to provide this information
    for me, but is there any way I can get LabVIEW to automatically
    retrieve this information? I know I can use the application node with
    the OS sub-section to get this information for the local machine... is
    there any way I can remotely run this? Would VI server allow me to run
    this, if I turned it into a VI, on the remote system such that I could
    retrieve this information for the remote system? Or is there a neater
    solution I'm missing?
    Cheers,
    M.J.

    Heya... many thanks for the suggestion(s).
    The problem with my case is there's any number of users on the network
    that might be using this, and it could be running on a Windows or Linux
    box, depending on user circumstances, so trying to get a VI Starter
    type application put into the start-up of all machines just in case is
    a) overkill & b) more than I want to bite off So basically I
    need to have the VI running on the machine in order to use VI server is
    what I'm hearing & reading from the help, which essentially my idea
    of dynamically firing off labview & loading/running any VI on the
    remote system just ain't possible... hmmmn.
    Back to the drawing board then, it looks like...
    Cheers,
    M.J.

  • Problems using Labview as ActiveX Server

    Hello,
           I have been having difficulty using Labview as an AcvtiveX server. I have reviewed all the postings on this subject and most are either pre Labview 8.2 and thus do not account for the changes made between 8.2 and 8.5 which broke the Activex server functions. I have looked at the recommendations for changing the to code to export (exported vi's in a DLL or Source distribution) and have tried these with no success. The closest example I have found was posted here http://forums.ni.com/ni/board/message?board.id=170&thread.id=283417 the example code they posted does ont work for me and still generates and error 3005.
          What i need is simple. I want to turn my applicaiton into a Vi server.. Expose a vi that acceses elements in the Vi server.. (controls, queues, Globals etc) that are in the Vi server context. I would then like to build a vi .. or dll that calls the 'exposed' vi in the vi server to pass data to or from the vi server. The V test.zip example file in the above indicated post is a pretty good example of this .. it just does not seem to work when i build it in 8.5. Are there any GOOD and 'current' examples of using labview as the ActiveX server (Compiled) and calling exposed vis from an external application Labivew, Visual Basic.. etc??  I am only interested in cases where Labview is the Sever. or both client and server.
           I have used a tool "ActiveXplorer" to examine the registered "exe" when the viserver is run. It always shows that there is no Type Library associated and the object is not creatable. There is a .tlb created by the project build however, where as the previous version 8.2.1 of Labview did not build that correctly. I have also tried this on 8.6 with similar error 3005 generated. sooooo what am i missing?
          Thanks
           Louis Ashford

    Mike,
           Thank you for your response to my question. The problem is that the example you site does not use the Labview vi as the Server. Excel is actually the vi server and the automation open is using and excel automation object. I am sure that Excel creates proper automation objects .. Labview however does not seem to. So while this example shows how labview can function as a client it is not an example of a compiled Labview Sever being accessed by a 'laview vi'. Possibly I am not looking at the vi that you are thinking of.
           The examples i am aware of:
                        "ActiveX Event Callback for Excel.vi... (Excel is server not Labview vi)
                        "ActiveX Event Callback for IE.vi (same Labview vi is client)
                        "Write Table to XL.vi" ( again excel is the server)
                        "3D Graph Properties - Torus.vi" (accesses an activex Control 'not' and Activex EXE)
                        "3D Lorenz Attractor Draw at Compeltion using 3D Curve.vi (Uses an activex  control not activex Exe server)
                        "3D Parametric Surface - Ribbon.vi (Uses an activex  control not activex Exe server)
                        "3D Surface Example - Fluctuating Sine Wave.vi (Uses an activex  control not activex Exe server)
                        "Excel Macro Example.vi (Uses excel as automation server..not Labview)
                        "FamilyTree.vi (uses MSComctlLib.ITreeView object not Labview as server)
                        "SlideShow.vi" (uses PowerPoint._Application not Laview as server)
          Most of the posts I have seen are for versions prior to  Labview version 8.2 (where the ActiveX server was broken) I have seen only a few posts that actually address the issue i am talking about. however thus far no real solution has been offered. I get the same results when compiling and testing this with 8.6..  as well. So have you tried this Mike? Possibly i am missing something very simple..
          The example i did find and gave the link to is a pretty simple one. This does not work on my machine at all. You can select the automation server that is registered with windows after running the server one time and this then breaks the client vi.. I have found by reselecting the GetViReference property node in the Client vi that it will the 'fix' the client vi as far as labview is concerened and it no longer shows and error. Now when you run the Client vi it will infact find the vi server and will launch it ok. However. The open automation object then hangs.. for quite some time then returns the error
    "Error -2146959355 occurred at Server execution failed
     in Client_reader.vi" Obviously the automation Exe (server) was seen because it was opened yet it did not return a valid reference so the subsequent property nodes in the client.vi will fail. Something is wrong with Labviews opening of or creating of automation objects..
              Thanks,,
                    Louis Ashford

  • Draw rectangle in plot

    How can i draw rectangle in graph
    with Component works++?

    Annotations were introduced to the C++/ActiveX graph in Measurement Studio 6.0. This is the best way to draw a rectangle.
    Details:
    CNiAnnotation:hape is a property of type CNiShape. CNiShape::Type is an enumeration, one value of which is CNiShape::Rectangle. Use CNiShape::XCoordinates and CNiShape::YCoordinates to specify the location and size of the rectangle. Use CNiAnnotation::CoordinateType to specify whether the coordinates of the rectangle are in axis units or in pixels relative to plot area or screen area.
    If you cannot upgrade to Measurement Studio 6.0, you could consider using 2 cursors as a workaround.
    David Rohacek
    National Instruments

  • How to draw vector shape?

    I use following statement to draw a shape
    [CODE]for(....){
      sprite.graphics.beginFill(..);
      sprite.graphics.drawRect(x,y,1,1);
      sprite.graphics.endFill();
    }[/CODE]
    But I find above shape is not vector shape.Because I change the IE size,I find the size of shape don't automatic change. How to use sprite.graphics to create vector shape?
    Thanks

    Set Flash object size to 100% x 100% in the HTML - then you'll see your drawing changes the size as you resize the browser window.
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

Maybe you are looking for

  • IPhone 5 Lightning to 30-pin adapter

    Just received my long awaited lightning to 30-pin adapter (three of them) for my iPhone 5 only to discover that to charge my phone in the car or listen to music in my office on my Altec Lansing, I have to take the case off. This rather defeats the pu

  • SendRedirect is not working in Oracle Weblogic 10.3.5.0

    Hi , We are using oracle weblogic 10.3.5.0 server as a application server. But in weblogic we are facing issues with sendRedirect and request dispatcher. Requesting your help for getting out of this issue. Thanks in advance Sachin Hadawale

  • Movie descriptions have disappeared since 4.2 (2060) & iTunes 10.2.1.1

    Since the updates to ATV2 and iTunes in the last 2 days. All of the Film & TV Show descriptions have disappeared on my Apple TV2. I spent many months creating descriptions for 1,200 films and 2,000 TV episodes for my self generated content, only to f

  • S16 24fps - DVCPro HD 25 fps -   24 fps editing and output?

    I'm new on this forum so "hi everybody!" We're about to shoot a short feature on S16 film and I'm in charge of postproduction. Last feature we made was shot on S16@24 fps -> HDCam SR telecine -> Betacam SP -> 24fps edit on Avid Film Composer -> EDL -

  • Zebra printing

    Hi experts, we are using Zepra printer (105SL). i want to inculde logo in the existing layout. but in the script it is showing different format. 1000000120000001 ^XA DFZ8B17B-1FS ^PRC LH0,0FS ^LL1207 ^MD0 ^MNY LH0,32FS BY1,3.0FO26,554B3N,N,55,N,YFRFN