Making 3d graphs

Hi!!!.... i m just a practicing programmer of LabVIEW, learning it for the completion of a my final year technical project of my bachelors degree. Can anyone please tell me how to use a 3D graph in LabVIEW. I want to use it to plot points for Principal Component Analysis and Linear Discriminant Analysis on the graph. I am not able to do that currently. A sample programme would be wonderful, if someone can attach that as well. Would be highly grateful!!

Please see reply #7 of this thread to find a worse case example of how to use the 3d graph.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Error while making a graph in excel

    I can create an excel file + worksheet + inserting data. But when i try to make a graph i get the error:
    Error accessing the OLE registry.
    in Excel Import Module.vi->Excel Insert Graph.vi->Excel Easy Graph.vi->excelreport.vi
    i searched the forum but couldn't find the answer, i am using the functions 'report generation'.
    I got my information from the tutorial :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/410C4F687126E4C786256B920072A197?OpenDocument
    Attachments:
    excelreport.vi ‏73 KB

    you most have eather a simple problem or your registry is flawed anyways did you try this found it on web.
    Make sure that you are logged into the computer as local Administrator, or are part of the local Administrator group.
    To identify which registry key is causing the problem use Regmon (a freeware tool published by SysInternals). Use Regmon to capture all registry access when regsvr32 is run. If an �OpenKey� request fails with �Access Denied� (which is listed by Regmon as �ACCDENIED�) then run regedt32 and check the permissions on that registry key. If necessary change the permissions on the key to grant local Administrators �Full Control�.

  • Making a graph in java

    Hi
    I want to take data from a mySQL database and show it in an applet as a graph.
    The problem I'm having is creating the graph.
    Does anyone know a fairly simple way to do this?
    thanks

    this can get you started:
    go and google for "applet drawing java source code"
    then when you figure out how they draw in the applet, you can draw some lines and points

  • Making XY graphs

    Hello fellows....I'm just trying to plot a XY graph from values currents VS Time values coming from a txt file formatted in a table with Tab separation.
    I retrieve the value in a 2D array of DBL value and try to plot this graph. I just can't format the input for the XY Graph.
    Thank for your help....see vi attached......Program in labview 8.0
    Attachments:
    Graph.vi ‏36 KB

    Here we go!
    Hope this modified vi serves your purpose
    Regards,
    Dev
    Attachments:
    Graph.vi ‏115 KB

  • Making different graphs like bar chart in excel sheet

    Hello,
    In my application i have to make different graphs like bar chart,pie chart etc which is present in the excel sheet.In the same excel sheet i have to make the graphs based on the data through java program.
    I am unable to do it.Can anyone suggest me how to do.Is there any api and documents(for reading )for it?
    thanks in advance
    chimpuk

    Hi, you might want to do a search before you post. At the top of the page is a link to advanced search. Right-click on it and choose 'open in a new window'. Now, in the 'with all the words' box type the word excel, then hit the space bar, then type the word chart[b], now down lower clear all the checkboxes except [b]Java Forums, now hit the Search button and you get a list of threads related to excel and chart. Read a few. I think most of your questions will be answered.

  • Making a graph (temporarily and reversibly) bigger by video overlay

    Is it possible to make a graph (temporarily and reversibly) bigger than the tab (for instance) where it is included ?
    (is video overlay possible ?)
    The objective is to have a better visual comfort and to go back to the native size afterwards.
    Thanks

    Create a subVI with a front panel that only has a large graph and a close button.  Call this VI and feed it the data you want to be able to see.  Make the subVI modal and centered.
    Kelly Bersch
    Certified LabVIEW Developer
    Kudos are always welcome

  • Making a graph with a voltage input on each axis with a continous curve display

    I need to make a graph that can display two voltages, with one of the voltages on each axis.  I have accomplished this by using an xy graph.  The problem is I need a curve to be displayed as the voltages change similar to the curve displayed in the waveform chart.  Currently, a line is displayed between the inital point and the final point but it then disappears.

    Hello again.
    I should have explained my example more.  I used the same signal for both the X and Y inputs of my XY graph, so the linearly increasing line is expected behavior.  In order to do what you want, you need to use a split signal VI after the DAQ Assistant express VI.  Once you place the split signal VI on the block diagram you can expand it so that it has two output nodes and wire them to the X and Y input terminals of the Build XY Graph express VI.
    Similarly, for the array example, you can use the split signal and then use two build array VIs.   In order to reset the graph you can just initialize the shift registers with a zero to clear the graph each time it runs.  This will clear the graph at the beginning of each run (and not at the end).
    Message Edited by Brooks_C on 11-30-2007 03:39 PM
    Message Edited by Brooks_C on 11-30-2007 03:40 PM
    Brooks
    Attachments:
    Split Signal Build Array2.JPG ‏37 KB
    Split Signal2.JPG ‏20 KB

  • I need help making a graph!

    Example: density on the x axis and Specific heat on the y axis.

    DeeDee,
    After reading up on Charts, Make sure that your table has a Header Row for column titles and no Header Column.
    With your density figures in Column A and your Specific Heat figures in Column B, trim off any excess rows and columns from your table. Then Select the table and insert a Scatter Chart.
    Jerry

  • How to create ONE graph with a growth trend ($ and %)?

    I would like to create a graph with a growth trend.
    The graph should have figures on one side reflecting $ values and on the other % growth.
    I cannot make a trend on the same graph and usually spend ages adding another graph to show the trend. I end up making 2 graphs instead of one.
    Please refer to the following really basic graph that will give you an idea.
    ex : http://www.tellurideareahomes.com/images/graph1.jpg
    Can anyone show how to do that?

    What you want requires a bit of trickery.
    Chart the bar graph
    Chart the trend
    then move the trend one above the bar one after setting its background to none.
    If this workaround is not OK for you,
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'09 (possibly for iWork '99)
    Yvan KOENIG (from FRANCE mercredi 19 novembre 2008 11:18:45)

  • How to split a graph in two or more pages

    Hi, I would like to know if it's possibile make a graph to be visualized on more than one page (horizontally)
    In my case I have a query that extracts a lot of results (so I have a lot of points on the X axis),
    and I'd like to make it easier to read it, making the graph wider.
    I tried to insert the graph in a record group setting max record count, but it seems that Reports goes in an
    infinite loop during the layout generation...
    Thanks in advance.
    A.R.

    java.io.FileInputStream
    java.io.FileOutputStream
    $ split --help
    Usage: split [OPTION] [INPUT [PREFIX]]
    Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default
    PREFIX is `x'.  With no INPUT, or when INPUT is -, read standard input.
    Mandatory arguments to long options are mandatory for short options too.
      -a, --suffix-length=N   use suffixes of length N (default 2)
      -b, --bytes=SIZE        put SIZE bytes per output file
      -C, --line-bytes=SIZE   put at most SIZE bytes of lines per output file
      -d, --numeric-suffixes  use numeric suffixes instead of alphabetic
      -l, --lines=NUMBER      put NUMBER lines per output file
          --verbose           print a diagnostic to standard error just
                                before each output file is opened
          --help     display this help and exit
          --version  output version information and exit
    SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.

  • Why don't Grapher's Frame Limits work correctly with saved Grapher files using multiple equations on Mountain Lion?

    Hi,
    I generally enjoy using Grapher in OS X (I am using Mountain Lion v10.8.2). However, I have repeatedly encountered what seems to be broken basic functionality in setting the limits on the display frame  (View> Frame Limits…). When opening saved Grapher files with multiple valid equations in them (equations which include constant terms defined as sets of numbers), I repeatedly get the following behavior:
    1. Frame limits are not correctly saved. As in, the file opens with a different view than it was saved and closed in.
    2. Frame limits no longer work as expected. For example, I might set the Y axis frame limits to be -2 to 2, but the Y axis of the frame display will run from about -1.95 to about -0.35.
    3 Performance is degraded. Making a change to the frame limits (for ecxample, changing the Y frame limits to -2.2 and 5 in an attempt to display something approximating the range -2 to 2) take an inordinate amount of both processor time and clock time. The spinning ball appears and hangs out far longer than is welcome, and at times seems to hang requiring a force quit of Grapher.
    These problems occur regardless of coordinate system.
    Is there a solution? If I create a new file and start from scratch the problems reappear. The problems reappear across a wide range of 2D equation types.
    Is Grapher simply broken in this regard?
    Thanks for the input.

    Bonjour Lexy-Lou,
       You are right, the bug was born with Grapher as you may read on the website
    <http://y.barois.free.fr/grapher/> :
    Grapher’s bugs and their remedies (OS X in French).
              Bug nr. 1. (Grapher 1.1, 2.0, 2.1, 2.2, 2.3). When modifying the main 2D window size, the graph length and height already formatted (menu Format) are changed : axis scale values stay the same, added objects remain same size on the same places (unit pixel) relative to the graph left upper corner ; but the graph view changes for the ratio H/L do so : very annoying !
                        The remedy : To restore the 2D graph after changing the window size : menu Format > Layout > Size > redo the initial choice (paper size or L and H values)… or avoid having to do so by selecting a window large enough to begin with.
                        Proposed correction : making the graph size independent of the main window’s one.
              Bug nr. 2. (Grapher 1.1, 2.0, 2.1, 2.2, 2.3). Saving is wrong in 2D (menu File > Save, Save as, Save a copy as). Are not seved : the last location on the screen of the main window, the graph size, the maximum and minimum values of the ordinate scale : very very annoying !
                        Note : The new windows of Grapher 1.1 (Grapher secondary window > New Graph > 2D or 3D Graph) always open in the same place on the screen( OS X 10.4.11 configured in French) depending on the language used by Grapher : if it’s English, well placed and covering most of the screen, if it is French, the windows are half length but same height and are located on the right side of the screen. This anomaly disappeared with Grapher 2.0, 2.1, 2.2 (English or French).
                        The remedy : to restore the 2D graph after opening a GCX files (.gcx) : menu Format > Layout > Size > redo the initial choice (Paper size or L and H values) to be done twice ; then menu View > Frame limits... > enter minimum and maximum vaues of the y scale. This requires to note four numerical values, L, H, y-min, y-max, for example at the top of the equation list (or at the bottom : see bug nr. 27).
                        Proposed correction : complete saving in 2D.
    For the full list of Grapher's bugs please download "Instructions for Use - Grapher" (English) or "Mode d'emploi de Grapher" (French). Quick glance at the Contents (pages 2 & 3) you'll be surprised by the possibilities of Grapher.app despite the bugs.
      Enjoy,
    Au revoir,
    YB24

  • Updating A Graph

    Hey, i need to make a graph in a JFrame that will update every second from information stored in an array. I've been scouring old forum posts and nothing's really helping. The problem is though, that the graph is part of a program that must also be entirely usable when the graph is updating. Because of this, I dont really know which is the best way to go about making the graph. I've tried doing things with Timer and it was nothing but trouble. I don't want someone to write this for me, I just need some advice and a starting point.
    thanx
    cha_cha_

    try this sample :
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.math.*;
    import java.util.*;
    import java.applet.*;
    public class ecg extends JFrame
         myView  view = new myView();
         Vector  vr   = new Vector();
         data    tread;
    public ecg() 
         setBounds(3,10,625,350);
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   tread.destroy();
                   System.exit(0);}});
         getContentPane().add(view);
         getContentPane().setLayout(null);
         tread = new data(vr);
         setVisible(true);
         while (true)
              try
                   view.move_1();
                   repaint();
                   Thread.sleep(100);
              } catch (InterruptedException e) {}
    public class myView extends JComponent  
         BufferedImage I;
         Graphics2D G;
         Point p1;
         Point p2;
         int   width   = 600;  
         int   hight   = 301;
         int   point_s = 4;
         Color bcolor  = new Color(220,180,160);
    public myView()
         setBackground(bcolor);
         setBounds(10,10,width,hight);       
         I  = new BufferedImage(width,hight,BufferedImage.TYPE_INT_ARGB);     
         G  = I.createGraphics();
         G.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);          
         clear(0,width);
    public void move_1()
         if (vr.size() < 2) return;     
         G.drawImage(I,0,0,width-point_s,hight,point_s,0,width,hight,null);
         clear(width-point_s,point_s);
         p1 = (Point)vr.get(0);
         p2 = (Point)vr.get(1);
         G.setColor(Color.darkGray);     
         G.drawLine(width-point_s-1,p1.y+hight/2,width-1,p2.y+hight/2);
         vr.remove(0);
    public void clear(int x, int w)
         G.setColor(bcolor);
         G.fillRect(x,0,w,hight);
         G.setColor(Color.lightGray);
         for (int y=0; y < 11; y++) G.fillRect(x,y*30,w,1);
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         g.drawImage(I,0,0,null);
    public class data extends Thread
          Vector dv;
    public data(Vector v)
         super();
         dv = v;
         this.start();
    public void run()
         while (true)
              try
                   while (dv.size() < 240)
                        int p = (int)(Math.random() * 260);
                        dv.add(new Point(0,p-130));
                   Thread.sleep(2000);
              } catch (InterruptedException e) {}
    public static void main (String[] args) 
         new ecg();
    }      Noah
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.math.*;
    import java.util.*;
    import java.applet.*;
    public class ecg extends JFrame
         myView view = new myView();
         Vector vr = new Vector();
         data tread;
    public ecg()
         setBounds(3,10,625,350);
         addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
              {     dispose();
                   tread.destroy();
                   System.exit(0);}});
         getContentPane().add(view);
         getContentPane().setLayout(null);
         tread = new data(vr);
         setVisible(true);
         while (true)
              try
                   view.move_1();
                   repaint();
                   Thread.sleep(100);
              } catch (InterruptedException e) {}
    public class myView extends JComponent
         BufferedImage I;
         Graphics2D G;
         Point p1;
         Point p2;
         int width = 600;
         int hight = 301;
         int point_s = 4;
         Color bcolor = new Color(220,180,160);
    public myView()
         setBackground(bcolor);
         setBounds(10,10,width,hight);
         I = new BufferedImage(width,hight,BufferedImage.TYPE_INT_ARGB);     
         G = I.createGraphics();
         G.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);          
         clear(0,width);
    public void move_1()
         if (vr.size() < 2) return;     
         G.drawImage(I,0,0,width-point_s,hight,point_s,0,width,hight,null);
         clear(width-point_s,point_s);
         p1 = (Point)vr.get(0);
         p2 = (Point)vr.get(1);
         G.setColor(Color.darkGray);     
         G.drawLine(width-point_s-1,p1.y+hight/2,width-1,p2.y+hight/2);
         vr.remove(0);
    public void clear(int x, int w)
         G.setColor(bcolor);
         G.fillRect(x,0,w,hight);
         G.setColor(Color.lightGray);
         for (int y=0; y < 11; y++) G.fillRect(x,y*30,w,1);
    public void paintComponent(Graphics g)
         super.paintComponent(g);
         g.drawImage(I,0,0,null);
    public class data extends Thread
         Vector dv;
    public data(Vector v)
         super();
         dv = v;
         this.start();
    public void run()
         while (true)
              try
                   while (dv.size() < 240)
                        int p = (int)(Math.random() * 260);
                        dv.add(new Point(0,p-130));
                   Thread.sleep(2000);
              } catch (InterruptedException e) {}
    public static void main (String[] args)
         new ecg();

  • Build XY Graph

    I have problem with making XY Graph user friendly. In my case loop execution time will be variable, so I cannot use waveform chart because timing gets off - look at the picture of vi.
    How I can make XY Graph to start from the leftmost position, not use autoscale and use x axis scrollbar?
    Thanks,
    Zoran
    Solved!
    Go to Solution.
    Attachments:
    time scale.vi ‏29 KB
    picture of vi.JPG ‏86 KB

    All you axes are set to autoscale, so you shoud turn that off.
    It is probably a bad idea to grow infinite datasets inside the "built xy graph express VI", so a more manageable solution would be to do your own fixed size history buffer. Use an action engine, for example.
    Anyway, in order for the x scrollbar to be visible, the data x-range needs to be wider than the axis x-range. You could just update the max and min according to the current time, e.g. as follows. All this needs more work, for example you don't want to update the range settings while the user is scrolling.
    Also:
    You also don't need the local variable, simply set the stop button th latch action.
    Convert the time to DBL instead of EXT. EXT does not do anything useful in this case.
    Message Edited by altenbach on 01-29-2009 01:59 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    xychartscaling.PNG ‏13 KB

  • Styles for graphs and charts?

    Hello,
    I am trying to find out if there is a way to save a graph style, as you would do a paragraph style. This is mainly due to the fact that I need to create about 250 charts in illustrator, and I would really appreciate if I could automate some of the graph or chart creation process, as where I could define a style and then just apply it, meaning the colors, position, size, and font.
    What do you guys think? How would you approach it?
    I'm even having a hard time making the graphs look the way I want them to.
    Thanks in advance for any input you can give me.

    Enrique:
    So where can I learn the right way to convert my excel data to XML that Variables will accept, and also about your script, could it be adapted to create the Data Sets for the graphs? And if so, is it available for download or  purchase?
    I'm afraid I don't really know how to massage an XML file into what Illustrator wants. I've done a little reading about XML, but it bores me to death, seems quite cumbersome, and I've yet to have any real need for it. So far, every time I thought I might need it, I've worked the solution more directly in FileMaker.
    If I remember correctly, in my dinking around with XML, I found that FileMaker could export XML that InDesign could deal with unaltered; but not Illustrator.
    Especially given that all your Graphs require the same number and arrangements of values, though, I would think an ordinary manual find/replace routine in a text editor should do in your case:
    Use the first set of values from one of your Excel files to build the first graph.
    Bind the Graph as a Variable. Capture its DataSet.
    Edit the Data from the second spreadsheet in the Graph Data Dialog. Capture its DataSet.
    Now you have a Variable Graph, with two DataSets. Export the DataSets as a Variables Library.
    Open the Variables Library in a text editor. You can see how the two DataSets are structured and tagged. That should be fairly easy to use as a guide for a few Find/Replace routines in Word or some other text editor Copy/Paste the data from the various spreadsheets. Then use Find/Replace to semi-automate the addition of the XML tags. When done, Copy all that and paste it into place in the Variables Library you exported. Reimport the edited Library into AI.
    All things considered, though, that's probably as much work as simply right-clicking the Graph, select Data from the cursor menu, Click the Import Data button in the Data Dialog, and selecting the next spreadsheet in the folder. Export as PDF. Repeat. If you decided to do that, you could at least have a couple of Actions to invoke the DataDialog, and to Save A Copy as PDF. That would at least reduce those operations to a single click each.
    Although I haven't time to try it right now, I do suspect it would be a fairly simple scripting task to adapt my VFTROU script to generate DataSets for a Graph.
    Finally, though: Your graph sample doesn't appear to be graphics intensive at all. Why not just make the graphs in Excel and export to PDFs that you can place in InDesign? I'm wondering why you feel you need Illustrator involved in this at all.
    JET

  • How do I easily configure a graph in a subvi to look exactly the same as my main VI, except for the size?

    I'm looking to improve my code...
    I have a small main vi (800x600) that contains a graph.  I created a subvi (modal dialog) that will size itself to the user's actual display, and that contains a graph configured to "Scale object with pane."  My main VI passes a reference to its graph into the subvi, and I can configure the subVI's graph to have the same x scale, y scale, cursors, value, etc. so that my subvi acts like a "full screen" view of the main VI's graph. I do this by using a big property node that reads about 10 properties using the incoming reference, and then writes them to a property node linked to the subVI's graph.  This works well, but I wonder if it's not the best way.  How can I copy all properties at once so that I can avoid making my list of properties to "copy" extremely long and/or incomplete?
    (I don't want users to resize the main VI, because controls end up in undesirable locations)
    Thanks,
    Alan
    Alan Blankman, Technical Product Marketing Manager and LabVIEW Developer
    LeCroy Corporation
    800-553-2769 x 4412
    http://www.lecroy.com
    [email protected]

    Hi Alan,
    Off hand the only way that I know of to accomplish what you are after is what you are trying to avoid. I have handled similar situations by making the graph in question into a VI that runs in a sub-Panel. The VI running in the sub-panel can be removed from the sub-panel and its FP shown if the user want to re-size it. The zip I posted here called Docking.zip shows how to manage the docking and un-docking. For your case I would make sure the graph was the only object on the FP and set teh FP to re-size objects with the screen.
    Well.... I hope that gives you some ideas.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Structures

    Hi all, I have a 2 structures used in the query. Also have some input parameters to bring the query result. Suppose if data is not there in the cube as per the input parameters then query wll not bring any result. but if i want those structures to be

  • Active Directory accountExpires=Error:87

    Hi, does anyone know what this error code means for the attribute accountExpires of a user account in AD?

  • WRT 160nl USB Storage Problems

    Hi, just got the 160nl recently. My problem is with my 1TB Maxtor Touch (NTFS). It works well for 20min, when connected to the USB point in the router. But after that, the response of the drive is slow, streaming becomes choppy, and then eventually t

  • Product guide for Marketing Analytics 7.95

    Hi I would like to download product guide for Marketing Analytics 7.9.5 for Oracle Business intelligence applications. Can someone help me getting the guide. ? raghav

  • Need driver for Touch Smart 1025DX

    I am trying to install vista X64 and X86 in my touch smart 1025DX (Dont ask me about the recovery cd..  still waiting it on mail) and the funny thing is.. there is no touch screen driver for X86 nor for X64 (which is the default OS came with this lap