Plot absolute time

Hi,
I am reading data that contains date and time when the event occured and I need to plot that on xy chart in absolute time scale.
This is my example text line...
1/10/2007 3:51:53 PM Event Happened.....
1/10/2007 3:52:45 PM Event 2 happened....etc...
I searched other posts and couldn't find the right example...
Can someone please help me with some example? I really appreciate the help...
Thanks~!

Hi tgif,
Welcome to the wonderful world of log parsing.
LV doesn't like to graph categorical data (event 1, event 2) as well as it likes to graph continuous data (1, 2, 3... ).  This means that one possible solution is to convert your categorical data to numeric data.  The problem is, for that to work, you'll need to know at least most of your events in advance.
Be that as it may, there are some things that will make your life easier: your date/time stamp in your log should always be in the same place/format.  Your events should be easy to recognize (delimited with tabs or other unique characters, for instance).  Data corruption should be minimal (some log writers have real problems with that).
In any event, my version of sample code is attached.
Good luck (and <wave> to Dennis),
Joe Z.
Attachments:
Parse_And_Graph.vi ‏52 KB

Similar Messages

  • Plot data with absolute time

    Why is it that when I plot an array of data to a wavechart and changed the time (x axis) to absolute time, it always display 12/31/1903? Thanks,

    Have some patience, most people don't necessarily rush to the internet on the weekend.
    To answer your question, LV's time data is represented by the complete number of seconds that have passed since 01/01/1904 00:00 GMT. That means that the number 0, timewise, is that time. Since you are west of Greenwich, you get december 03.
    You need to set the starting time for your chart as the current time. You may also need to set the space between each 2 points you plot to the chart. You need to create a property node. Right click on the control or the terminal and select Create>>Property Node. Then, Find the X-Scale>>Offset & Multiplier properties. These set what you need. For offset you should set the current time when you start (use To DBL to convert) and for multiplier the plotting loop speed in seconds (100 ms is 0.1).
    Try to take over the world!

  • Labview absolute time waveform chart to excel

    Hi everyone, I have a bit confusing on absolute time waveform chart. My problem is when I want to export to excel, the data duplicate nearly 30 times for each second. My project is about collect temperature from serial port and plot it in waveform chart, and I want to view history data in excel.
    Anyone can help to solve my question? I attached my vi here..
    Thank you so much..
    Attachments:
    NEW FINAL1.vi ‏96 KB
    snap.PNG ‏11 KB

    You are getting such a large number of readings because your VI has no timing control in it, if you simply add in a delay somewhere of maybe migrate to an event structure with a timeout then you can control the number of readings that are taken per second.

  • How to update the absolute time value in waveform chart for labview 6i?

    Hey there,
    I'm developing a control system using labview 6i on win 2000 os.I'm receiving the sensor data every minute and i want to display the data on a waveform chart with absolute time scale on x-axes. I'm using the property nodes for the offset, multiplier and maximum values putting them outside the while loop and giving them input using get date/time in seconds function. the problem is that the time doesn't gets updated w/ refernce to the computer time and after a certain period the time shown on x-axes lags by several hours. any advise?

    Posting an example ussually help us nail these types of issues fast.
    I am therfore forced to guess.
    Do you have your code written such that the scale operations occur before the loop?
    The next thing I have to suspect (not being able to see your code) is if your dt is correct. If your dt is larger than what the chart is set for, then the time will fall behind.
    I have included an image showing how the chart can be used to show multiple sample rate plots such that the t0 of the readings are used to control how the readings are displayed. This example uses waveform data types (I believe they were available back in 6i). It should serve as a guide to do what you want.
    I suggest you start by recreating the demo and play with it until you have what
    you will need in your app.
    The beauty of this method is it lets you use the chart to plot signals acquired at different frequecies and plot them all together.
    reply to this answer if you have questions,
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Wform_demo.bmp ‏427 KB

  • Graph : absolute time ?

    Hello,
    I have got a stupid problem with my application (written with Labview 8). I want the X scale of my graph to display the date at which each point has been acquired (I plot 1 point per day in my graph). In 'chart properties', I have chosen 'absolute time' + default editing mode : the result is that the X scale always begins and ends on 31/12/03, althought the local date (I mean, on my computer) is updated.
    What can I do ?
    Thanks in advance,
    Julien

    Hi julien,
    I don't know if you are using a waveform graph or an XY graph but have a look of the following example:
    http://digital.ni.com/public.nsf/websearch/0A4899E​F6D01B9C5862568B70074F989?OpenDocument
    Regards.
    Omar S. NI

  • How do you add the absolute time and date to a spreadshee​t file?

    I am creating a spreadsheet file, and I want to write the absolute time and date to its first column. Does anybody know how to do this?
    Thank You,

    BrianL answer is still valid !
    Attached is an example file with an express vi configured to use the absolute time generated from a get time/date node.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Save with absolute time.vi ‏135 KB

  • EEM problem with "event timer absolute time"

    Hi
    I wanted to execute a EEM script at a certain time, 2015-05-04 03:00:00 GMT+2:00. So I used the "event timer absolute time" command.
    But the switch executed the script immediately. Is there something wrong with the script? Is there another way to execute a few commands at a certain time like this?
    Script:
    event manager applet CHANGE_TO_RAPID-PVST_v2
    event timer absolute time 1430701200
    action 1.0 cli command "enable"
    action 1.1 cli command "config t"
    action 2.0 cli command "spanning-tree mode rapid-pvst"
    action 2.1 cli command "end"
    action 3.0 syslog msg "Changed to Rapid-PVST by EEM script CHANGE_TO_RAPID-PVST_v2"
    Switch: WS-C3560X-24T-S
    IOS: 15.0(2)SE4
    EEM version 3.2
    #show event manager history events
    No. Job Id Proc Status Time of Event Event Type Name
    2 2 Actv success Thu Apr30 09:25:02 2015 timer absolute applet: CHANGE_TO_RAPID-PVST_v2
    I used this link to calcute the timer value. http://www.epochconverter.com/

    I honestly have never seen anyone use this timer.   You'd be better off using cron and removing the applet when it's done.
    That said, this does look like a bug.  Given the little use we've seen of this timer, it's likely a new one.  I recommend opening a TAC case so it can be tracked.

  • Create an absolute time display that can be paused and scrolled

    I have 3 waveform graphs that are scrolling by as the data is collected.  They represent past events that can be paused, scrolled back, and printed.  It represents 8 hours of data.  I do not have a time stamp associated with the data going into the graphs at this time.  I dont want to reinvent the Field Point code that is gathering the data just tweak the Host program that monitors the data (this would require flying to the customer site).  I need to have a absolute time clock that will keep up with the data that is scrollong by and pause when the graphs are paused (that is the easy part).  Here is my challenge.  I am using a property node from all three graphs.  I have the x scale-range-all elements tied together so they will all scroll together with 1 x scroll bar.  I need to be able scroll the absolute time clock with the other information.
    Any ideas?
    AUTOM8

    Hi,
    You can use the Get date/time function to get time when the data is recorded. However be advised that this time would only be close to the actual time of data acquisition.  It will not be the actual time when the data was acquired.
    As for scrolling the time display, I think yout best bet would be to tie in a  time stamp (Get date/time function ) with the Y values that you are already acquiring. Then when you scroll to a particular point in the graph, you can programmatically unbundle the waveform at that point to get the time value.
    Regards,
    Ankita

  • Waveform chart X-Axis reverses itself when upper limit is edited in Absolute Time - problem may be linked to Timestamp Control?

    I've seen this problem for some time now, and it still exists in the Silver toolset Waveform Chart in LV 2012.  If the chart is in strip mode, and you edit the upper limit value to a point in the future, the X-Axis will invert (higher values/ later time to the left), to the limit of the Chart History length.  This happens whether the chart is active (logging data on a compiled executable) or even when in design mode, though it's more consistent when there's data in the chart.  It's not history length related as far as I can tell, as I set the length to 7 days of sampling @ 1-second intervals (605K), and it happens when I try to set the end time to an hour in the future with only a few minutes of data collected - suddenly the right Absolute Time becomes the time my last sample point was collected, while the left Absolute Time becomes nearly 7 days in the future (so neither end point is what I was setting it to).
    It's nice that the chart gives the option of editing the limits, but as such, it's important that they work as you would expect them to.
    Also - until this is addressed, is there a way to lock it against editing?  Until a fix is made, my workaround is to put a transparent button over the range start & end points, and a transparent flat rectangle above all other mid-range points, and pop-up a data entry form with a Timestamp control to allow editing.  Unfortunately, this doesn't work as I would expect, as typing "11 AM" in the Timestamp control over a prior value of say "10:05:34.232 AM" ends up becoming "11:05:34.232 AM" instead.  ???  Another error - or is this by design?  If it's by design, is there an option to make it behave as I would prefer (11 AM = 11:00:00.000 AM), as Excel behaves with timestamps?  I can't help but suspect this may be linked to the chart axis issue.
    Also - I just built a simplified chart modeled somewhat on my current project, and could not get this to recur.  BUT... had the strangest thing happen:  My sample data was generated using the Trig functions for Sine and Cosine, and at one point my waveforms distorted on the display, so I'm attaching that here plus the simplified chart project.
    Last - my system is LV 2012 on Win7 Pro-x64.
    Thanks!
    Erik
    Attachments:
    Chart data distorted.png ‏45 KB
    Waveform Chart Flaw.zip ‏17 KB

    I am not so sure that this is a bug, and I have not been able to reproduce this behavior that you are describing. 
    But you can lock it from editing by right-clicking on the graph and go to Properties>>Appearance>>Enabled State --> Disabled
    Also, word of advice for the future: You will get more replies from the community with shorter posts and keeping it to one question per post. Summarize what the issue is, and put the detailed documentation and instructions to reproduce in the actual VI. 
    Huntington W
    National Instruments
    Applications Engineer
    ***Don't forget to give Kudos and Accepted as Solution where it is deserved***

  • DST setting for absolute time in waveform graph

    I am using a waveform graph to display some pre-recorded data, with absolute time on the X-axis.
    If the time period of the data includes the point at which daylight savings time changes, then this comes out correct on the X-axis i.e. there is a one hour jump in time on the X scale.
    But this is only correct if the data is recorded in the same time zone with the same DST settings as the computer used to display the data. If I am viewing data that was recorded in another country, the time on the X scale can come out wrong.
    Is there any way to get the graph to ignore the DST setting, so that I don't get the one-hour jump on the X scale?

    Hi Scott,
    Thanks for your suggestions.
    I actually prefer relative time, but other users wanted absolute time so that is why I put it in.
    Most of the time it is not going to be a problem - the data is usually analysed by the same people who recorded it, so the times will always come out correct.
    But we do have collaborations with people in other countries and swap data files back and forth, so it could get connfusing if the times come out different in different countries.
    It would be nice if I could somehow tell the graph what timezone the data was recorded in, and it would display the time correct for that timezone. This would save me from having to change the timezone setting on my computer all the time. But in the mean time, that is what I'll do.
    Many thanks,
    Mark.

  • Why is an absolute time of 0 s stored as -57600?

    I created a numeric control (type double) and formatted it to appear as absolute time (HH:MMS).  The value in the variable corresponding to time 00:00:00 is -57600.  (57600 corresponds exactly to 16 hours)
    I can easily correct for this by subtracting -57600, but I'm curious about why the value is stored this way.
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

    "I changed my code to subtract a constant absolute time of 00:00:00 (instead of -57600)."
    Gotcha Warning:
    I do not now about the rest of the world but here in the US there is "Day Light Savings Time" which can complicate using constants with time values.
    I strongly urge you to test your code to ensure it works correctly under both DST and non-DST. This can be done by changing the system time on your machine to dates when the current DST setting isnot in effect.
    Ben
    PS Christian, You just have 7 more to go! I will try very hard not to post anymore than I absolutely have to.
    Message Edited by Ben on 09-13-2006 02:19 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to plot VS time after transforming data from Dynamic to array ?

    Hi ! 
    I am currently using a DAQ Assistant to get dynamic data from 2 channels input.
    With a splitting VI, I substract one to the other and plot them ( Graphic named 1 )
    Then I use a VI which transform the Dynamic result of the soustraction into an array, in order to calculate its mean.
    After that step, when I turn my script ON, I am well capable to observe dynamically my mean evolve from an indicator
    BUT
    I can not observe it plotted VS time as I would like.
    In other words, from the dynamic data I have value VS time, I get the mean of it over time, and I would like to be able to plot it back VS time, with the previous mean points plotted.
    All I can get now is a single point moving up and down, because it is lacking time data.
    I attached to this post a simple represenation of my issue, I hope I provide enough information.
    I just would like to be able to plot like the window on the left, and not having the one on the right ...
    Thank you !

    Hi ! 
    Thank you for your quick answer.
    I see what you mean, it makes sense.
    But how will I be able to plot the mean VS time if now I have all my data splited into arrays ? 
    I am not sure I talk clearly ... In other ords how will I rebind that mean and Time into one wire to send it into graph VI ?

  • Why does Time Stamp Control not produce a Absolute Time output?

    I have used the the Time Stamp Control for manual input of measurement information. However, this control produce a time stamp in relative time which is unwanted. I thought that Time Stamps always are in Absolute Time. Is this not true? The control is very handy for time and date inputs. Is there a way of changing the output to relative time?

    I will try to be more specific:
    There is a Time Stamp Control available in the controls palette for use on the front panel. This can be used to set a variable called Time Stamp with values of time and date. It has a time and date browser which is very convenient to use and I like to use it. The time format I prefer in this case is Absolute Time which is time-zone-independent and it is the number of seconds elapsed since 12:00 a. m., Friday 1, 1904, Universal time according to LabVIEW help. However, the output from the Time Stamp Control is in Relative Time which I think is the Absolute Time compensated with Dayligth Saving Time and the local Time zone setting in your system.
    Time Stamps are always in Absolute Time I think but not in this case.
    My problem may be solved with a VI similar to "Format Date/Time String Function" but with a time stamp input and output, since this VI converts from Absolute time to Relative time. Even better is of course having a Time Stamp Control where you can select between absolute and relative time.

  • Absolute time between two sets of switches

    Hi!
    I am trying to write a VI that will find the time difference between two sets of switches. I have attached what I currently have which only gets the time for one set of switches.
    What I am trying to include in my VI includes inputing data from two different ports and finding the resulting time difference. The two sets of switches go into different ports on the usb. The starting switches are in port 2 whereas the stoping switches are in port 1. Switch one from the first set should start the timer and switch one from the second set should stop the timer. And this logic continues for the remaining sets. Switch 2 from the first set starts the time and switch 2 from the second set stops the timer...All six switches are completely independant so they can stop in any order.
    I was also wondering how to just have the absolute time from start to stop in hrs/min/sec? And then how to I write the resulting 6 times in hrs/min/sec to a spreadsheet?
    Thanks so much for your help! I apologize for my simple questions! I am new to labview and computer programming in general.
    Attachments:
    patch_six.vi ‏25 KB

    Please don't start a new thread with the same question.  I already gave you an answer in the original thread.

  • Live Sync / absolute time code

    I'm trying to understand (or maybe misunderstand) how this works:
    "Absolute Time Code
    Ensure that existing time codes persist within media files to allow for richer synchronization between streams, improving interactive experiences (such as switching audio tracks or camera angles) with multibitrate and multistream video and synchronized playback events.
    so from  this it seems that we can do multi cam live sync
    i unedrstand that we =need (via FMLE) to change theconfig file
    <streamsynchronization>
                                  <!-- "true" to enable this feature, "false" to disable.                                                  -->
                                  <enable>true</enable>
      </streamsynchronization>
    and to allow< AssumeAbsoluteTime> in the application.xml
    ... can anyome point me to some documentation on this or have i totally misuandertsood this? Having done the above my streams dont sync?
    I am also embedding the timecode via FMLE and triggering onFI
    any help gratefull received
    thanks
    Matt

    Thanks for that ...
    but how do you account for
    http://www.adobe.com/products/flashmediaserver/amazonwebservices/
    "Absolute Time Code
    Ensure that existing time codes persist within media files to allow for richer synchronization between streams, improving interactive experiences (such as switching audio tracks or camera angles) with multibitrate and multistream video and synchronized playback events."
    beccause surely switching camera angles requires multiple DIFFERENT streams and not multi bit rate or is this just for VOD?

Maybe you are looking for