Display custom time-stamps on a graph

Hello
I have some data in the format (yyyy-mm-dd, value). I would like to plot it like that in a graph chart.
The problem is that I cant transform the string 'yyyy-mm-dd' into a labview time-stamp.
Is there any way around?
Thanks,
Antonio

Use Scan From String function:
Note that you did not provide time information, so you just get 6 PM. Check the LabVIEW Help for further details on the Scan From String function.
Message Edited by smercurio_fc on 05-22-2008 01:58 PM
Attachments:
Example_VI.png ‏2 KB

Similar Messages

  • Time stamp conversion and graphs from array data

    How can you read time stamps and data currently in an text file as an array and split in for display on a graph. I think I need to convert the time stamp back into seconds to do this but not sure how to do so?

    If you're using 8.2, the Read From Spreadsheet File VI can read string files. If not, you will need to open the VI and read the instruction on the diagram for how to change it.
    Once you have your string array, you can use the VI found here to convert the time column (note - read the thread) and convert the second column using the String to Number functions.
    Try to take over the world!

  • How to display the time stamp in a data log table

    Hello,
         I want to display data during the data acquisition process. How do I  add the time stamp as one of the column in the 'Result Table' located at bottom left of the example code?
    Thanks,
    Ryan
    Solved!
    Go to Solution.
    Attachments:
    Cycle Analysis.vi ‏229 KB

     I inserted the portion you added to my program and it worked but not exactly the way I want. It added the time and date when I start the data acquision. But I want the time stamp to be shown on every single row. Please see attached image.Thanks.
    Attachments:
    Result.JPG ‏54 KB

  • Display of Time Stamps based on the TimeZones

    Hi experts,
    I am new to Internationalization topic and wants to
    display Time Stamps based on the TimeZones.
    For example, If I choose Asia/Calcutta as my TimeZone
    it is displaying "Mon Aug 28 11:02:47 GMT+5:30 2001" as the TimeStamp.(I am in this TimeZone,which is default to me.)
    Similarly If I select any other TimeZone, it should display the TimeStamp in the same format but the values in the Time Stamp should reflect the selected TimeZone.
    I will be thankful to you if u could help me to get the solution.
    Srinivas.

    Hi Srinivas,
    It comes down to some tinkering in the java.util.* package.
    First off, you'll need to familiarise yourself with the Calendar class. This basically replaces the old Date class from old versions of the JDK, and allows you to hold certain dates and times. You can get one by calling Calendar.getInstance();
    You can then set a TimeZone on this Calendar by calling myCalendar.setTimeZone().
    To create a basic TimeZone, have a look at the SimpleTimeZone class - it'll allow you to set the hours ahead or behind GMT, as well as a start date for this time zone, and even gives the ability to add daylight savings time.
    From there, the time zone you add to the Calendar should produce the correct dates for you. Changing the time zone within a Calendar that already holds a date and time should alter that date and time accordingly.
    If you want to get really clever, have a look at the Locale class - it allows you to specify a default language and country. You can then apply this to your Calendar by calling Calendar.getInstance(Locale myLocale) instead of the version above. If you have the international JDK (i.e. the one with i18n.jar onboard), Calendar should be clever enough to format the dates nicely for you if you use a fairly well-known Locale (such as American English and so on).
    A Locale will also let you format dates in a location-specific way if you want to output them to the screen later on down the track. A quick look at SimpleDateFormat and some of the other DateFormat classes should tell you what you need to know.
    If you can't quite get your head around any of the above, feel free to reply again!
    Martin Hughes

  • Customizing Time Stamp In Receiver File Adapter

    Hi,
    I am working in a XI to file adapter scenario.
    The default time stamp in receiver file adapter is yyyyMMdd-HHmmss-SSS.
    I want to time stamp as "ABC_MM_DD_YYYY_HH_MM_SS".
    i searched SDN,but not getting an end to end approach.
    Like...I developed a UDF ,but when I map it to receiver root node..I am getting error.
    Please help.
    Just request for a step by step procedure.
    Also,ASMA is not v clear to me......
    Plzzzzzzzzzzzz help!!
    Regards.

    Hi sriparna,
    The timestamp used by the File Receiver Adapter is a default pattern, to achieve that you have to use a UDF in the middle of the MM and set the receiver file name with the ASMA, read this for further information:
    ´´´´ Dynamic Configuration vs Variable Substitution - The Ultimate Battle for the File Name
    /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name
    It really helps,
    regards,
    Juan.

  • Custom Time stamp control

    Hi,
     I'd like to know if it is possible to customize a timestamp wich have this format 00(H):00(M):00(S) to a format  that could use and print  hundred of hours 000(H):00(M):00(S).
    What should I do to get that ?
    Thanks.
    Olivier

    Hi Olivier,
    It appears that you cannot do this directly from a built in function. What you may want to do is create a custom timestamp that keeps track of minutes and seconds. Then you may want to have a counter that increments when the minutes reaches 60 and concatenate the entirety as a string. I hope this helps point you in the right direction.
    Best regards,
    Steven

  • Can I create a time stamp of 2ms or 1ms resolution in a text file

    I have trouble creating time stamps in text files that have 2ms resolution. Although my timed loop in LV 7.1 is running the code at 500 Hz without any late iterations, and I record all the data points in the data file, the time stamps are the same in ms range for 5 consecutive points, i.e 10ms resolution. I would like the time stamps to have a 2ms resolution, where each data points every 2ms should show a different milisecond time stamp.
    I am trying to do this to be able to show exact 2ms-time stamps for each data sample from 1 digital input line sampled at 500 Hz using NI-DAQmx 7.2. So far I have been using "Get/Date Time in Seconds" and "Format Date/Time String" to display the time stamp in the milis
    econd range.

    Use the Tick Count (ms) function. Call Get Date/Time in Seconds when you start to get time of day. Also call the Tick Count (ms). After acquiring each point call Tick Count (ms) again and subtract from the starting tick count. Then add this to the starting Time in Seconds value (with appropriate scaling). The result is your timestamp.
    Another approach: If you are using hardware timing for the 500 Hz acquisition, each sample is automatically 2 ms after the previous one. Record the start time and add 2 ms for each sample.
    Lynn

  • Time stamp dropping seconds

    I figure someone has had this problem before but didn't see it in the forum anywhere.  I'm adding a time stamp to a file so I've used the "Get Time/Date in Seconds" and wired that to a "Convert to DBL".  This then wires both into an indicator on the Front Panel and into the "Write to Measurement File" Express VI.
    The indicator displays the time stamp just fine but in the file it puts it into scientific notation and cuts off the last 4 digits as well as any fractional seconds.  The time stamp writes to the file every 5 seconds so it is important to have the rest of the time stamp included.  I've tried using probes on the wires to see where things go weird but I get the same truncated value in the wire before and after the indicator.  I thought it had something to do with the Express VI first since the indicator is fine but with it truncated in the wire it seems that the Express VI is indeed saving exactly what is handed to it...but then again the indicator...you can see I've been running in circles over this!  Does anybody know the reason it is doing this and a possible solution?
    Thanks a lot!
    Solved!
    Go to Solution.

    I can't post the exact code because it is being developed for use outside our lab but I've recreated the basics of the problem.  The array would be the collected data and except some filename details and things like that everything relevant to the time and saving is included.  Also settings in the express VI are the same.  Not sure if it will help out.
    Attachments:
    example.vi ‏56 KB

  • Time Stamp Offset Issue when Reading TDMS

    I am having an issue when reading a TDMS file and displaying it on a waveform chart in LabVIEW.  My waveform chart will always display the time stamp with a negative offset of 18,000 samples.
    To make that easy, let's say I am sampling at 1000 samples per second and I log my data to TDMS. When I read that TDMS and display my waveform chart data, the chart displays the data read from the TDMS 18 seconds earlier than the recorded wf_start_time stated within the TDMS.  If my wf_start_time is  08:00:20.000 AM 12/02/2014, then my waveform chart displays a start time of 08:00:02.000 AM 12/02/2014.  Likewise if I sample at 4000 samples per second, my start time is off by starting 4.5 seconds earlier.    
    I am setting my Xscale.offset = wf_start_time and it reads back correctly, but the start time on the waveform chart is still wrong.  
    Because I am dealing with larger TDMS files (500mb+), I sometimes decimate the data to view it due to memory issues. Here, this issue occurs again.  If I decimate the data to only display 1 out of every 10 data points, that offset is further shifting by a factor of 10x; going from 18 seconds to 180 seconds.   
    Is this some kind of UTC/system clock time stamp discrepancy or something else? 
    Solved!
    Go to Solution.
    Attachments:
    VI edit tdms.png ‏41 KB

    It's okay to mark your own post as a solution if it really is the solution, as it is in your case.  That way, people that have the same problem know it was solved and they can see what you did to solve it. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How can i make a graph y is unmber pasing from UDP port,x is the time stamp.and in the same time this graph can display several numbers to compare.

    how can i make a graph
    y is number(the blue wire)pasing from UDP port,
    x is the time stamp.
    plus in the same time this graph can display several differenr numbers to compare.

  • Reading from a .txt and displaying in XY graph with time stamp

    Hi,
    I am a newbie to LAbView. I need to read from a text file having two columns, one carrying the temp value and other the time stamp. I need to plot this in XY graph on a real time basis. Please help as how can I do this..
    I am attaching my files for your reference.
    Thanks in advance
    Ratnesh

    Shidla wrote:
    So what is the question about... I have to use XY graph in my program. It is used in Loop while cycle. It shows the statistic of a variable. I am using cursors in this graph to check the actual value of a variable in different period of time. But there are 7 variables and it is extremely hard for user to check each value independently. So I tried to make them moving on the X axis (TIME) together using the property node (cursors reading the position (only X axis, Y axis status lock to plot) of the major cursor and follow it... Everything looks great? But it did not work when I am trying to move the major cursor manually on graph... It works only when I am using the cursor movement buttons... But they work very slowly when there is a lot of data in graph.
    I want to find out is it possible to make seven coursers mouthing together By the X axe and be Locked each at its plot by Y axe manually (Using mouse moving on a graph). Is it possible? If it is than how to do it?
    Hello Shidla,
    The attached VI should help give you an idea of how to create a VI that allows all cursors to move together. The main idea is to keep track of the current location of all cursors and move all of them when you see a change in one's position.
    Good luck with your development.
    -Matt F
    Keep up to date on the latest PXI news at twitter.com/pxi
    Attachments:
    cursors.vi ‏164 KB

  • Time Stamp via Custom Function

    This is such a basic concept for a custom function that I am assuming someone out there has done it already. I have never created a custom function for Essbase, though I have programmed in a variety of languages and I'm assuming getting the current date/time in Java is not exactly rocket science. I have reviewed the docs for creating and registering custom functions and that also appears relatively simple, especially with the examples available.<BR><BR>What I want is a function that returns a Double in the form of a Date/Time that I can retrieve into Excel and display as a Date/Time. We want a simpler, more effective way of time stamping the running of calculations, more effective than combing through the app logs when we need to know if/when a calc ran a week or a month or two ago.<BR><BR>Does anyone have some sample code and/or insights to share on this topic? I would greatly appreciate it if you do.<BR><BR>Thanks,<BR><BR>James

    fyi - I ended up implementing a solution in Perl/Maxl that gives a timestamp to the second in a format that can be retrieved intelligently into Excel. I use the Perl time() function (Unix server) to get the GMT epoch time as a long int. Then I convert it into the floating point DATE format for Windows, with the hard-coded assumption of what time zone my server is in. Then I run a calc from MaxL that sets this value. I build the calc string in Perl and pass it into MaxL. Pretty cool. The calc uses two sub vars, one for the members to fix on and the other for the Scenario to timestamp. This way the perl/maxl is database independent.<BR><BR>Just thought someone might want to know...

  • Graph plot with time stamp

    Hello All,
    In my attached VI I am facing some issues.
    My loop rate is 100ms and in chart plot data is not appering as per the x-scale(Time stamp). Values are just plotting in the chart without time. I am trying to implement a graph program that should show values according to time loop rate can be different. 
    In attached VI I have chart and XY graph both. Please have a look and suggest me the valuable modifications.
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!
    Attachments:
    Graph.vi ‏14 KB

    Hello Ben,
    Thanks for your valuable inputs.
    I don't have waveform data from the field, its only RS232 communication and each and every 100 ms interval I am getting only one value from the device. Now in current program I am using the chart function. But the value(Y-Axis) and the time(X-Axis) sync in not proper. To avoid this i am planning to implement this using XY Graph so I develop this sample VI. Here if you browse and observer in the code I have both chart and XY graph, in chart you can see my current implementation. If you run this code for few seconds you will get some difference in Y-Axis and X-Axis values plot time difference.
    Now If I am talking about XY graph on X axis I can send my system time with the field value to avoid this chart issue. (I am trying to implement same in XY Graph)
    Today I achieve the target by done offset and some chart property settings. Now I am looking for same in XY Graph.
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!

  • Time Stamp Error: Cannot display system date and time. My VI display "YYYY-MM-DD" instead of "2014-08-02".

    Hi All,
    I am using Labview8.5 and Windows XP OS.
    My Problem is my Labview TimeStamp cannot display current system date and time.
    Please see my attachment for the screentshot.
    The TimeStamp or ever Format Date/Time String display "YYYY-MM-DD" instead of  "2014-08-02".
    I tried other computer machine and it works. There are some computer machine has this problem.
    How can I resolve this issue? Please advice. Thanks.
    Best Thanks,
    Jessie
    Attachments:
    Time Stamp error.JPG ‏68 KB

    Bill,
    reviewing the thread Dennis linked (thanks for that) reveals that it is the same account which opened this thread here three month later.
    What bothers me is the fact, that the past thread is marked "solved" even though it obviously isn't. Or the OP is trolling us.....
    Nevertheless, it seems like systematic error. Connected to specific machines.
    What makes the machines where the time stamp issue occurs "unique"? If there are several, is that source really "unique"?
    Most obvious reasons would be:
    - Language settings (possibly the infamous "dot-comma-issue")
    - Time zone settings (e.g. what happens if you switch Ulaanbaatar to Perth or maybe even some US time zone?)
    - Missing hotfixes for Win and LV
    - Is the system running as virtual machine vs. "native"?
    Not so obvious differences:
    - Specific CPU type
    - Motherboard/BIOS
    - LV ini settings
    There are tons of other possible reasons (e.g. corrupt LV installation), but these are the ones i came up with within a couple of minutes....
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How does the image time stamp display /modification vary among Bridge, Photoshop, and PS Element Org

    I've noticed some discrepancies between times recorded in my image EXIF data as well as the time displayed with images in Bridge and Photoshop Elements Organizer.  For instance I may have a series of images shot within a few minutes of each other.  After having done some manipulation of a subset of the images and later on showing the sequence in both Bridge and PSE Organizer, I have noticed that the time associated with some of the images has changed.  Bridge and PSE Organizer may actually show times that differ by several hours.  It almost looks like the time is converted from the original camera time to UTC and then possibly back to the time zone where my computer is located.  The pattern is not completely consistent and may depend on what Adobe products have been used to adjust or catalog the images.  I'm looking for a good and complete description of how each product handles the image date and time stamp.  I suspect that there is some inconsistency in how this is done across the products.  I'm currently using Bridge / Photoshop CS6 Extended and Photoshop Elements Organizer 10.0 which were recently upgraded from CS 5 and 8.0 respectively.  I also use Adobe Camera Raw 7.1 to edit the Nikon raw files.  This problem appears to predate the upgrade of my products.

    Well, it must be a system-specific bug of some sort that's been introduced, because I was able to create a 4200 x 3500 image made by mapping an image of similar size to a cylinder, and the cylinder would move/rotate in real time.  Of course, I have a completely different video card and system than you do, but I'm just verifying that it's not broken everywhere.
    Rendering isn't hugely fast, but that's not unexpected with a larger image.
    Maybe being more specific would help.  Is your mesh complex?
    Is it something you'd be willing to share online or describe how to create?  I would be happy to try to match what you're doing more thoroughly to see whether I can reproduce the slowdowns.
    Beyond that, I'm not sure what to suggest...  You don't have a lot of RAM to be working on 15 megapixel images, but as you say the thing to concentrate on is that you're seeing quite different performance from the Ps CS6 beta version.
    -Noel

Maybe you are looking for

  • Bex report issue - no applicable data found when we drill down on free char

    Hi All, We are facing some strange issue  with one of the report. when user run the report for a week  (02/02/2009  - 02/08/2009) and then drill down on particular char  its working fine (first time).after that when he is trying to change and execute

  • Error while deploying on WLS 9.2 with OEPE

    I'm getting the following exception while trying to publish a web project onto WebLogic 9.2: <Sep 14, 2009 12:45:30 PM EDT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004 weblogic.management.DeploymentException: The system cannot f

  • Drag and drop of html-files into Firefox 3.0.1 no longer works after going from XP to Win7

    I use firefox portable 3.0.1 on an external disk. Used to have a portable PC with XP SP2, now have a new Windows7 Professional machine. On the XP machine I was able to open Firefox from the USB disk and drag&drop html-files into its window to open th

  • SAP Business One is slow on client PC

    Our client PC is Pentium Dual Core, 1GB RAM, 160GB. However to post a transaction, open a window, etc. in SBO takes some seconds. Is this normal? To post a transaction for example, after you click "Add", the cursor changes to sand-clock, and takes so

  • How to edit the Servicve Level Report?

    Folks, Our customer would like to have a Service Level Report (SLR) from the Solution MAnager. However the first chapter on page 1 called "Solution Landscape Alert Overview" (with some EWA alert warnings) must be deleted from the SLR. How can we edit