Display Data on waveform chart or XY graph over a long period of time

Display Data on waveform chart or XY graph over a long period of time
Can anyone help?
I am acquiring data from an Ni DAQ card with the following parameters - sample rate = 12800, number of samples = 4096. I want to extract order information so as to track changes in the amplitudes of certain frequency harmonics. So I use the sound and vibration toolkit to extract this information as shown in the attached Vi.  I will like to plot the resulting amplitudes against real-time starting at the time the Vi was run.  I really want the display to show these changes over long periods (eg. days, months and even years).
Problem.
I have tried to plot the Y component of the resulting magnitude for a given order on a waveform chart. My choice of the waveform chart is because I also want to display  alarm limits (using the mask and limit vi) (I can't have these lines displayed on an XY graph plot).  I tried adjusting the scale offset using the property node and setting the offset to current time. However, the display on the X-axis can only show a span of  2 minutes as will be seen when you run the attached vi. I want the time display on the x-axis to be over a period of  days, months  and even years.  Is there a way to set the maximum scale on the x-axis to be say a year or so in future.
I really want the display to be like the one in in the second attachment.
Attached is a sample VI created using an Ni USB 9234 DAQ card. Any card will do but I am only getting the signal from one channel for this example
I will appreciate any help that can be given to me.
Thanks
Attachments:
Real-Time Graph Display.vi ‏170 KB
Sampe screen1.doc ‏37 KB

Long term testing can be tricky- and we'l get into that later.  Lets start with the basics that you have wrong.
The vi as you have constructed it has only one memory element, the chart history length (default is 1024.)
You can change the number of points the Chart will remember by Right-clicking the chart an select Chart History Length from the menu.
But for a long term test - and one where you want to REMEMBER the first value you need a memeory element that is independant of the application.  Your PC WILL loose power or need to be rebooted eventually.  Heck it might even need to be replaced! you really need to store your data in a file. Preferablly in a file that is backed-up on a regular basis so you don't lose every point of data if the PC dies.  It realy hurts when you have to restart a 2yr test because you've lost the 18months of data you collected.
For an application like this I would seperate my "collection" and "Evaluation" operations. 
Have one vi that takes the reading and writes it to a file at a configurable rate  You may want 1reading  per minute for seveal days then 1 per hour for a few weeks- then maybe only once or twice a week for the next couple of years since you are looking for LONG TERM stability.  having too much data to evaluate can take a lot of digging to find the few things that interest you (but always take more that you think you need)
Have another utility that COPIES the files, reads them and displays the data you are interested in that day.  The data you want to look at won't change over time HOWEVER, you WILL want to analize it in different ways depending on what the data trends look like.  Having seperate routines for collection and display allows you to update the display style and analisys without even stopping the collection vi (much less editing the vi)
Jeff

Similar Messages

  • 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 to display value in waveform chart

    dear sir
    i am using labview 7.0 with dsc module for scada.
     now i want to display the difference between two tags value in waveform chart. Also i want to display that difference value on y axis and system date and time on x axis continously. Also if there will change in that tag value then there should be reflection of that value on wavwform chart with system time. Really i am in trouble. please help me.
    falgandha mohire

    Nadim,
    Why would an XY graph be preferable to using a Waveform Chart where the "t0" is the time of the measurement?
    I don't get it.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Write data from waveform chart to excel

    Hi,
    I am trying to create a button that save de real time values recieved in a waveform chart. I don't know how to save it alls, because I don't know if is needed a buffer to save all or how can I do it.
    It wil be faboulous if someone give me ideas!
    Thanks so much for your support!
    Solved!
    Go to Solution.

    Hi mlop,
    You can go through the attached VI. You will get some idea of how to do it..
    Regards,
    Nitzz
    (Give Kudos to good Answers and Mark it as a Solutoin if your problem is Solved) 
    Attachments:
    Untitled 2.vi ‏9 KB

  • How to display data from mySQL database as a graph?

    I am working in DW, is there any function to insert graphs from recordset?

    My webpage is in php, don't tell me i have to work in coldfusion in order to display my data from mySQL graphically.
    Look at this link: http://www.adobe.com/devnet/coldfusion/articles/basic_chart.html

  • Unable to display data in a chart, got error: No connection could be made .

    Hi Expert,
    I am running sample SH in OracleBI Answer. The retrived data in a table is fine, but I can't dispaly a chart.
    Thanks
    Helen
    Here is the error message:
    Error Generating Chart
    An error occurred during execution of "connect". No connection could be made because the target machine actively refused it. [Socket:764]
    Error Details
    Error Codes: ETI2U8FA
    I am using oc4j
    Here is website:
    http://5y2xch1:9704/analytics/saw.dll?Answers&SubjectArea=SH
    Here is SQL
    SELECT Products."Prod Name" saw_0, Calendar."Calendar Month Desc" saw_1, Calendar."Calendar Month Name" saw_2, "Sales Facts"."Amount Sold" saw_3 FROM SH ORDER BY saw_0, saw_1, saw_2
    Here is xml in Advance
    <saw:report xmlns:saw="com.siebel.analytics.web/report/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlVersion="200705140" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sawx="com.siebel.analytics.web/expression/v1">
    <saw:criteria subjectArea="SH">
    <saw:columns>
    <saw:column formula="Products.&quot;Prod Name&quot;" columnID="c2"/>
    <saw:column formula="Calendar.&quot;Calendar Month Desc&quot;" columnID="c0"/>
    <saw:column formula="Calendar.&quot;Calendar Month Name&quot;" columnID="c1"/>
    <saw:column formula="&quot;Sales Facts&quot;.&quot;Amount Sold&quot;" columnID="c3"/></saw:columns></saw:criteria>
    <saw:views currentView="2">
    <saw:view xsi:type="saw:compoundView" name="compoundView!1" rptViewVers="200510010">
    <saw:cvTable>
    <saw:cvRow>
    <saw:cvCell viewName="titleView!1">
    <saw:displayFormat/></saw:cvCell></saw:cvRow>
    <saw:cvRow>
    <saw:cvCell viewName="tableView!1">
    <saw:displayFormat/></saw:cvCell></saw:cvRow></saw:cvTable></saw:view>
    <saw:view xsi:type="saw:titleView" name="titleView!1" rptViewVers="200510010"/>
    <saw:view xsi:type="saw:tableView" name="tableView!1" rptViewVers="200510010" showHeading="false"/>
    <saw:view xsi:type="saw:staticchart" name="staticchart!1" rptViewVers="200510010">
    <saw:template tid="charts/column.cxml"/>
    <saw:selections>
    <saw:categories>
    <saw:category position="0">
    <saw:column columnID="c2"/></saw:category></saw:categories>
    <saw:measures>
    <saw:column columnID="c3" position="0"/></saw:measures>
    <saw:seriesGenerators>
    <saw:measureLabels/></saw:seriesGenerators></saw:selections>
    <saw:canvasFormat/></saw:view></saw:views></saw:report>
    Edited by: user914594 on Feb 4, 2011 8:22 AM

    Hi,
    Check weather Oracle BI Javahost server is on or not.On if server is down.
    Go to Start->Run->Services.msc
    Which version of OBIEE are you using?
    Regards,
    Srikanth

  • How can I display more than 1 loop iteraction in a waveform chart?

    Using DAQmx, I am inputting a signal at a rate of 10k with 1k samples inside a while loop. I want the first 3 seconds of data to display on a waveform chart without having to change the rate or number of samples. Is there a way to stop the waveform chart from clearing after every loop iteration so that I can display more than 0.1sec of data? Thank you for any help you can provide!

    The default history length of a chart is 1024. To make it longer is a right click option.

  • Saving array data from a waveform chart

    I am using a CRIO 9004 and a 9237 bridge module to measure some strains from strain gauges. I've got one timed loop that reads the DMA FIFO and puts the arrays of values (16 data points, 4 per channel) into a queue. In the consumer timed  loop a For loop scales the binary data, auto indexes it into arrays, then the arrays are merged into a 2D array for the four channels  displayed on a waveform chart . Everytime the consumer loop runs it indexes 4 data points (per channel) yet the waveform chart plots them in a consecutive manner and doesn't overwrite the previous four. If I convert the arrays to waveform arrays I don't see anything on the waveform chart.
    If I pass the 2D array of data to a array indicator inside or outside the consumer loop I get only 16 data points. I want to save the information that appears on the waveform chart  after the consumer loop but because I'm not using waveform data type I can't use the write waveforms to file vi. The waveform chart history buffer has been set to 195360.
    Idealy we will run the four channels for 120 seconds charting the data and saving the data. The minimum data rate is 1613kS/s (403 per channel) The data can be saved after the loops have finished gathering and processing or while they are running. I noticed when I tried to write to TDMS it slowed the consumer down. Same thing if I use a shift register with the volume of data.
    I suspect I'm not sending data to the chart in the correct manner ( usualy takes two attempts to "clear chart" using shortcut menu).  I'm not too familiar with timed loops /producer consumer loops  and just tried to put something together based on examples.
    I've attached my host vi and front panel screenshot.

    Hope they appear attached this time.
    Attachments:
    Basic DMA (Host).vi ‏444 KB
    screenshot2.jpg ‏113 KB

  • Problem with chart displaying data correctly

    I have created a bar chart that displays data for each day of the month. The majority of the time this chart displays the information corrrectly. However now and again the bars of the chart appear much larger than they should meaning that instead of showing 30 or 31 seperate bars it can only display half that amount due to the increased size of the bars. If you display the same chart again then the problem will often disappear.
    I am using Coldfusion MX 7 version 7.0.2 Enterprise Edition. Ihave installed all the latest updates up to Cumulative Hot Fix 3.

    Hi,,
    I have checked that the data being passed is correct and it seems to be. Chart code below.
    Thanks
    <cfchart chartwidth="700"
       chartheight="300"
       pieslicestyle="solid"
       show3d="no"
       showlegend="no"
       fontsize="12"
       xoffset="0.0"
             yoffset=".0">
    <cfchartseries type="bar"
       query="chartquery"
       serieslabel="Date_Accessed"
       valuecolumn="namecount"
                itemcolumn="date_created">
        </cfchart>

  • Adding a plot to a Waveform Chart

    I have a waveform chart being used in an application.  In the
    sequence of events, I first create upper and lower limits to display on
    the chart based on a tolerance.  This means that I've set up the
    chart with two plots before the program begins, and I'm only showing 20
    seconds worth of data to the user at a time (the run may be up to 1200
    seconds).  When the user hits the run button, the tolerance limits
    are pulled from a file, then displayed on the waveform chart, and the
    chart begins at time 0.
    Once the program starts, I need to add a plot to the Waveform Chart
    that will visually show the user where they are in relation to the
    tolerances that have already been plotted.  This plot contains a
    frequency value read from a counter input.  My question is - how
    do I go about adding this plot to the waveform chart while keeping the
    upper and lower tolerances displayed on this chart?  I've looked
    through the property nodes, but can't find anything related to plotting
    the value in relation to time.
    I've attached a screenshot to provide some idea of what I'm trying to
    accomplish.  The upper Waveform chart shows the upper and lower
    tolerances.  The actual plot I want to add won't show up during
    the run, but once the run is complete, the user will be able to use the
    X Scrollbar to roll back and see the actual trace.  I am working
    now on an indicator that will provide an arrow to show the user where
    they are within the Waveform Chart.  The bottom graph shows the
    entire run of the trace, along with cursors, that provide the user with
    a point of reference during the test.
    Thanks for any help!
    tsc
    Attachments:
    waveform_chart.JPG ‏36 KB

    Here's a quick example (LabVIEW 7.1).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    updateGraph.vi ‏38 KB

  • Waveform chart number of clusters

    I am in the process of modifying a VI worked up by one of my coworkers.  My setup has 4 waveforms coming into a "Bundle" block and then the resulting cluster going to a waveform chart.  My coworker's VI was working with 8 waveforms.  When I copied his waveform chart into my VI and tried to connect the bundle of now 4 waveforms to that waveform chart, it gives me the error "You have connected 2 clusters with different contents.  Clusters (unnamed), a cluster of 4 elements, conflicts with cluster waveform chart, a cluster of 8 elements."  How do I change the number of elements that the waveform chart is expecting?  I've been poking around at it for a couple hours and havn't found a solution.  I tried creating a new chart but can't figure out how to make it accept clusters instead of the default double precision input.  Let me know if you need more description.  Thanks.

    I don't think it's possible to send in a cluster of waveforms to a waveform chart at all, regardless of how many waveforms are in the cluster. To send in multiple waveforms into a waveform chart, build them into an array of waveforms.
    You do need to bundle scalar data into a cluster when sending multiple single-point signals into a waveform chart so that the waveform chart doesn't confuse an array of separate signals with an array of values from one individual signal.
    Charts automatically change to the data type that is input into them. By default, they're scalar doubles. If you wire a cluster of scalars into them, then they change into scalars. My guess is you had a waveform chart configured to be a cluster of scalars, and then you were trying to wire an cluster of waveforms into it.
    In any case, always refer to the example Charts.vi in the Example Finder (Help >> Find Examples from LabVIEW) for examples of properly sending in data to waveform charts. For waveform graphs, the example is called Waveform Graph.vi, and for XY graphs the example is called XY Chart.vi. Hope this helps!
    Jarrod S.
    National Instruments

  • Average value for waveform chart

    Hello everyone.
    Can i make a time interval, where i can measure average value for a waveform chart ?
    for example fom 0:30 to 0:45
    I have uploadet my VI
    Thanks in advance
    Oesen
    Best regards
    Oesen
    Solved!
    Go to Solution.
    Attachments:
    Trykmaaling.vi ‏83 KB

    Oesen,
    When you are displaying data on a chart, the newest data is appears at the right of the previous data. When the chart history buffer is full (default length = 1024), adding a new point deletes the oldest point.  Visually it appears that the data slides to the left as new data is added to the right end.
    My question relates to how the user would "tell" the program what data to average. In the image you posted you marked a segment of the data to be averaged.  Suppose the user marks point "A" as the beginning of the segment. While the user is deciding where to put mark "B" additional data is acquired and point "A" disappears because it is beyond the history length.  What does the program do in such a case?   A slight variation is the situation where both "A" and "B" have been marked but some of the data is deleted from the history before the averaging or other processing has begun.
    Lynn

  • Working with Large data sets Waveforms

    When collection data at a high rate ( 30K ) and for a long period (120 seconds) I'm unable rearrange the data due to memory errors, is there a more efficient method?
    Attachments:
    Convert2Dto1D.vi ‏36 KB

    Some suggestions:
    Preallocate your final data before you start your calculations.  The build array you have in your loop will tend to fragment memory, giving you issues.
    Use the In Place Element to get data to/from your waveforms.  You can use it to get single waveforms from your 2D array and Y data from a waveform.
    Do not use the Transpose and autoindex.  It is adding a copy of data.
    Use the Array palette functions (e.g. Reshape Array) to change sizes of current data in place (if possible).
    You may want to read Managing Large Data Sets in LabVIEW.
    Your initial post is missing some information.  How many channels are you acquiring and what is the bit depth of each channel?  30kHz is a relatively slow acquisition rate for a single channel (NI sells instruments which acquire at 2GHz).  120s of data from said single channel is modestly large, but not huge.  If you have 100 channels, things change.  If you are acquiring them at 32-bit resolution, things change (although not as much).  Please post these parameters and we can help more.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Combining 2 readings into a waveform chart/graph displaying continuous readings of data from different sources

    Hi,
    In the file
    (Serial Read and Write to .tdms & Compare on Graph – test.vi) I am trying
    to integrate the following two waveforms into a single waveform: Realtime
    reading and Waveform chart (open vi to see). Both of them display speed vs time
    but from different outputs. One comes from an excel file (Teraterm – Results.xlsx
    – sheet 4, (column 3:row 4) to (column 3:row 1878)) and the other comes from
    the Serial input which is in Hex format and is split to get the various readings
    of speed, voltage etc. I have already wired speed to a variety of waveform
    outputs, but all result in broken wires.
    The readings are taken in by the program
    and but I am unable to wire the two readings together into one graph. 
    Please do let me know as to how can I make this work.
    Thanks in Advance.
    Best Regards,
    Akhil
    Kumar Meesala (Mr.)
    Year
    4 | Undergrad | Mechanical Engineering
    National
    University of Singapore
    Email:
    [email protected]
    Mobile:
    (+65) 9326 7069
    Solved!
    Go to Solution.
    Attachments:
    Serial Read and Write to .tdms & Compare on Graph - test.vi ‏58 KB
    Teraterm - Results.xlsx ‏593 KB

    Dear GerdW,
    I'm sorry again about the misspelling your nick. 
    I tried connecting a waveform chart to the two terminals (speed from the DAQ and speed from the excel file) but I was unable to get the connection right. I understand that charts are used for readings which are equally spaced out, whereas XY graphs are used when the readings are not be spaced out uniformly. But I am unable to wire the connections correctly.
    Actually the DAQ device continuously sends out data through the serial port. So I would not run out of data . Are you referring to the data coming from the DAQ device or the excel file? I actually have not thought of what would happen when the excel file would run out of values I am just hoping for the software to run till then for now
    I have cleared up the wires as well Thanks for your help.
    Best Regards,
    Akhil Kumar Meesala (Mr.)
    Year 4 | Undergrad | Mechanical Engineering
    National University
    of Singapore
    Email: [email protected]
    Mobile: (+65) 9326 7069
    Attachments:
    Get Excel Values.vi ‏25 KB
    read_excel_values.llb ‏201 KB
    Serial Read and Write to .tdms & Compare on Graph - test.vi ‏79 KB

  • How to set maximum number of data points displayed on waveform chart?

    I have a waveform chart set to x-autoscale, but after about 1000 data points, it begins to scroll again. How can I display all of the data points being collected, say 2000 points?

    Right click on the chart and select Chart History Length. Enter the value that you need. The maximum is 2147483647 points.

Maybe you are looking for

  • Drop and recreate table in stored procedure

    Hi all When creating tables using Transact-SQL scripts, I have always preferred to drop the table if it exists and then create it explicitly using CREATE TABLE.  For two reasons: 1) It does not matter if it is the first time the SP is run ie. if I cr

  • My Horrible ShopBlackB​erry Passport Buying Experience

    Created an account as I've read that this is the only channel of communication getting any response from BlackBerry directly for this situation. I am very disappointed with my ShopBlackBerry purchasing and customer service experience of the Passport.

  • ORA-01476: divisor equal to zero

    When I try to run this query I get error 'ORA-01476: divisor equal to zero'. How can I write the query so it understand that it not should use Sum(SalesQuantity)=0 And Sum(Net_Sales)=0 in the Case? SELECT year_month, customer, (Sum(Case When record_t

  • SYNC_INDEX_TEXT  online?

    May I execute ctx_ddl.sync_index at any time? Does This sentence adquire locks? Does This sentence avoid updates on the table in which the index is defined? or Do the updates on the table lock the execution of the sync_index operation? Sorry for my e

  • Print to Video on Panasonic PV-GS320?

    How do I do this? Every time we try, we just get a blank screen. I've got the settings at: Device Control Preset: Firewire NTSC Video Playback: Apple Firewire DVCPRO NTSC (720x480) Audio Playback: Firewire DV Camera is set to LP. Aspect Ratio on both