How to plot data in a chart?

I'm trying to plot data from a table in
a ChartControl object. The table consists
of two columns, one contains a numeric
value and the other contains a date value.
I'd like to plot the numeric value on the
Y axis and the dates along the X axis.
I've got the same data displayed in a grid
format, and that's all fine.
This seems like a simple enough thing to
do, but I haven't found a basic page of
documentation to guide me in the right
direction. How do I do this?

Use Reshape array to turn your 2-D array into a 1-D array.  You will need to wire in a constant of 40 since you will have 40 elements in your new array.  Convert the 1-D array to a cluster with Array to Cluster.  Right click on that function and set the size of the array to 40.  Wire that cluster to the waveform chart.  Now each of your 40 values you get after the double For Loops will run will append their new data to the 40 lines on your waveform chart.
Message Edited by Ravens Fan on 12-18-2009 11:30 PM
Attachments:
ThermocoupleReadings[1]_BD.png ‏13 KB

Similar Messages

  • How to plot line and bar chart in one graph

    i have one graph, but in this graph i want to plot line or bar chart using radio button selection.
    can i do that...

    You must have 2 data arrays or plots to get this. Make sure your plot legend is visible. Drag the plot legend vertical borders to view both plots. Select one of the plot to be bar plot (See the attachment)
    Attachments:
    BarPlots.PNG ‏14 KB

  • How to see data on xy chart

    Hi all :
    please see attach picture ,,you can see that i convert that point data ( x,y ) to chart . what i need to know that if there is a way to see these dat point on the chart it self
    becouse i don't know if i convert the right point
    i look at chart - properties and i don't found thing about seeing the data on the chart
    thanks
    Attachments:
    chart.JPG ‏186 KB

    Hi elyan,
    simplified your vi and added cursor
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    spread point.vi ‏23 KB

  • How to shift dates in a chart for series

    I need to create chart as show on picture http://vp.hu.cz/bi1.jpg. This chart show daily comparation of some measure for last five years.
    There are dates and days of last year on the horizontal axe. (Mon 4.5, Thu 5.5, Wed 6.5). I need shift values for previous years so that first Monday will be displayed on first Monday and so. For example values for first Wednesday will be at these dates: 5.1.2000, 3.1.2001, 2.1.2002, 1.1.2003
    How can I do it?
    I am able to do it on SQL level - I compute new date (first Monday in Year is always 1.1.) and then I can join those tables. But I look for better solution.
    Thanks and Regards

    Hi
    Thanks for your help, I'm getting this error with that script:
    Get-QADUser : Cannot bind parameter 'CreatedAfter'. Cannot convert value "[datetime]::Today.AddDays" to type "System.Da
    teTime". Error: "String was not recognized as a valid DateTime."
    At line:1 char:26
    + Get-QADUser -CreatedAfter <<<<  [datetime]::Today.AddDays(-1) `
        + CategoryInfo          : InvalidArgument: (:) [Get-QADUser], ParameterBindingException
        + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.
       GetUserCmdlet
    Could you help me?

  • How to scale data in column chart?

    Hi,
    I have a column chart who's data ranges from 638 to 4,263,000. Due to this extreme range, the lower valued columns are hardly visible
    Is there a way by which I can scale up the lower values or scale down the higher values, ultimately resulting in a chart with visible columns to the naked eye. Here's the screen shot for your reference:
    (Click on the image to enlarge)
    Appreciate you help...
    -Deepak

    Hello,
    Thank you so much for that hint   That one prompted me to use a PlotSeries instead of a ColumnSeries. And PlotSeries clearly shows up all the items, irrespective of how low or how high the value is. Looking at it, the user can drill down further, by clicking on that item.
    Screenshot:
    -Deepak

  • How to plot data on a cartesian plane, with a twist.

    I am completely new to LabVIEW. I would like to read in a tab-delimited txt file with about 80 columns and 560 rows of data. When a particular piece of data is above a certain "limit," I'd like to plot a '+' sign on a cartesian plane. When the data is below another "limit," I'd like to plot a '-' sign. When the data falls in between the two limits, I'd like nothing to appear on the cartesian plane.
    I think I can handle opening the text file, but how should I read in the data. Then, how do I use the 'draw text at point' tool when the value is outside certain limits? Again, I have no experience with LabVIEW in terms of arrays and things. Any ideas on a path forward, where I should start, and how to do what I'm trying to do?
    The txt files contain thickness data across a sheet of product. The product has 560 data points across(X-axis) and 80 sets of data from top to bottom(Y-axis).
    Thanks

    I bet you could just use Read Spreadsheet File.  If you type in where your file is to the File Path, and it looks backwards, change the True/False constant to True on the block diagram (this transposes the data as it reads it in).  If you need more significant digets, change the %.3f to %.6f (or whatever you want).  Finally, if it's comma delimited, or something else, you can change the string constant thing (\t would represent a tab, \n = new line - just search in the help menu for formating stuff).  Hope that helps.  If it's not crucial to use +'s and -'s though, I would seriously try to use that intensity plot.
    Attachments:
    Drawing.vi ‏21 KB

  • How to plot data from a GPIB function generator

    I am doing a litle application with Visual C++ and the ComponentWorks++ to
    control a GPIB device. I am tring to Plot a CNiGraph with data coming from
    the GPIB function generator. I use the code below to write/read the device
    and to Plot the graph. It give me some results but for exemple, if I
    request a sin wave it give me something that doesn't look like a sin and if
    I request a square wave it give me about the same wave... So I want to know
    if the problem is in my code or maybe it's because my device is just a
    emulator not a real func generator. But I guest I am doing some kind of
    convertion error.
    CNiInt16Vector vBuffer(100); // Should I try CNiReal64Vector or something
    else ?
    m_Visa->Write(m_strC
    ommande); // Write to the device, this works well
    m_Visa->Read(vBuffer); // Is it the right way to do reading ?
    m_Graph.PlotY(vBuffer); // This Plot some data, but it doesn't seem right
    Could somebody bring the light on this?
    Thanks alot!
    P.S. Sorry for the bad english...

    Ares:
    I have two suggestions about common problems in VISA.
    (1) How is m_Visa defined? There is occasionally some confusion about which VISA class should be used for this purpose. CNiVisaSession is the class designed for this purpose.
    (2) How is the instrument returning data? Usually instruments return some sort of header before the actual data.
    You may want to contact National Instruments Technical Support to continue this discussion. You can reach our telephone support at 1-800-IEEE-488 or email support at http://www.ni.com/ask.
    Good Luck,
    Chris Wood
    Applications Engineer
    National Instruments

  • How to plot dates on X-axis in Numbers?

    Hey all, need help!
    Have a two-column data layout, with dates in first column and values in second.  For example,
    April 12, 2009 465
    July 16, 2009 329
    Sep 2, 2009 528
    Nov 21, 2009 503
    I'd like to plot this as a scatter plot and see dates on the x-axis (a la Excel).  Alas, all it shows are numeric equivalents on the x axis, in very large numbers.
    What's the trick or solution to this?
    (I have spent a good half hour rummaging the boards here and Googling to no avail.  I did discover the DUR2DAYS trick for doing a related graph in the spreadsheet... perhaps there's a formatting trick here, too.)

    BUMP!
    Anyone?

  • How to ignore data for a chart

    I want to create a formula that I can reference from a chart.  I want the chart to display all contact.building values when the contact.company is "ABC."  Otherwise, ignore all other data. 
    If {Contact.Comp} = "ABC" then {Contact.Building} else ignore
    I am drawing a complete blank, so any hints are greatly appreciated.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • How to measure the frequency of the data plotted on the waveform chart

    i have made a virtual instrument in labview that acquire data (say sine wave) into a spreadsheet file and also on the chart from the function generator. I measured the frequency of the data from the chart but it is coming out to be very less. How can i calculate the frequency of the plotted sine wave and also from the spreadsheet file.

    If you want to get an idea of the base-frequency of an periodic signal, you can measure the number of samples in between two maxima or in between two minima of the periodic signal.
    Multiply the number of samples by the sample-interval (1/Fsample in [sec]) gives you a rough estimate.
    FFT, I mentioned is one of the more advanced calculation-methods.
    The method calculates the spectrum from a waveform.
    Hope this helps,
    Patrick

  • How to show two different plots with current system time and date on waveform chart

    I am using  one waveform chart to display the more than one value continiously. The data  are comming properly but i am not getting my system (pc) time and date on x axis. It is showing default date and time (i.e.01/01/1904 5:30:45). Please  give me suggestions to display the real time and date on x axis of waveform chart. 

    How does your data look like? Do you graph waveform data types, dynamic data, or plain arrays/clustes? In the case of plain arrays, you need to set x0 to the absolute start time of your data, e.g. with a property node.
    I you would attach your code (or an image) we could offer more specific advice. There are too many possibilities.
    LabVIEW Champion . Do more with less code and in less time .

  • How do I convert a 1-D array of cluster of 5 elements into a 2-D array of numbers? (history data from a chart)

    Hello,
    in my vi I have a chart with 5 Plots displaying measurement data.
    The user should be able to save all the history data from the chart at anytime. (e.g. the user watches the chart and some event happens, then he presses a "save"-button)
    I know, that I can read out the history data with a property node. That is not the problem. The problem is, how do I handle the data? The type of the history data is a 1-D array of cluster of 5 elements.
    I have to convert that data somehow into a 2 D-array of numbers or strings, so that I can easily save it in a text-file.
    How do I convert a 1-D array of cluster of 5 elements into a 2-D array of numbers?
    I use LabVIEW 7.1
    Johannes
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Solved!
    Go to Solution.

    Gerd,
    thank you for the quick response and the easy solution.
    Look what I did in the meantime. I solved the problem too, but muuuch more complicate :-)
    And I have converted the numbers to strings, so that I can easily write them into a spreasheet file.
    Johannes
    Message Edited by johanneshoer on 04-28-2009 10:39 AM
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Attachments:
    SaveChartHistory.JPG ‏57 KB
    SaveChartHistory.JPG ‏57 KB

  • How to plot bar chart using iReport with Struts 2

    Hi All
    Im working on iReport 3.5.1 to generate jasper report for our java enterprise application. Here, I have no problem, when im generating simple report[without any chart]. When i try to add a bar chart to jasper report, i coudnt get the exact chart what i wanted, im just getting some ridiculous chart which is exactly wrong, i guess the problem is with the data given to plot the chart. Do, anybody know how to transport data to plot the bar chart in iReport. For Simple chart im using javabeans to generate report, but for chart, how it should be?
    Thanks in advance
    Thanks and Regards
    Baskaran
    Edited by: Baskaran on May 22, 2009 12:36 PM

    jxl does not support create chart from scratch.
    Maybe you can do it by using excel template:
    define a chart in the sheet,using definedName or fixed range as chart data source.

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • How can I change the color of plot in a waveform chart and graph?

    There are 4 plots in a waveform chart, from plot0 to plot3, and I want to chang the color of plots dynamicly up to my needs when the VI is running.
    For example, as show in the picture, i want to set the plot0 as RED, and plot1 is BLUE, plot2 is YELLOW, plot3 is GRAY.
    If there is only one plot, i can change it's color, however when there are more than one plot, it fail.
    How can I do it?
    Thanks
    Attachments:
    waveform.JPG ‏61 KB

    Hello MilkyStone,
    first you have to set the active plot, then change its color (or other properties). All that is done using property nodes.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • How can transfer data from a dialog to another panel?

    Will anyone help me?Thanks. In our project,When the user need to fill some data into the textfield in a panel,he can simplify this action by click a button,when the button is clicked,then a dialog which contains a table of all the imformation of all

  • Syncing music to my new ipod

    I recently was given a new ipod and today tried to sync my music to from my itunes (my last ipod finally packed up a few months ago). When I started to copy my music, only about 1/3 of has gone onto my ipod and I got a message saying 'ATTEMPTING TO C

  • Adjusting exposure and white balance in LR?

    I'm fairly new to digital photography and want to start using LR for more than just tagging my images. I currently shoot with a 5DM3 at the highest .jpg quality settings. 1. Can I adjust white balance for .jpg files in LR? OR does it really need to b

  • Funny comments in Standard SAP programs!!

    Got this as a email forward, but was quite suprised to know the comments really exist in SAP Standard programs I guess many of them might be aware of it. This is for those who are not:-) Check these out 1) In the standard Include RSINFF01, line numbe

  • Help with circle applet

    I don't know why my compiler keeps saying: cannot resolve symbol - method addActionListener (java.awt.event.ActionListener) Here is the code. There could be other errors too. import java.applet.Applet; import java.awt.Graphics; import java.awt.Graphi