Current time in the x-Axis

Hi everyone,
I have some problems putting a waveform together that shows the current time in the x-Axis.
I tried to do it with “timestamp” and “build waveform” but it didn’t work out. All I need is some values over the current time x-Axis. 
All it shows in my waveform is the time since 1904, like it always does!
Probably a silly question, but can anyone help me out, maybe with an example VI?
TNX

Did you also set dt?
If I set some y-values, dt = 1 and x0 to current time, I get different times on the x-axis.
I attach a screenshot, that shows this.
Thomas
Using LV8.0
Don't be afraid to rate a good answer...
Attachments:
Time.png ‏36 KB

Similar Messages

  • Current time for the X-axis in the wave chart

    I understand that the "attribute node" function is edited to show the current year/month/day/hour/minute/sec in my waveform chart. However, the default year is 1904 and trying the "attribute node" still fails. Please anyone show me the step-by-step procedure to do it.
    - An awl trying to learn L/V.

    My L/V is Ver.5.0. Referencing your suggestion, on the panel I click X-scale -->, Formatting --> X- Scale Formatting. Then I arrive at "Scaling Factors". Here I see year "1904" and modification is impossible. I can not find any place to put value 7 as you suggested. Your suggestion to use ENUMS does not seem to be clear to impliment. Trying "Attribute Node" in the Diagram leads me to "X scale info", but further try does not make it. And I can not find "Offset and Multiplier" and "Get Date/Time" as you showed. Sorry to say that still I am not successful. This might be due to the version differences.
    As a reference, I here attach the panel and diagram of my work.
    Attachments:
    jks.llb ‏252 KB

  • How to display current time when the inputs are added together and display intervals every sec?

    Hi, I added the values together but the time in the graph is not showing the present time.
    The one that is not displaying the current time is the voltage graph.
    On the x-axis of the voltage graph i want it to display every second interval.
    Thanks.

    You also shouldn't be using the local variables.  Instead, actually add up the signals from the wires.  What you have there is a race condition since you can be reading from the local variables before the terminal is written to.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to generate current time in the format yyyy-mm-ddThh:mm:ssZ in the xslt

    Hello,
    i am tring to generate current time in the format yyyy-mm-ddThh:mm:ssZ in my xlst file.
    the following info are necessary,
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"
    version="1.0">
    <xsl:attribute name="generationDate"><xsl:value-of select="java:format(java:java.text.SimpleDateFormat.new('yyyy-mm-dd hh:mm:ss'), java:java.util.Date.new())"/></xsl:attribute>
    but java SimpleDateFormat doesnt support yyyy-mm-ddThh:mm:ssZ.
    thanks in advance.

    Hi wwuest,
    I use the following code to generate such a date format :
              try {
                   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                   Date date = sdf.parse(strDate);
                   sdf.applyPattern("yyyy-MM-dd'T'hh:mm:ss");
                   strDate = sdf.format(date);
              } // catching the parse exceptionMaybe you could try this method and see if it pass through xsl with :
    new SimpleDateFormat("yyyy-MM-dd").applyPattern("yyyy-MM-dd'T'hh:mm:ss'Z'")Bye

  • How to check whether current time satisfies the schedule?

    I am working on a task, which is opposite of cron tab. My application is in groovy but can call all Java api. Can you please provide some pointers?
    User is allowed to schedule a rule to be executed the way crontab gives the options. For example he wants the rule to be executed from Monday to Friday from 8 am to 5 pm.
    I can’s schedule in crontabe or Quartz. At run time I have to match, whether the current time satisfy the time condition entered by user.
    I may have to store this information in the database the way we put in the cron. Eg. my tables will have following
    Id|| Policy Id|| seconds|| minutes|| hours|| Day|| Date|| month|| year
    1 || 5 || 1     || 1 || 8-17 || M-F||? || * ||*
    Now while my code is getting executing, how can I match whether the current time matches the condition mentioned above.
    Thanks in advance.

    [Using Span|http://tus.svn.sourceforge.net/viewvc/tus/tjacobs/util/] would make this easy

  • System time in the X-axis

    how to set system time in the X-axis for waveform chart or XY graph?

    Hi such,
                  See the attachment.
                  Also look at Function pallette>> programming>>Timing
    Thanks as kudos only
    Attachments:
    systemtime.vi ‏13 KB

  • Current Time on the Application Express Form

    Hi All,
    I want to display the Current Time on the Application Express Form
    continueusly and change every second or minutes like computer time.
    Please any can help.....
    Regards
    Gaas

    I have found an example for your question over here: http://www.plus2net.com/javascript_tutorial/clock.php
    Just play a little bit with this javascript function.
    Br
    Nico

  • How to put the current timer in the frame

    I am doing one application and i am using frame. I want to show the current time( hour and minute). But i don't know how to implement it. Please help me to solve my problem. Below is the sample code of my program. How to put the timer in the bottom part.
    //AdminMenu.java
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class AdminMenu extends JFrame{
    private JLabel lblmenu;
    private JLabel lblvideo;
    private JLabel lbladmin;
    private JButton cmdaddvideo, cmddeletevideo, cmdeditvideo;
    private JButton cmdaddadmin, cmddeleteadmin, cmdchangepass;
    private Container c;
    private GridBagLayout gdlayout;
    private GridBagConstraints gdconstraints;
    private Color colorValues[] =
    { Color.black, Color.blue, Color.red, Color.green };
    public AdminMenu()
    super("Administration Menu");
    JMenu fileMenu = new JMenu( "File" );
    fileMenu.setMnemonic( 'F' );
    JMenu openMenu = new JMenu ("Open");
    openMenu.setMnemonic('O');
    fileMenu.add( openMenu );
    JMenuItem exitItem = new JMenuItem( "Exit" );
    exitItem.setMnemonic( 'x' );
    exitItem.addActionListener(
    new ActionListener() {
    public void actionPerformed( ActionEvent event )
    System.exit( 0 );
    } // end anonymous inner class
    ); // end call to addActionListener
    fileMenu.add( exitItem );
    // create menu bar and attach it to MenuTest window
    JMenuBar bar = new JMenuBar();
    setJMenuBar( bar );
    bar.add( fileMenu );
    setSize(300,250);
    setLocation(350,200);
    this.setResizable(true);
    show();
    //---------------------- Main -------------------------------
    public static void main(String args[])
    AdminMenu app = new AdminMenu();
    app.setDefaultCloseOperation(
         JFrame.EXIT_ON_CLOSE );
    Thanks for helping me

    e.g. use a thread that invokes new Date() (every minute), format the Date with SimpleDateFormat and print the result String on a Label that you can put on your frame ...

  • Why i cannot display current time on the table ??

    Hi all.
    Why the "Date and Time" ( current time) will not display on the table ???  Where went wrong ??? Please Help.
    Thank in advance.

    duplicate post
    Thanks as kudos only

  • How do i update the current time to the database ?

    Hi guys...
    How do i connect the "Date/Time string" to the DB Tools Update Data.vi ??? Is it connect it to the point/pin called "condition" of DB Tools Update Data.vi ?
    I am kind of confuse of how do i connect...
    Thanks in Advance.
    Attachments:
    Att taking.png ‏102 KB

    This is the error i get...{    NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlibB Tools Update Data.vi->FYP_3.1.vi<ERR>ADO Error: 0x80040E14
    Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement. in NI_Database_API.lvlib:Rec Create - Command.vi->NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlibB Tools Update Data.vi->FYP_3.1.vi  }
    When u scans a card, it will show you your information with the Current Time/Date on the table. and update it on the database....
    I try the example of DB tools update data vi .. it make me more confuse :l

  • I have my Droid Ultra set to automatically detect what time zone I am in and the current time, but the messages that I receive say that they are coming in an hour early, so it doesn't keep a chronological order to them, is there a fix to this issue??

    So just like the title says, my phone is getting the received times wrong for incoming messages, this happened after I took a tip over time zones, anyone know a fix to this issue or had this happen to them?

        Hello Emcmanigal! I can certainly help you today! Sorry to hear of the issues you're having. Please click here to customize and verify the settings are correct: http://vz.to/1uGDOxt  Please verify, then power off phone to reset and keep us posted! Thanks so much!
    KristieQ_VZW
    Follow us on Twitter @VZW Support

  • How to display multiple waveforms (more than 2) with current time on x axis

    Dear All,
    I am trying to plot more than 2 waveforms on a graph/chart with current absolute time on the x-axis.
    It works if I plot two waveforms on XY graph  but shows broken wires (mismatching of data types) for more than 2 waveforms.
    Now, I have tried waveform charts and graphs, and ti doesnt work there too.
    I have attached my VI below.
    Can someone please help me out with this. 
    Attachments:
    timing problem.vi ‏21 KB

    Dear Mahu,
    I have attached a snapshot of my VI. This snapshot shows a VI which works perfectly but as soon as you will extend the bundle and add another random number generator, it will show data mismatching. 
    The reason why I am not using a chart, although it works perfectly for this, is beacuse I want to control the x axis (start and end time) to see data at time as specified by user. 
    Waiting for your reply. 
    Attachments:
    pic of prob.JPG ‏46 KB

  • How to get the day value from the current time?

    Hi,
    I like to write a program that prints out the current time in the formate as "Thu May 3 07:57:02 PDT 2002". Then I want to get the day, time, year and month value out and do some manipulation.
    I know to format the current time, I can use
    SimpleDateFormat formatter
    = new SimpleDateFormat ("EEE MM.dd hh:mm:ss z yyyy");
    Date currentTime_1 = new Date();
    Now how do I get the day, time, year and month value? All the getday(), gettime()..,method have been deprecated. Can anyone provide the answer?
    Thanks.

    Try using Calendar.get(int) and take a look at the constants used to specify the field you are trying to access.

  • Getting the current time using java.sql.Time

    I need to set the current time in a database field. I tried the following code (using my logic) to set the current time. But, I end up getting "Jan 1, 1970" in the time field in the database.
    Here is the code :
    Calendar cal = Calendar.getInstance();
    Java.sql.Time now = java.sql.Time.valueOf(
              cal.get(Calendar.HOUR_OF_DAY) + ":" +
              cal.get(Calendar.MINUTE) + ":" +
              cal.get(Calendar.SECOND));
    What should I do to get the current time in the "now" variable? Right now, it ends up in the database as "Jan 1, 1970".
    Thanx in advance.

    Can you show me the code to do SimpleDateFormat?
    Assuming that I use the following skeleton to get the
    time value from the database, can you show me the
    code for the missing link (so as to display in the
    format "hh:mm:ss") ?
    java.sql.Time timeFromDb =
    obj.getActionTime();
    // The above code gets the "time" field from
    the database into "timeFromDb"
    // Use SimpleDateFormat to display the time
    java.text.SimpleDateFormat sdf = new
    java.text.SimpleDateFormat("hh:mm:ss");
    // Now what do I do with "sdf" and
    "timeFromDb" ?
    // Print out the time value
    System.out.printf("Time is : %s\n",
    .... );Hi,
    I don't know if you want 24h clock or not. This is the pattern for 24h clock.
    "HH:mm:ss"
    You get the text string by calling sdf.format(timeFromDb)
    Kaj

  • Data written in Operationamanager DB shows 1 Hr old time than current time

    Hi All,
    I have a strange issue on my SCOM 2007 R2 CU4 RMS, Just discovered this accidentally.
    I Configured an alert for testing and i used a sql query to extract the data for the test alert.
    In generally the Ops DB and Ops warehouse write data in GMT (London time) 
    When i ran a query if the Alert appeared at 08:00 PM London time, The time in the Alert shows 1 hr old so it shows that the alert appeared at 07:00 PM GMT.
    So i used the query to see the current time in the DB "SELECT GETUTCDATE()"
    Post entering the command i found that the time shows 1 hr behind the actual time.
    So it appears that if it is 08:00PM now the Alerts and the time in the SQL Server shows 07:00PM GMT.
    Is there any idea why this issue is occurring ?
    I have analysed the Ops manager event logs and found nothing interesting. Just found the below events.
    Event id 31553
    Data was written to the Data Warehouse staging area but processing failed on one of the subsequent operations.
    Exception 'SqlException': Sql execution failed. Error 777971002, Level 13, State 1, Procedure EventProcessStaging, Line 398, Message: Sql execution failed. Error 1205, Level 13, State 56, Procedure -, Line 1, Message: Transaction (Process ID 65) was deadlocked
    on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. 
    One or more workflows were affected by this.  
    Workflow name: Microsoft.SystemCenter.DataWarehouse.CollectEventData 
    Instance name: My RMS FQDN
    Instance ID: {6C3444C3-3990-BB5A-F25E-289D8F427570} 
    Management group: CINSCOM
    ============================================
    Event id: 3333
    Data Access Layer rejected retry on SqlError:
     Request: AlertUpdate -- (AlertId=4a3fdf34-a07c-4df7-b439-dacbde377baa), (BaseManagedEntityId=82262da4-9ab9-635b-a713-637c097f8092), (ResolutionState=255), (Owner=), (CustomField1=), (CustomField2=), (CustomField3=), (CustomField4=), (CustomField5=), (CustomField6=),
    (CustomField7=), (CustomField8=), (CustomField9=), (CustomField10=), (Comments=Alert modified by user), (TimeLastModified=4/6/2015 6:43:25 AM), (ModifiedBy=E2K\lg167978), (TicketId=), (ConnectorId=), (ModifyingConnectorId=), (RETURN_VALUE=-1)
     Class: 16
     Number: 18054
     Message: Error 777980200, severity 16, state 1 was raised, but no message with that error number was found in sys.messages. If error is larger than 50000, make sure the user-defined message is added using sp_addmessage.
    The Local server time is US Eastern and is having the correct time.
    The SQL & RMS have correct Eastern time. Both are physical Boxex.
    Any help on this will be really appreciated.
    Gautam.75801

    In SCOM, all timestamp data is convert into UTC time before written into SCOM DB. This means the alert time is in UTC format.
    When you ran a query if the Alert appeared at 08:00 PM London time, The time in the Alert shows 1 hr old so it shows that the alert appeared at 07:00 PM GMT. This is expected result because your machine time zone is not UTC and is UTC+1.
    Roger

Maybe you are looking for

  • Siebel Applet edit weblayout giving error in Windows 8

    Hi All, I have installed siebel 8.1.1.10 in windows 8. When i try to edit applet weblayout it is giving below error: Siebel This editor requires Microsoft Internet Explorer version 5 to be installed siebdev Failed to create empty document. OK   Pleas

  • Messages not being written to page

    HI, What could stop messages from being displayed/written. I have changed my page template from a table based layout to a css layout and have wrapped the following #GLOBAL_NOTIFICATION# #SUCCESS_MESSAGE# #NOTIFICATION_MESSAGE# in a div. I cause an er

  • Choosing Album Art from the Internet

    Whenever I try to use images from online to use as album art or as wallpapers on my Mac, they come out blurry/pixelated. Is there a special format that I should be using to make my pictures look sharp? I have the MacBook Pro 13". If anybody could hel

  • Apache2 Error when Mac is restart

    Wehn I restart my Mac, the following error shows up... [Sat Oct 13 00:35:43 2012] [error] Init: Pass phrase incorrect [Sat Oct 13 00:35:43 2012] [error] SSL Library Error: 218710120 error:0D094068:asn1 encoding routines:d2i_ASN1_SET:bad tag [Sat Oct

  • GL Code recording

    Hi Experts, I want to do recording for a GL code creation.I am facing issues for different account groups with different field status.If I record for a specific account group,It may not be suitable for other groups.I want to record for all the fields