Plotting a graph in LabView

Hi all,
I am working on an application that connects to an SQL database. I've got the database set up alright and have got all of the connections to it working properly. I am able to extract the info from the database and display it in tables and multi-column list boxes on the front panel by use of SQL statements.
Now I want to add a couple of graphs to the application that plot the data from these tables and list boxes as well some data straight from the SQL database. I also want to generate multiple plots on the same graph.
For example, I have a table in the SQL database with three columns A, B and C.  I will have A on the x-axis, the y-axis will be a simple scale from 0 - 25 and I want to plot the data in both B and C against A on the same graph.
Finally is it possible to label the x-axis using the values in column A or perhaps the points on the two plots of B and C.
Any help will be greatly appreciated.
Cheers.

Something like this?
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

Similar Messages

  • How to Send Multiple Plot XY Graph from LabVIEW to Microsoft Excel

    The link below describes exactly what I would like to do, however the link to the solution/work around does not work.
    Has anyone got an alternative solution?
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E

    Please check the link again as it seems to be working fine now.
    How to Send Multiple Plot XY Graphs from LabVIEW to Microsoft Excel:
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E
    The standard Excel Insert Graph.vi cannot insert multiple XY Graphs to Microsoft Excel, so you will need to use the Report Generation Toolkit for Microsoft Office.  You will find a link to an example program at the bottom of the page.  I have also attached it below.
    Attachments:
    example.zip ‏35 KB

  • Plot discontinuous data in labview graph/chart

    Hi,
    I would like to plot discontinuous data in a graph in labview. 
    The data is aquired and plotted over time - butduring certain periods there is no data aquired.
    I don't want during these times any "line" between the adjescent points - I just want simply "no line".
    Maybe the best way to show it is this example of a javascript chart
    http://www.highcharts.com/stock/demo/data-grouping
    - zoom into the time around november 2005
    During certain times there is no data - this is implemented in the datastream as "null" instead of a vaild floating point number - similar to NaN for floating point numbers - the javascript code knows that in this case there should be no interpolation.
    Is there any way to have a similar behaviour with labview charts or graphs ? 

    Yes.  Place an NaN value in the array where you data break is before sending it to the graph.

  • Why the graph in Labview does not plot when there is a different set of data collected

    Hi everyone,
    I need help from you guys as I faced a problem with my Labview program. Actually, what I am trying to do with the labview program is that I will be collecting data of different days and use them to plot graphs according to the date that i have set in my program. However, my graph fails to plot whenever there is a change in date, it remains at the first graph that is being plot at the start of the program. I have tried to look through the whole process and found out that actually the execution of my graph in the program is not completed which might cause this program. Therefore, I hope that you guys can help by taking looking through my program which has been attached and tell me the solutions if any! I really appreciate your help! It is a winrar file, extract them and open the AMK_solar monitoring system(stack).vi
    Regards,
    Kok Wan
    Attachments:
    Ftp version SMS.zip ‏1722 KB

    Hi Kok,
    "no formatting needed"
    Why do you feed "2358" to FormatDateTimeString? The result will be "2358" - so no formatting function needed...
    "other timestamp functions"
    Found deep in your subVIs. You can work on timestamps as numbers, no conversion to/from string needed...
    This contains 3 unneccessary locals and a race condition resulting from overuse of locals...
    "The problem is I cant still get my graph plotting"
    Which graph? There are a lot of it...
    Don't you read new data (correctly)? Is the data arriving in the correct wires?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to connect mysql database to labview and plot the graph

    Hi all,
     I am doing my final year project about labview. I need to connect my mysql workbench database to labview and plotting two sinwave in same graph. I can already connected my labview to mysql and showing the data in labview table.But I need to plot the two sinwave in on graph according to table data. Eg: table data:      timestamp   wind speed  wind direction
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.5                 56
                                                      ​                                                  ​                                                  ​                                            2004-01-01         0.6                 60
      The attachemtn vi is about inserting file and plot the graph. And now I  want plotting the sinwave using table data and the  wind speed Y-axis,wind direction Y-axis in both side of my graph and the X-axis is showing the whole day timing like 00:00:00-24:00:00.  Can anybody combine these 2 vi to polting the graph according table data not according to file data.Thanks
    Attachments:
    Mysql.vi ‏11 KB
    Insert File.vi ‏25 KB
    Wind Project.vi ‏24 KB

    Please don't start a new thread. Stick to the original.
    http://forums.ni.com/t5/LabVIEW/How-to-plot-wavefo​rm-or-graph-using-table-database-which/td-p/294036​...

  • How can I update single plot in multi plot xy graph?

    Hi all,
    I'm working on an HMI "front" for a larger acquisition/analysis system, that includes continuous performance monitoring of a turbine. The results of the measurements are stored arrays of contour lines, that represents turbine efficiency and guide vane openings. This analysis is all performed in the background. In the HMI, the performance data is loaded from file when the specific "report" is requested, and is plotted in an XY graph. I would like to indicate the current operation point of the machine by using a plot that is a single point. Thus, that point's position among the contour lines indicates the current performance of the turbine. This point is updated once every second, while the performance data remains the same for considerable amounts of time between recalculations (days to weeks). 
    Is there any way of updating the value of a single plot in a multiple plot XY Graph without having to redraw all the plots?
    I've tried using the "Active Plot" property, which doesn't work. 
    My current solution is to keep all the data as input to the executing while loop and replace a subset of the plot array, but that of course requires the entire rewrite every time the operation point plot is updated.
    Best regards,
    Jarle Ekanger, MSc, CLD
    Flow Design Bureau AS
    Solved!
    Go to Solution.

    You cannot redraw a single plot. If you want to update a single plot, you need to retain all plots in a shift regsiter and replace the data of the desired plot. However, your problem seems much simpler than that. To show a single point on a nearly static plot you have several options.
    You can use a cursor that is controlled programmatically (the style can be a point, don't allow drag).
    You can use annotations.
    You can use the "plot images" feature that allows you to use image commands to draw anything on top of a graph.
    None of these ideas require a redraw of any data.
    I think the cursor idea is probably the easiest and most appropriate. Just use a property node with the following properties:
    active cursor
    cursor position x
    cursor position y
    LabVIEW Champion . Do more with less code and in less time .

  • Facing memory error during shifting from 3d stem graph to 3d surface graph in labview 2010

    hello all,
    earlier I was using 3D Stem graph in labview 2010. Now we want to move to Surface plot for same data.when i am trying surface graph it shows memory error.
    I have  10240 data.
    I was using vector method in stem graph so now for Surface graph i have thought that i have to make matrics of 10240x10240 and its diagonal elements should be my Z co0ordiants.
    plz help me out here.
    thanks & regards, 

    hello mikeporter,
    thanks for reply.I am attaching my Vi. It has some error also.plz look into it.
    X and Y are my co-ordinates pairs.I will be having values for these and have to update for same.
    Attachments:
    Untitled 2_surface.vi ‏184 KB

  • Import excel and plot xy graph

    Hii NI Forum Members,
    I would like to plot the XY graph  (2 vertical axes with pressure and temp and 1 horizontal axis time),in parallel the values are generated in excel sheet with 3 columns and with multiple rows.
    Hence,How can i import the excel sheet columns and rows and plot the generated excel sheet values in XY graph of LabVIEW
    Waiting for your vauable reply,
    Raj

    Why don't you use the Report Generation toolkit? It has plenty of Excel-related vis. You can import data from any of the worksheets and after garbaging the non-number data you can convert it to numbers as well (or if you do not have any string-cells, only numbers you can import it as a 2d numeric array by changing the array constant). If you do not wire any input to the report generation, it does not overwrite your data. (The excel sheet goes to template.)
    I just tried it with an xlsx file and worked fine.
    After importing the data you can manipulate it the way you want it, for example plotting it.
    Engage! using LV2012

  • Non monotonous graph scale /labview

    Hy,
    Is it possible to plot a graph with a scale which is not monotonous ?
    For example, my X scale should goes from 10 to 60 and come back to 10 (from the left to the right).
    Indeed, the values of Y are different with the same X if it is on the way going or the way back.
    Thank you.
    Antoine Dussaux
    Thales-Cnrs Palaiseau.

    Hello,
    What you wanna do, isn't a simple XY graph. where you give the x and y?
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL

  • Problem to plot the graph

    Hi, I am a beginner in Labview. In my exercise, I want to display the 1D data I got from excel in the waveform graph in Labview but it does not appear. Here is my what I have done so far. I have data in excel which has 16 rows and 2 column. I have used path function and also read spreadsheet function to display my table in labview and it works. In My labview front panel displaying now, I have 16 rows and 2 column of data. I want to analyse the 2nd column only so I use array subset function to extract the 2nd column. When I run my labview, the size of my array is now 16x1. I want to display this as a waveform graph so I choose 1D waveform graph. When I run it, the graph doesn't show anything. Please give me advice for this.
    Regards
    ade

    Hi,
    thank you very much for your reply.
    Previously, i change my excel data to CSV file before i applied it to the labview. Now,  I am planning to change my simulation from using 'read from spreadsheet" to use the activex as shown in your VI . Im still in the very basic stage of understanding what is activex, how activex and labview works together, how to display the data in the labview table (previously in the array indicator), and also how to analyse/process the data so i will need more intensive time to learn. However, in your VI, i cannot run it because there is a mismatch particularly in Variant to data Function as shown in pict below
    The thing that still make me curious until now is why i cannot plot my array of data in waveform graph. When i plot it in Chart, the plot is appear but in the  graph, there is no plot. . i try to track by mark the point that might be plotted but it shows only in point 0,0. If you dont mind, can you look at my work in my attachment?. I will attach my VI, and also the data in csv format. Thanks before
    Regards,
    Ade
    Attachments:
    Project try2.vi ‏15 KB
    LAbview Excercise.csv ‏1 KB

  • Transparency for plots in graphs and charts

    In addition or extention  to this idea
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Graphs-and-Charts-with-semi-transparent-fill-option/idi-p/1530960
    I would like to have a transparency control/property in the colour selection for plots in graphs and charts.
     

    Bill, why not directly giving you a solution -there is alot of work going on in adding charting and graph support for future release of Jdeveloper....of course, that does not stop you using some graphing and charting features now but the new added features make the charting side of things much more drag and drop.
    Regards
    Grant

  • CIE chromacity graph in labview

    Has anyone ever implemented CIE chromacity graph in labview.
    Please let me know how to approach this problem.

    Muks
    Sorry, I should have been more clear. I can get the required x, y values.
    Its plottig these values on a real CIE graph. The discussion you , I have
    taken a look that long ago. It discusses how get CIE values, which is
    not a problem. Also I am attaching a screenshot of a software which uses
    a simple x,y plot, with a reference point, at 0.313 and 0.329 and takes
    realtime RGB values values and plots them as a point. Is it posible to do
    somehting like this in labview. Either of them is good enough for me.
    Checkout the snapshot.
    Attachments:
    xyplot.JPG ‏7 KB

  • Turn off a single plot of a multiple plot waveform graph

    I have a multiple plot waveform graph (4 plots). I want to turn off one of the plots, say plot 2. Is this posible from the graphs property node? The property node seems to only give a reference to plot 0. I am using labview 7.
    Cheers,
    Wayne

    I think you can use "active plot" together with "plot.visible"
    property node to control which one you'd like to display. By default,
    the property node refers to plot 0, but you can change to plot 1 or
    other plots by changing active plot property node. You can search
    "Plot" in LabVIEW Help if you'd like to know details.
    Good luck,
    Jian
    On 18 Feb 2004 03:28:49 GMT, [email protected] (Computerman74)
    wrote:
    >>
    >>I have a multiple plot waveform graph (4 plots). I want to turn off
    >>one of the plots, say plot 2. Is this posible from the graphs
    >>property node? The property node seems to only give a reference to
    >>plot 0. I am using labview 7.
    >>Cheers,
    >>Wayne
    >>
    >>
    >>
    >>
    >>
    >>
    >
    >I would love to know if this is possible. I have been trying to figure i
    t out
    >myself.
    >There is a way to turn a single array off and that is what I am doing for now
    >untill this is possible. The plot is still there but reads zero when tunred
    >off. It would be cool to have the abillty to turn off a single plot.
    >I have tryed all the property nodes with no luck. The answer may be in the
    >array size but I can't seem to control that either.
    >For now you can use wire all 4 channels using the comparison select. Use a
    >constant of 0 And wire up a swtich. When the input is false the output is zero
    >in effect making the plot inactive but it still there.

  • How can I save the plot on Graph control to disk like the plot on Picture.vi ?

    Dear all
    I have a question about saving the plot on graph control.
    In Labview,there is two way to make a plot, using graph control (eg. waveform control ,wavechart control) and Picture.vi (eg. plot XY vi and plot waveform VI ) ,
    but for Picture.VI  there is some control  for saving them to disk (eg. write jpeg file.vi or write bmp file.vi )
    My question is that may I save the plot display in graph control to disk using some vi like saving Picture to disk.
    I only know we only can right clicking and export implified image to save the plot on graphic plot?
    What want is save the plot on graphic control without interface and save to disk directly?
    many thanks!

    RIght-click on your graph and select:
    Create...Invoke Node and select method "export image". Wire the desired inputs and place it inside a case structure to be activated by e.g. a button.
    LabVIEW Champion . Do more with less code and in less time .

  • Help needed in plotting Line Graph!!!!!!!!!Pls help!!

    Hi, i need help in plotting a simple line graph showing the x&y axis and has to plot 3 different lines in the same graph.I have written a program and i need to implement this graph in it.Is there any tutorial for plotting line graphs,i mean steps included.
    Please help!

    You describe your need, but not where it originates from.
    Is it a programming assignment? If so, I hope this is not your chosen major, as you will fail because you are a non-resourceful plagarist.
    Do you need to simply graph some data? Use an existing package. There are free ones somewhere.
    What do you mean "i have written a program and i need to implement this graph in it"? If you wrote the program, wouldn't you be done?
    Enjoy programming

Maybe you are looking for

  • Outbound status locked?

    Today we sent thousands of idocs from sap systems to non sap systems, and from non sap to sap. A strange thing happens: a lot of idocs that go from sap no non sap system, has the status "message being sent" on the outbound status (in the sxi_monitor

  • Ktoolbar on Linux (Fedora)

    hi, i installed these two on Fedora - Linux 1. j2sdk-1_4_1-linux-i586.bin - set the path and classpath, and it looks okay - it works 2. j2me_wireless_toolkit-2_1-linux-i386.bin - installed, but when i try to run ktoolbar i get the following error: [r

  • How to reinstall Airport?

    So lately my Macbook Pro has been having problems connecting to the internet. It kept saying the Airport was off (even though I never turned it off). I would go into my Network preferences and click the "Turn airport on" button, but nothing would hap

  • ShowDocument url permission denied

    Hi, I'm trying to run an applet with the following code: <code> if(qbm.runningAsApplet())                qbm.getContext().showDocument (url, "_blank"); </code> And I'm getting the following exceptions: Exception in thread "AWT-EventQueue-3" java.lang

  • Just installed Photoshop CC on my PC, but each time I try to open it I get "Ps has stopped working." Help!

    Hey there, I've just installed PS CC on my PC. Each time I try to open the program, it runs for about 5 seconds and then a dialog box pops up and says "Photoshop has stopped working." Am I going to have to re-install the program?