Plotting data against time points in a chart

I am trying to plot some measurements at different time points in a chart. However the time time points are not regular. They are at 0, 0.5 hours, 24 hours, 24.5 hours, 48 hours etc.
When I try to chart the data the chart always has the x-axis points at regular intervals so it doesn't represent change over time. Is there a way of charting the points at the relative point along the x-axis over time without having to use a table with a time point for every 30 mins?

Jwaz,
Read the chapter on Charts in the Numbers User Guide. You can download it from the Help Menu.
There are two basic classes of Chart; Category and Scatter. In a Category Chart, which it appears you are using, the "X-Axis Values" are actually treated as Labels with no particular numeric value. In a Scatter Chart, which it appears you would like to be using, the X-Axis uses true values.
If you study the available Chart types you will see that all but one are Category Charts. You can plot a line with a Scatter Chart by adding connecting lines. You can also simulate a bar chart in a Scatter Chart if that's the look you want, by charting series that have only two data points; X,0 and X,Y.
Which type of chart you pick will affect your choice of table layout. Category Charts require Text Fields for the Category Labels and Value fields for Y-Values. Scatter Charts require Values for both axes.
Jerry
Message was edited by: Jerrold Green1

Similar Messages

  • How to record the data against time?

    Hi there,
    I am doing a real-time measurement, and i get a 1-D dataflow  from the loading cell without time stamp.  I know how to record it and save it to a file. However, how to store the data against time? I know I can use "get date time in seconds.vi" to obtain the system time, but how to integrate it with the dataflow from the loading cell? it would be best if I can view the dataflow changing with respect to the system time in a waveform chat.
    Thanks.
    Mike

    You are doing a measurement with what? NI DAQ card or something else? The chart and saving to file are two different things. For an example of displaying time in a chart, look at the example called Real-Time Chart. How exactly do you want the time/measurement data written to file?

  • Save counter input data against time

    Hello, i would like to know about recording using a write to measurement file.
    When i record a data like analog input, at the save file with display the analog data against time.
    But when i tried to applied for the encoder, which is using counter input, in the .txt file dont display
    the result as analog input. So can someone give me a guide on what to setting on write to measument
    file to measure the revolution per minute rotation against time, thanks
    Solved!
    Go to Solution.
    Attachments:
    encoder recording.vi ‏180 KB

    There is no setting for the Write Measurement File. Your problem is that you are passing a scalar to the function and that scalar has no timestamp information. When you use an analog acquisition, the data type is either a waveform or dynamic data type. Below is one way to add the timestamp information. You also should have a delay or msec wait in your loop. This can be used for the dt information.
    Message Edited by Dennis Knutson on 09-24-2007 09:51 AM
    Attachments:
    Save Scalar with Timestamp.PNG ‏6 KB

  • Read from file and plot data against timestamp

    Hello,
    I know that there are already many posts regarding the question I m about to ask. But, I somehow dont seem to achieve what I want using the suggestions given in the other posts.
    My problem is that, I have a file with the first column as a time stamp containing hour, minute, second and millisecond. The second column in a set of pressure values. I want to plot a graph of these pressure values against the timestamp recorded in this .txt file. Whatever I do, the timestamp values seem to skip by a couple of seconds.
    How do i do this correctly?
    Also, Is it advisable to use the read from file or the read from spreadsheet file vi? Kindly help me out.
    Thanks and regards.

    Hey, I was having a similar issue the other day.  The first problem I had was how to open the file and actually get the timestamp information.  Since I'm using LabView 8.0, I had to go into Read Spreadsheet File and create a new vi to open strings (in an array form).  That's the Read Spreadsheet File (string) vi below.  Then, I had to figure out how to convert the string of a timestamp to something meaningful to me.  The Timestamp2.vi is how I did that below.  I'm also including a little test file.  So, to run Timestamp2.vi, you will have to input the right base path, and have the Read Spreadsheet File (string).vi in the same place as Timestamp2.  Hope that helps.  I think I'm finally getting this stuff, so let me know if it doesn't work.
    Attachments:
    Test.txt ‏1 KB
    Timestamp2.vi ‏28 KB
    Read From Spreadsheet File (String).vi ‏25 KB

  • Plotting Data on a fixed time axis from left to right

    I am plotting data on a Historical Trend graph from the DSC palette. I receive the data from a plc throughout the course of a production shift. I would like to have the start time of the shift (07:00) on the far left of the x-axis and the end time of the shift on the far right (15:30). I would like to plot the data from left to right as the shift progresses. Is this possible? How do I format?
    Many thanks for any input,
    Stuart Wilson

    Hi Stuart,
    All you need to do is place down a waveform chart and then modify the properties slightly in order to achieve this. If you right click and make sure autoscaling is turned off on the x-axis first of all, then go into the properties page and change the x-axis formatting to absolute time then you will be able to plot data with the actual time according to your system clock.
    The only problem you have now is that there probably isn't enough room on the chart to plot data for the entire time between 09:00 and 15:30 depending on how often you want to sample. The default number of data points to keep in the chart is 1024. Therefore if you try and change the max and min values to 09:00 and 15:30 then it won't allow you to set that up as it doesn't think you have enough room there. Right click on the chart again and go down to Chart History Length. Increase this number to a large enough number and then you will be able to set the start time to 09:00 and the end time to 15:30 and as long as autoscaling is turned off this will not change.
    Hope this helps, please find the attached example which will plot random numbers to a chart once a minute and the chart will plot data between these times.
    Best regards,
    Peter H.
    Applications Engineer.
    NIUK.
    Attachments:
    Large Chart.vi ‏16 KB

  • Cant add more data points to numbers chart

    I have a 2 axis 2D graph. I would guess i have about 150 data points along the y axis for both lines on the chart. I have been updating the chart each week no probem with new data points. However today, i can only seem to add a few more points - when i try to add past a certain amount of data points, the last 20 or so data points are removed from the series?
    It simply will not allow me to add more data?
    Any help on this matter would be greatly appreciated as the charts are for use in my business

    Hi Jerrold, thanks for the reply.
    I dont have category labels. I have a 2 axis 2D chart, with a line series and an area series on the chart. I add new data to the chart each week by clicking on either the line or the area series on the chart, then going to my data table beside the chart, and by holding apple command button and clicking on the relevant cells to add to the charts. As of this weeks adding, it starts of as usual, adding the cells to the line and area series, and thus adding data onto the existing chart and extending it out to the right, as it normally would. However, i can only add a certain amount of new cells (data points) to either the line or area series. When i go to add more, a very strange thing happens. The series switches from all the cells that are highlighted blue, to another table i have on the same document??? If i look at the Inspector in the Data box under the series tab, the data goes from the typical 'Table 1 :: D18', (highlighted in blue, to the following weird data point : 'D38,SFTGlobalID_CB7D88F601784CAC8DD283ECA59CFB41 :'
    Its worth noting that although i an working on a brand new macbook pro, numbers has crashed on me a number of times when adding large amounts of data to the chart The table has 1,120 rows, and 11 columns. Only 1 in every 5 or so rows are plotted (on y axis), so roughly 200 or so data points for both line and area chart are plotted. And only 1 column is used for each chart. Thus i have 11 charts on the one numbers document. Is it a case of too much for numbers to handle?
    I have just deleted all the y axis data for the area series for one chart, and added all the data from the whole table again, (rather than just adding this weeks to last weeks, which is where i saw the problem in the first place) to see if it made a difference. But none. Once i got to a certain point, if i add one more cell data point to the chart, the exact same thing happened as above - the highlighted data switched from what i had been highlighting the whole way down the table, to an entirely different table in the same workbook.
    Any ideas would be greatly appreciated.

  • Plot dynamic data with time stamp

    Hi All
    I would like to create a plot of dynamic data, (Voltage readings taken with an In 6008) versus time.
    When the loop starts taking voltage data I would to plot the data versus elapsed time. Voltage versus time elapsed. I have read many examples and tried for many hours to get this to work.
    Please help!
    Mike

    Hi Mike,
    Are you using a Waveform Chart? A chart will continuously plot the data versus time as it is acquired. Try right clicking on the x-axis and selecting Properties>> Display Format. Here you can change the way time is displayed on the x-axis. You can also adjust the way the data is displayed by right clicking and going to Properties>>Appearance>>Update Mode.
    I hope that helps! If not, can you indicate what specifically you have set up in your code and how the result is different from the plot you would prefer to create.
    Thanks,
    Matt
    Product Owner - NI Community
    National Instruments

  • How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?

    How do I get the numbers ipad app to plot a graph of dates against values, where the most recent date is on the right of the graph, but the most recent date is at the top rather than bottom of the rows in the table?
    Also how can it be a line graph without plotting a circle at each value?
    Thanks this is very frustrating

    Make a copy of the table and produce your Line chart or Bar chart from the copy. Sort the copy into the order you want to see in your chart.
    Alternately you could use a Scatter Chart...
    Jerry

  • 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

  • How to add more data point in Pie chart

    The default data point for Pie chart is 5, how could I add more data  point, I notice that I can do assign the cell to the value under data in General tab property of chart pie, but, in the sample drill down, there is no value for that value, and it still has 6 data point.

    Hi DFW
    The sample file has got the spreadsheet range missing thats all.  Just add the range you need to your pie chart.
    Regards
    Charles

  • Query to bring 6 rolling pay check date at any point of time

    Hi,
    we have a date dimension dim_date which is having calendar date. I need to write a query which will always bring 6 rolling pay check dates ant any point of time. there is 14 days gap between each pay check date and it is fall on friday. please take below example as a reference and help me to write query as per my requirement. thanks in advance.
    pay check date example:
    3/23/2012
    3/09/2012
    2/24/2012
    2/10/2012
    1/27/2012
    Thanks
    Jay.

    The to_char function with 'D' mask returns the day of the week:
    Sunday is 1, we need to sum 6-mod(1,7)=5 for next friday
    Monday is 2, we need to sum 6-mod(2,7)=4 for next friday
    Tuesday is 3, we need to sum 6-mod(3,7)=3 for next friday
    Wednesday is 4, we need to sum 6-mod(4,7)=2 for next friday
    Thursday is 5, we need to sum 6-mod(5,7)=1 for next friday
    Friday is 6, we need to sum 6-mod(6,7)=0 for next friday (well, current or next friday)
    Saturday is 7, we need to sum 6-mod(7,7)=6 for next friday
    So, we always need to sum 6-mod(to_char(sysdate, 'D'), 7) to found the current or next friday:
    SQL> select to_char(sysdate+6-mod(to_char(sysdate, 'D'), 7), 'yyyy-mm-dd') next_friday from dual;
    NEXT_FRIDAY
    2012-02-17
    And, adding other 14 days for each next rolling pay chack, we have:
    SQL> select to_char(sysdate+6-mod(to_char(sysdate, 'D'), 7), 'yyyy-mm-dd') rolling_dates from dual
    2 union all
    3 select to_char(14+sysdate+6-mod(to_char(sysdate, 'D'), 7), 'yyyy-mm-dd') rolling_dates from dual
    4 union all
    5 select to_char(14+14+sysdate+6-mod(to_char(sysdate, 'D'), 7), 'yyyy-mm-dd') rolling_dates from dual
    6 union all
    7 select to_char(14+14+14+sysdate+6-mod(to_char(sysdate, 'D'), 7), 'yyyy-mm-dd') rolling_dates from dual
    8 union all
    9 select to_char(14+14+14+14+sysdate+6-mod(to_char(sysdate, 'D'), 7), 'yyyy-mm-dd') rolling_dates from dual
    10 union all
    11 select to_char(14+14+14+14+14+sysdate+6-mod(to_char(sysdate, 'D'), 7), 'yyyy-mm-dd') rolling_dates from dual;
    ROLLING_DA
    2012-02-17
    2012-03-02
    2012-03-16
    2012-03-30
    2012-04-13
    2012-04-27
    6 rows selected.
    Please check the results in your instance, because week day numbers are NLS dependents
    I hope this helps
    Best Regards
    Alfonso Vicente
    [http://www.logos.com.uy/el_blog_de_alfonso]

  • How to find the shipping point creation Date and time

    Hi All,
      Could you please help to solve this issue.
       Some of the users created shipping point, Now I have to find out in which date and time the shipping points were created, is there any table to find. please help me.
    Regards,
    Muralikrishna

    hi Murali,
    first define and assign shipping point in enterprise sructure in define shipping point EC07 and assign in OVXC
    goto OVL2 and assign the shipping points
    The following are used for the shipping point determination:
    1. Shipping conditions - Proposed from CMR. The entry in VOV8 for the sales document type if there overwrites the entry in the shipping conditions mainatined in the CMR.
    2. Loading group - Proposed from the material master record.
    3. Plant - proposed from CMIR - if not found then CMR - if not found then MMR.
    But you should first define and assign the shipping point in the "enterprise structure" otherwise you will not be able to do the shipping point determination.
    IMG - logistics execution - shipping - basic shipping functions - shipping point & goods receiving point determination - assign shipping points.
    Shipping point definition:
    IMG - enterprise structure - definition - logistics execution - define, copy, delete, check shipping point. You have to define the shipping point here for the particular plant.
    Shipping point assignment:
    IMG - enterprise structure - assignment - logistics execution - assign shipping point to plant. Here select your plant and assign the shipping point to the same.
    hope this helps,
    cheers,
    Hema.

  • GoTodate goes to point at or NEAR (??) the specified date and time

    Hi,
    From documentation:
    " GoTodate goes to point at or NEAR (??) the specified date and time"
    so i want to know, please, what does it mean Near the specified time and the reasons about that
    Thank you in advance

    Hi Khaled,
    The exact time point depends on the history option for tracking changes to data in version-enabled tables,
    as set by the EnableVersioning procedure (or modified by the SetWoOverwriteOFF or SetWoOverwriteON procedure):
    NONE: The read-only view reflects the first savepoint after in_date (or the latest data in the workspace if there is no such savepoint).
    VIEW_WO_OVERWRITE: The read-only view reflects the data values in effect at in_date.
    VIEW_W_OVERWRITE: The read-only view reflects the data values in effect at in_date, except if in_date is between two savepoints and data was changed between the
    two savepoints. In this case, data that had been changed between the savepoints might be seen as empty. To ensure the most complete and accurate view of the data, specify the VIEW_WO_OVERWRITE history option when version-enabling a table.
    The following example scenario shows the effect of history option on data seen after gotoDate. Consider the following table:
    Employee( NAME varchar2(30) primary key, MANAGER_NAME varchar2(30));
    Now assume the following sequence of events:
    1. Time=t1: The row ( 'SCOTT', 'ADAMS' ) is inserted into the table Employee.
    2. Time=t2: Savepoint SP1 is created.
    3.Time=t3: The MANAGER_NAME value for SCOTT is changed to Baxter.
    4.Time=t4: The time point that will be specified as in_date (in step 7) occurs.
    5.Time=t5: The MANAGER_NAME value for SCOTT is changed to Chang. (Thus, the value has been changed both before and after in_date since the first savepoint and before the second savepoint.)
    6.Time=t6: Savepoint SP2 is created.
    7.Timw=t7: A DBMS_WM.GotoDate(t4) operation is xecuted, specifying the time point 't4' in step 4 as in_date.
    The data seen after gotoDate for different history options is as follows:
    NONE: The row ('SCOTT', 'Chang') is seen. This is because the first savepoint after the specified instant is SP2. Note that in this case, after step 5 the versioned table has two rows for the primary key 'SCOTT': ('SCOTT', 'ADAMS') and ('SCOTT', 'Chang').
    VIEW_WO_OVERWRITE: The row ('SCOTT', 'Baxter') is seen.
    After step 5 the versioned table has three rows for the
    primary key 'SCOTT':
    ('SCOTT', 'ADAMS'),
    ('SCOTT', 'Baxter') and
    ('SCOTT', 'Chang').
    This is because each change is done in a new copy of the row.
    VIEW_W_OVERWRITE: No row is seen for 'SCOTT'.
    The updates in steps 3 and 5 are done in the same copy of the row, and the update in step 5 overwrites the update in step 3. As a result, after step 5 the versioned table has two rows for the primary key 'SCOTT':
    ('SCOTT', 'ADAMS') and ('SCOTT', 'Chang').
    Since the value in effect at the specified instant (i.e., 'Baxter') has been overwritten,no row is shown for 'SCOTT'.
    Regards,
    Ram
    Workspace Manager Group

  • Plotting Data on Graph

    Hi there, I have the following question that I would like to ask.
    I am currently receiving binary data from my ADC chip that I connected to labview via NI data accquirsation card. For every 10 bits of binary data, I have programmed labview to convert it to a decimal number. Therefore, I will constantly be having a set of decimal number in labview.
    Now I will like to plot this set of decimal number on a graph. Since I am using Analog to Digital chip to convert my Sine Wave, eventually what I am suppose to see on the labview graph, would be something like a dotted Sine Wave, which is made up of the decimal number that I had converted.
    My question is how can I build my program so that this set of decimal number can be plotted in a Amplitude and Time Domain on  the Graph?
    Ultimately, what I need to achieve is actually to do a FFT on this constructed waveform so that I can get the frequency of the waveform.
    Therefore, is there is a way to just supply the set of decimal number that I get and do FFT straight away so that I can retrieve the frequency of the waveform and bypass the step of plotting it onto a graph? 
    Hope you can understand what I am trying to say.
    Thanks and Regards
    Keith Tan

    It's not clear what you're exactly doing. You said "I tried to pump the set of 10bits words into a graph". What does this mean? How are you converting the 10 bits to a number? What numeric representation are you using? Integer or floating point? Also, are you using a waveform graph, or a waveform chart? If you feed one number to a graph, then you will only see one point. A chart, on the other hand, has a history, so it will plot that point, plus all the others that have been fed before (up to the history length).
    Can you show us some code?
    UPDATE: Hold on. This seems to be the same question as this one. Please stick to one thread so everyone can see what's already been covered and suggested, and folks don't waste their time answering something that's already been answered. 
    Message Edited by smercurio_fc on 06-11-2009 08:20 PM

  • Function Modules for Data and Time

    Hi all,
              I need 2 function modules for date and time. when we pass current data(sy-datum) and current time (sy-uzeit) into function modules, shoud get date in <b>dd/mm/yyyy or dd.mm.yyyy</b> and time in<b> HH:MM:SS</b> formats.
    Thanks in advance

    Hi Ranjith,
    i think this will b usefull for you..
    SAP Bar Chart Function Modules and what they are used for
    Function module
    Used for
    BARC_GRAPHIC_PBO
    Starting bar chart at PBO time, using a graphic profile (parameter PROFILE)
    BARC_GRAPHIC_PAI
    Analyzing data returned by the graphic
    BARC_SET_TIME_AXIS
    Setting start and end of time axis
    BARC_SET_OPTIONS
    Setting options
    BARC_ADD_CHART
    Creating a chart
    BARC_SET_CHART_ATTRIB
    Setting chart attributes
    BARC_ADD_SECTION
    Creating a section on the time axis
    BARC_SET_SECTION_ATTRIB
    Setting section attributes
    BARC_ADD_RIBBON
    Adding a ribbon to the time axis
    BARC_SET_RIBBON_ATTRIB
    Setting attributes for ribbons in the chart
    BARC_ADD_GRID
    Adding a time grid
    BARC_SET_GRID_ATTRIB
    Setting grid attributes
    BARC_ADD_LAYER
    Adding a layer (graphic elements)
    BARC_SET_LAYER_ATTRIB
    Setting layer attributes
    BARC_ADD_LINE
    Adding a line
    BARC_ADD_CALENDAR
    Creating a calendar
    BARC_SET_CALENDAR_ATTRIB
    Setting attributes for a calendar
    BARC_ADD_TIME_PROFILE
    Creating time profiles
    BARC_SET_TIME_PROFILE_ATTRIB
    Setting attributes for time profile
    BARC_ADD_INTERVAL
    Adding a time interval
    BARC_SET_INTERVAL_ATTRIB
    Setting time interval attributes
    BARC_ADD_TIME_OBJECT
    Creating a time object
    BARC_CONVERT_DATE
    Creating a date string in bar chart format
    BARC_REVERT_DATE
    Converting a date string in bar chart format to date and time
    BARC_ADD_DATELINE
    Creating a date line
    BARC_SET_DATELINE_ATTRIB
    Setting dateline attributes
    BARC_GET_PROFILE_CONTENTS
    Obtaining profile contents for customizing a chart
    BARC_GET_COLUMN_WIDTH
    Selecting new column width
    BARC_SET_COLUMN_WIDTH
    Setting the column width
    BARC_GET_TEXTINDEX
    Obtaining the text index of a field
    BARC_SET_LABELS
    Positioning the chart display
    BARC_SET_COLUMN_ATTRIB
    Setting column attributes
    BARC_SET_ROW_ATTRIB
    Setting row attributes
    BARC_SET_ROW_HEIGHT
    Setting the line height
    BARC_SET_MAXCHARTS
    Setting the maximum number of charts sent
    <b>If its usefull reward points
    </b>

Maybe you are looking for

  • ICal not showing any events on certain dates.

    Preface: I'm an intermediate computer user and I have never experienced an issue that I was not able to resolve with some troubleshooting, until now. Starting yesterday, iCal would not allow me to view/create events on dates March 13th - March 17th i

  • Reshape Java Array

    Is there a simple way of reshaping arrays in Java? (From A to B) From A =     1    4    7    10     2    5    8    11     3    6    9    12           ... to this: B =     1    3    5    7    9   11     2    4    6    8   10   12I've looked at the mat

  • Google maps street-level view works in Safari but not Firefox 3.6.8

    I've lost the ability to see street-level views in Google Maps, probably in the last couple of months, and suspect Firefox.

  • Adobe Acrobat Pro 8.0 freezes on "next page" command on document

    I have gotten stuck where my Acrobat 8 Pro crashes every time I hit "next page" button on a certain document. Document works fine in Windows and with Preview. Acrobat crashes everytime. From system log, message is: Oct 25 18:30:47 PerryMacintosh /App

  • How to connect 2 SAP BW systems to one SAP BO?

    Hi Two companies from the group I'm working for wants to connect their BW system to corporate BO system. BW system are independent of each other. My concern is about SSO authentication. Will it be any problem to configure SSO between BO and BW if 2 B