How to get correct timestamps on RT controllers

I am using a PXI-8106 controller. The time on this RT controller is manually set by RT Set Date and Time. Then, I use Get Date/Time in Seconds to get timestamps. These timestamps are always incorrect by a few hours due to some unnecessary time zone consideration. If I use Get Date/Time String, it shows the correct time but I need correct timestamps, not strings. I tried to convert the strings back to timestamps but I got the wrong time again. Is there any standard or generic way to deal with this?
Relevant article:
The Current Time is Incorrect on My LabVIEW Real-Time Controller

Robert Cole wrote:
If you are using a computer to talk to the PXI, LabVIEW will automatically adjust timestamps when moving them from the PXI to the computer (or vice versa) based on the timezone set on each system.
Rob
That might be a bit misleading. LabVIEW does no timestamp correction of any sorts like your message implies. LabVIEW timestamps are simply a number of seconds since midnight Jan 4, 1904 UTC. So they are always related to UTC. Considering that the clock on two systems is set right, a timestamp on system 1 will be the same on the second system independent of any timezone settings. It's in the interpretation of the timestamp into a printable time string where timezones get into the game and can mess up a lot. And by default LabVIEW always uses the timezone to translate a timestamp into a local time string, which if the system from which the timestamp comes is located in a different timezone, will show the local time at the displaying system at the moment when the timestamp was generated on the remote system.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • How to get modification timestamp of user in GAL

    Hi,
    Sorry for bothering you but I have one more question.
    In general I have performance issue. I am downloading users from GAL with all details and it takes about 3h. GAL has about 17000 users. I didn't found any solution to make it faster.
    But in next sync I would like to get data only for modified users but I don't know how to do it efficiently.
    Now I will describe more details.
    <pseudocode>
    Foreach( var addressEntry in Application.Session.AddressLists[…].AddressEntries)
    Var eu = addressEntry.GetExchangeUser()
    Var props = addressEntry.PropertyAccessor.GetProperties(…)
    LocalDb.SaveContact(addressentry, eu, props)
    The most time expensive part is :
    addressEntry.PropertyAccessor.GetProperties(…)
    ,it takes 2,5h. I would like in next “Download Process” download only modified entires but I don’t know how to get the timestamp efficiently. The timestamp is available using this:
    addressEntry.PropertyAccessor.GetProperty(“http://schemas.microsoft.com/mapi/proptag/0x30080040“)
    , but this is as slow as
    addressEntry.PropertyAccessor.GetProperties(…)
    , so there is no sense to check the timestamp and if it is old ask for properties.
    Can I get the timestamp information in other way, more efficiently?

    Mots address book providers (GAL included) are not very good with restrictions.
    GAL address book provider does not really do anything that you cannot do through the Active Directory interfaces. You should be able to run AD queries that use the "last modified  time" attribute.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

  • How to get a Timestamp that is 2 weeks ago?

    Hi,
    How to get a Timestamp that is 2 weeks before the current timestamp?
    Using either Timestamp or java.sql.Date.
    Thanks.

    You don't use either of those to do calendar arithmetic. You use java.util.Calendar and GregorianCalendar instead. Here's a fragment that should get you started:Calendar c = new GregorianCalendar();
    c.add(Calendar.DATE, -14);
    Timestamp = new Timestamp(c.getTime().getTime());

  • How to get correct format in file at Application server

    Hi,
    I am retrieving data MATNR,MAKTX,VENDOR,VENDOR NAME,PRODUCT HIERARCHY,QUANTITY(LABST),BUDAT.
    I am downloading the data into .xls file in both presentation and application server.
    In presentation I am getting correct format.
    Where as in application server I am not getting proper format.
    Quantity(MARD-LABST) is not coming proprely.(###6## instead of 36)
    How to get it in correct forma?I

    symbol means  Space
    Before transfer the data to File..
    condense MARD-LABST and then transfer it.
    I guess you are using charcter field LABST while transferring the data to file.
    Do not use quantity field directly,please move it to charcter field then condense it.
    Thanks
    Seshu

  • How to get correct node in JTree with DISCONTIGUOUS_TREE_SELECTION mode?

    The following code creats a JTree with DISCONTIGUOUS_TREE_SELECTION mode. When select a single node, the node's name is printed correctly as expected. However, in Window environment, after select one node, if holding the ctrl key and select a different node, the program still prints out the name of the first selected node although both nodes are highlighted. Can some one tell me how to get the name of the second (i.e. the last) selected node printed?
    Thank you very much!
    import javax.swing.*;
    import javax.swing.tree.*;
    import javax.swing.event.*;
    import java.io.*;
    public class TestTree extends JFrame {
    JTree tree;
    public TestTree() {
    super();
    setBounds(0,0,500,500);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    tree = new JTree();
    getContentPane().add(tree);
    TreeSelectionModel model = new DefaultTreeSelectionModel();
    model.setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    tree.setSelectionModel(model);
    tree.addTreeSelectionListener(new TreeSelectionListener() {
    public void valueChanged(TreeSelectionEvent e) {
    Object obj = tree.getLastSelectedPathComponent();
    System.out.println(obj.toString());
    public static void main(String [] args) {
    TestTree test = new TestTree();
    test.show();

    Hi!
    Try this, maybe it's what you want?
    /Smedman
    public void valueChanged(TreeSelectionEvent e)
        TreePath[] paths = tree.getSelectionPaths();
        for (int i = 0; i < paths.length; i++)
            System.out.println(paths.getLastPathComponent());

  • How to get correct voltage reading?

    Currently I am using PCL-818 DAS card from Advantech. Advantech's test program shows value correctly and I compare it with the multimeter. Problem is that I cannot get them correctly. For eg. The actual reads 5V but the indicator on front panel reads 0.09V instead. I used Advantech's AIVoltageIn.vi. What are the right adjustments I should apply on the Numeric Indicator's properties?

    astroboy wrote:
    > Currently I am using PCL-818 DAS card from Advantech. Advantech's test
    > program shows value correctly and I compare it with the multimeter.
    > Problem is that I cannot get them correctly. For eg. The actual reads
    > 5V but the indicator on front panel reads 0.09V instead. I used
    > Advantech's AIVoltageIn.vi. What are the right adjustments I should
    > apply on the Numeric Indicator's properties?
    I had to deal once with an Advantech card and I think you had to first
    configure it for a certain input range, which depends on the card you
    are using, or maybe jumbers on it :-(. Your problem looks very much like
    the card is configured to read for instance 0 - 10 V but the software
    believes the card is set to -5 - +5 V.
    Of course the configuration param
    eter on that VI was just a number 0, 1,
    2, 3, 4, etc so it was not very user friendly and in that particular
    case I just played around a bit until I got the correct measurements.
    I told however the guy asking me to show him how to get the card
    running, that I didn't very much like this driver and that I feel a LOT
    more comfortable to program with NI-DAQ than this quite user unfriendly
    library. Not sure if he did buy his next card from NI though.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to get correct coordinate & size of components in scaled swf

    I use canvas (I set it to fit whole screen size) to enclose a swfloader which loads a swf with width & height set to 100%. This swf has a movieclip. How can I get the correct coordinates of its position and its size after scaled in Flex?
    In the Flash CS4, the movielip has x=40, y=700. In Flex, the swf is scaled 100% but when I get the x value of this movieclip, it's still 40. I try to get the scale ratio of x-axis by refering to swf's scaleX. But its 1, weird enough.
    How can I get correct coordinates of movieclip?

    I do try the localToGlobal but it seems its 1:1 ratio, the codes I use:
    // swf is loaded by swfloader, there's a movieclip child named 'child_mc' in it, I want to locate its postion and size. It's top-left coordinates in flash cs4 is 4,740
    var swf_obj:MovieClip = MovieClip(swf.content);
    var mymc:MovieClip = swf_obj.child_mc;
    child_before:Point = new Point(mymc.x, mymc.y);
    child_after:Point = swf.localToGlobal(child_before);
    Alert.show(
         "before:"+child_before.x+","+child_before."y"+"\n"
         + "after:"+child_after.x+","+child_after."y"+"\n"
    the dump result is:
    before:4,740
    after:4,740
    dump screenshot is here: http://img198.imageshack.us/img198/2396/image2ew.png
    I use values of child_after to draw green box. The white box is child_mc's actual position after scaled to fit canvas size (in turn the screen size). You can see they are far from each other. Why?
    Do you mean I have to multiply the transform matrix myself to get the correct position?

  • How to get Unix timestamp?

    Hi All,
    Didn't find any solution with a search so asking if somebody's already implemented a method to get a Unix timestamp in BPEL? It's a number of seconds since Jan-1-1970. I'm quite new to BPEL so any help is appreciated!
    Thank you in advance,
    Philipp

    Hi Philipp,
         One approach can be to use Java embedding in BPEL to get Unix timestamp.
    Check this out Java Embedding Activity in BPEL | Oracle SOA Training | BPEL, OSB, BAM, OWSM, B2B |ORACLE FUSION MIDDLEWARE SCHOOL
    Ref: Incorporating Java and Java EE Code in a BPEL Process
    -- Sid

  • How to get correct index in XD02 BDC

    Hi,
      I’m using XD02 in a BDC pgm to delete multiple e-mail addresses from contact person of a customer based on the details in the spread sheet.
    There can be more than one contact person for a customer,and I’m using KNVK-NAME1 and KNVK-NAMEV to sort all contact person  through an itab to get line index of correct contact person but this index is different from what  BDC  index sequence in SM35. Can some one tell me what’s  the sorting fields that BDC XD02 used for contact person in the hidden code.
    Thanks in advance.
    G.C.

    Hi, Bhaskar :
        Can you tell me more detail of the code? How do I use KNVA-ABALAD in BDC?
    Since I don't know what sequence that BDC going to display so, how can I fill the upload point?
    Thanks,
    G.C.

  • How to get correctly any non english data e.g greek data in servlet??

    Hello All,
    I have one textbox on form from where user will enter greek data and when i get that field data in servlet using request.getParameter("name") ,then it shows wierd text in servlet ,it ditorts all the characters that user enterd on page,how can i get greek data in servlet wothout losing it????
    Please help
    Thanks.

    1.) Read [this excellent introduction into Unicode|http://www.joelonsoftware.com/articles/Unicode.html]. The subject is more complex than you think.
    2.) Verify at each point in your program that your String contains the correct value. Note that using System.out.println() might not be helpful here, since the console might not be able to display those characters.
    3.) When a String contains invalid characters, then the error already happened before! Don't try to fix it after the fact, look where the original byte[]->String transition is made and make sure that it is correct.

  • How to get correct result in MD04

    Hi Gurus,
    For a packaging material under this process order A01, it requires 10000 EA.
    Goods issue to order done in 3 batches,
    first posting with 2 batches:
    ABatch - 2372.00
    BBatch - 7610.00
    2nd posting one batch:
    BBatch - 50.00
    When run MD04, it still show that this process order need 7,578.000 qty, and when i checked the material under this
    process order A01, qty withdrawn only 2422.00.
    But in MCRX, the total withdrawal qty is 10032.00, which is correct.
    Why it didn't capture the qty withdrawn of 7610.00 for this BBatch?
    What should I do in order to get the correct result in MD04?
    Please kindly help.
    Many thanks in advance.

    Dear Dhaval & Prasobh,
    The actual scenario is that we have this Process order A01, for this packaging material component it required 10000, but the problem is the stock available is by batch:
    ABatch - 2372.00
    BBatch - 8000.00
    We are practicing FIFO, therefore, during MIGO> Goods Issue> Order, after enter the order A01, all the component under this order will be populated. Since there's only one line populated for this packaging material component under this order, as we need to have 2 batches in order to cater for all the 10000 qty, we have to right click>add new line in the MIGO screen, and enter the material/qty/batch and order number (under account assignment tab) manually, then only post at once (one material document generated)
    How should we do if this is not the correct way of doing?
    Or we need to post those planned GI, then only do another posting for those remaining qty that yet to be posted?
    Or we need to manually set the Final Issue everytime after the above done, before we TECO the process order?
    Dear Dhaval,
    Yes, I have checked in the List documented goods movement, the goods movement indicator for this manual entered line is "2".
    I will try your suggestion to manually activate the check box for "Fls"- Final Issue field in change process order.
    Thanks & Regards,
    Sue

  • How to get Correct curent time and date

    Hi,
    I would like to know whether system keeps updating SY-UZEIT each second or it contains the time value when the program was started.
    Suppose a program starts at 12:00:00 time and takes 10 sec to finish. Will I get same value of SY-UZEIT or will i get 12:00:10 as value of sy-uzeit just before completetion of program?
    If the time is not updated each second, how can I get the correct time?

    Hi surya,
    the SY-UZEIT will not be automaticly updated in the runtime.
    you have to use GET TIME.
    Here a short example to show the different:
    REPORT ZGRO_TEST.
    TABLES: MARA.
    write: / 'without get time'.
    WRITE: / SY-UZEIT.
    SELECT * FROM MARA up to 10000 rows.
    ENDSELECT.
    WRITE: / SY-UZEIT.
    write: / 'with get time'.
    get time.
    WRITE: / SY-UZEIT.
    SELECT * FROM MARA up to 10000 rows.
    ENDSELECT.
    get time.
    WRITE: / SY-UZEIT.
    regards, Dieter

  • How to get correct aspect ratio? Hi-8 transfer

    I am Importing through a Datavideo box but cannot get the aspect ratio correct No matter how I set the project I get a 4:3 aspect rather than 16:9.
    I don't have the problem in IMovie HD. When I open new project inImovie it asks for standard or widescreen and mports correctly.

    I posted screen shots of each step I took.
    http://www.flickr.com/photos/yoda8945
    I downloaded the file from the camera to an event.
    I created a new Project  in 720x480 anamorphic
    I went to timeline and the file is no not anamorphic.
    http://www.flickr.com/photos/yoda8945
    I a now starting to understand how this anamorphic thing works. It can stay at 4:3, but at some point I need 16:9.
    How do I batch change in the browser? I don't find anything about an anamorphic flag.

  • How to get correct number of hours from a total calculated hours

    Hi all
    I'm trying to calculate the number of actual hours.
    so the hours look like this
    A: 1hr 30min
    B: 1hr 40min
    if i add those up i get
    C: 2hr 70min (ie 1.30+1.40=2.70)
    however, I want to actually display the actual hours which is
    3hr 10min
    I had the idea of turning the hours into seconds
    ie 1.30+1.40=2.70 ----> 2.70*60*60 = number of seconds
    now am i on the right track and if so, how do i turn these seconds now into the right hours?

    It is not suppossed to. It was illustrating the difference between 2.7 and 2 hours, 70 minutes, which is approx. 3.165.
    You do see the difference between
    2.7 * 60 * 60and
    ((2*60) + 70) * 60right?
    Edit: The answer to your first post, was the first line of my first reply.

  • How to get correct opening blance data for the quarterly report in BOFC?

    Hi all,
    I  have a problem with getting the opening balance for the quarterly report.
    i would like to keep the beggining balance data for the end of previouse year. (eg: now is 2010, then keep the begginig balance at Dec.2009 for each quarterly reporrt through the year in 2009).
    however, for example in the second quarter, if i choose the beggining balance of Dec.2009 in the Consolidation definition, there is a problem that consolidation FS does not include the manual journal entry that ive entered at the first quarter such as goodwill.
    Do I need to make manual journal entry at all the quarterly reporting period if I want to set the beggining balance for the previouse year end?
    Could somebody please tell me how to remediate to this issue?
    Or how do you manage with the opening balance in BOFC?
    Thanks & Regards,
    Hitomi

    Hi Michael,
    HRMS appliocation
    database 10.2.0.4
    windows XP
    ebs 11.5.10.2
    One of our user using disooverer 4i desktop and administration edition on old windows 2000 machine and connecting to schema.
    We are decommision old windows 2000 machine.
    I have installed disooverer 4i desktop and administration edition on new windows XP VM box and trying to connect to same schema which was used with old
    desktop and asking me to create EUL. What is theat I should be doing to use new one same as old one?
    Old box is still there.
    Thanks.

Maybe you are looking for