Get the time seconds function in LabVIEW returns incorrect Timestamp

Hi to everyone.

In the following link:

http://digital.NI.com/public.nsf/allkb/0ED147D1507C183F862574BA0070AF06?OpenDocument

is written how to solve the problem found during the passage of time stamp wrong.

In my Im application data in files TDMS. When I read the PDM with Ms Excel data, the time is 1 hour before esactly if data is read by another computer.

Time is okay if the data is read by the computer that registered the tdms files.

So I colleague the link suggestion, but in records of Windows I have not found any key TZ.

IM using old profesasional of Ms Windows Xp, version 2002, Service pack 2.

Does anyone have suggestions for this problem?

Thank you very much

Ant

I tried to use the forum suggestions, but all results were unsuccessful.

In any case I solved the problem and I want to share with other users of Lv.

I noticed that in the computer used for the acquisition and recording of the PDM, the time file has shown is correct but the zone was wrong (I live in + 1, and pc was set to + 0)

The laptop I use for reading the PDM data is correctly set to + 1.

I lined up zones, the problem disappeared.

Good bye

Tags: NI Software

Similar Questions

  • Get the time in seconds

    How can I get block 'get the date and time' a few seconds (all time in seconds)? I try the conversation, display format; but can not get all the time in seconds!

    Hi hlod,.

    Here are two versions for the second of the current timestamp:

    One of the top just converts timestamp seconds (since then), while the lower part, you get the current "seconds" value of the timestamp. The next time you better explain what you want...

    P.S.:

    Who did you 'conversation' with?

  • ETA App should help to get the time and date feature HELP!

    Hi everyone, I'm doing an application where I need to get the time and date of the antone device can help, I know there is a function such as getDate or getTime but im not to know how to use it.

    As far as I know,

    I use this to get the time system (it returns long type)

    System.currentTimeMillis();
    

    After that, you can use SimpleDateFormat to convert date and time

    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy, HH:mm");
    String time = sdf.format(new Date(System.currentTimeMilis()));
    
  • need to get the time host was put in the annotation and maintenance mode

    Hi - it is possible to get the time that a host has been in maintenance mode and also seize any annotation is attached to the ESX host in VC?

    Thank you

    ~ Sai

    Also, by using "get-vmhost" twice is redundant since you have channeled from get-vmhost: "E = { get-vmhost $_ |}". Get-vievent ".

    However, your order will be to return the entire event object and look like:

    Name                                    Event

    ----                                    -----

    host {VMware.Vim.EnteredMaintenanceModeEv...

    You can try below instead:

    Get-VMHost |? {$_. ConnectionState-match 'Maintenance'} | Select Name, @{N = 'Time put in MaintMode'; E={($_ | Get-VIEvent |? {$_. FullFormattedMessage-like"* entered maintenance mode *"} (). " Createduserid}}

    But it can still recover multiple events, so a way to get only the last event and time is below:

    Get-VMHost |? {$_. ConnectionState-match 'Maintenance'} | Select Name, @{N = 'Time put in MaintMode'; E={($_ | Get-VIEvent |? {$_. {"FullFormattedMessage-like" * entered maintenance mode * "} | toplayer-last 1). Createduserid}}

  • How can I get the time to a server in JavaScript? Thank you

    Hello I have implemented a JavaScript from Adobe that expire after a certain date. However, the script asks both on the computer that can be changed. I thought that maybe I could get the time from a server NTP, NIST, which cannot be changed. However, I can't understand how to call and get the time server using JavaScript. I heard that JavaScript is client-side, but there is also a side server as well. Is it possible to code in Adobe Acrobat DC? I heard also that time of the OS is different maybe through Microsoft server. Could I get the OS somehow time?

    I've tried ActiveXObject which doesn't seem to work and in a desperate trial of windows.open ("Internet address"). Other thoughts on attempts? Thank you very much!!!

    Other strategies are also welcome having the exact time of the real.

    -Christmas

    The main problem with anything that is based on JavaScript is that it can be turned off easily, in order to place you in the document code will not work. Or a PDF Viewer that can't stand not JavaScript can be used. A form can submit to a server that can return a response that could include the current time.

  • How to get the time of browser in the project template

    Hello

    With Jdev 11.1.2.3

    How can I get the time to browsers in the model project?

    Groovy accesses the browser time?

    I have to do some calculations (based on the time of the browser) for each row returned by a query. I think it would work if I could get time to groovy browser because I was able to perform the calculation in the SQL of my View object.

    But I can't seem to find how to get browser in Groovy times? Any ideas?

    The other option, is to use JavaScript to get the date of the browser, that should work, but the lines are displayed from a query in an AF:table, I need to apply the calculation to set the color of the table date field based on the calculation of date browser. So a java method should run for each row returned and displayed in the table.

    What senses seem to better you experts? I seem to be in a catch 22 here... Any ideas? And there are items that you can reference?

    Thanks for the help.

    Published by: 966952 on March 11, 2013 05:41

    As I said, you can set the inlinestyle of the field you want to change the background of a method of bean that return a style as appropriat

    // Bean code: the bean is set as requestScope bena in adfc-config.xml
    import javax.el.ELContext;
    import javax.el.ExpressionFactory;
    import javax.el.ValueExpression;
    
    import javax.faces.application.Application;
    import javax.faces.context.FacesContext;
    
    public class TableInlineStyleBean
    {
        public TableInlineStyleBean()
        {
            super();
        }
    
        // get a value
    
        private Object  getValueExpression(String name)    {
            FacesContext facesCtx = FacesContext.getCurrentInstance();
            Application app = facesCtx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesCtx.getELContext();
            ValueExpression lCreateValueExpression = elFactory.createValueExpression(elContext, name, Object.class);
            return lCreateValueExpression.getValue(elContext);
        }
    
        public String getCalculateStyle()    {
            //use expression from table or any other EL to do the calculation
            String val = "#{row.CommissionPct}";
            Object obj = getValueExpression(val);
            String color = null;
            if (obj != null)        {
                Number n = (Number) obj;
                // return red as background if CommissionPct > 0.2
                if (n.floatValue() > 0.2)
                    color = "background-color:Red;";
            }
            return color;
        }
    }
    

    And in the af: table a column (for example CommisionPct)

                                
                                    
                                
    

    Timo

  • Query to get the time MIN

    Hi all.

    How can I get rank with MIN time (DESPITE DAY) (for the first six hours 08:00-14:00, AND the NEXT 6 hours 14:01 to 20:00)
    If what follows is my sample
    03/05/2012 17:30:00
    04/05/2012 17:00:00
    10/05/2012 18:00:00
    12/05/2012 08:00:00
    10/05/2012 07:00:00  
    03/05/2012 11:00:00  
    my result should be at first six hours 07:00 and 17:00 followed by six)


    Thanks in advance for any help

    Personally, I do not like to convert dates into strings and vice versa. I think that both arithmetic and precise the date date would perform better.

    Here's an alternative:

    with t as (
      select to_date('03/05/2012 17:30:00','DD/MM/YYYY HH24:MI:SS') as dt from dual union all
      select to_date('04/05/2012 17:00:00','DD/MM/YYYY HH24:MI:SS') from dual union all
      select to_date('10/05/2012 18:00:00','DD/MM/YYYY HH24:MI:SS') from dual union all
      select to_date('12/05/2012 09:00:00','DD/MM/YYYY HH24:MI:SS') from dual union all
       select to_date('10/05/2012 08:30:00','DD/MM/YYYY HH24:MI:SS') from dual union all
      select to_date('03/05/2012 11:00:00','DD/MM/YYYY HH24:MI:SS') from dual
    )
    select to_char(min(dt) keep (dense_rank first order by dt-trunc(dt)), 'HH24:MI:SS') hh24miss
    from t
    group by trunc((extract(hour from to_timestamp(dt))-2)/6)
    order by 1;
    
    HH24MISS
    --------
    08:30:00
    17:00:00
    

    Explanation:

    -Use the EXTRACT function to get the time. The date must be "converted" in a timestamp date because ANSI does not have the component "hour".
    -Subtract the difference of two hours from the time. This will change the interval from 2-8 to 0-6, 8-14-6-12, etc.
    -Divide by 6 and truncates the result. This will give 1 what it is from 08:00 to 13:59.59 hours.
    -Group by this result, which will all split into groups of ranges of 6 hours.

    -Now, in each group, so the component "hour": TRUNC (DT) is the date with time set to 0, DT - TRUNC (DT) is the component "hour".
    -Ordering by the component "hour", download the first date that corresponds to the first component of the time.

    Published by: stew Ashton on November 16, 2012 17:38

  • How to get the time based on the time zone?

    Hi all

    I try to get timestamp based on the time zone I assign in the computer... for example right now I m CA, if I change the time zone of the computer IS, and use time get Sec.vi, I always get time to CA.

    and not the ACC at EST time... How can I get the time according to the time on my laptop?

    Think I remember vaguely that LV reads this parameter when loading, then try to restart LV after changing the time zone and see if that helps.

  • do not get the time zone on the basis of the city.

    Hello guys, I'm getting the time zone based on the region,

    As America/LosAngelies(-8);

    But I want that on the basis of the town as London(-7) and Adeleid (+ 5);

    How can I achieve this. Help, please.

    Resolved.

    Use the method of getDisplayNames (0). For time zones the device all.

  • How to get the time since January 1, 1970 in chain November 19, 2011 21:30

    I need to get the time from 1 jan 1970.I needs time in milliseconds of the chain (November 19, 2011 21:30). This string, I'm the webservice.i need to convert milliseconds to the requirement of the application. Is it possible to do so. Please help me

    Thank you

    splits the string to create a calendar and set its fields to the values of the substring.

    httpdateparser is very particular about the format. and internal it does the same thing as a manual scan would do, I suppose.

  • Get the timer

    I'm trying to hide an image using the Freehand tool, and whenever I have to zoom in or out, I get the timer. Is this a known problem or is there something I can do to avoid this?

    Richard, it is the price to pay for the large images in combination with several layers. And, as far as I know, other applications have no layers... memory is really tight on these devices.

    Heiner

  • Flex Mobile Application and get the time zone

    Hello

    I need to know the time in a Mobile application in order to perform some calculations.

    The problem is that I need to know the time from the GMT.

    Is there anyway to zone set by the user to detect or somehow get the time?

    not tried but it's any help

    Date

    timezoneOffset : number

    [read-only] The difference, in minutes, between the time universal (UTC) and the local time of the computer.
  • How can I get the time and date appears on a sony cyber-shot camera

    How can I get the time and date appears on a sony cyber-shot camera

    Hi terpmarty,

    What is the model number of the Sony Cybershot camera?
    Instructions for superimposing the date and time are model specific. Some models do not have the ability to superimpose the date and time too. In such a case, you can use the supplied software Picture Motion Browser (PMB) or PlayMemories home (WPH) (Compatible with the Windows operating system) to print the date and time on pictures.

  • Cannot open .exe files. I get the error message by side configuration is incorrect. Event log contains contradictory elements.

    Please help me!

    I have HP Windows Vista Home Basic 32-bit. Cannot open .exe files. I get the error message by side configuration is incorrect. In the event log, it says error in manifest or policy file as a component version required by the application in conflict with one another component version already active. The two components are: c: Program Files\Viewer\Microsoft.VC80.CRT.MANIFEST.

    Problems arise when I deleted some files (don't remember which) I am now myself for kicks. Then I completely restored my system with a restore cd, upgrading to vista, downloaded all the updates and everything else works fine only problem is the opening of .exe files. Can someone please help? I'm no computer wiz only right following the indications :)

    Thank you.

    Hello

    Follow these methods and see if the problem still occurs.

    Method 1:

     

    Scan an System File Checker (SFC) on your computer and see if that fixes the problem.

    Method 2:

    Test the issue in a clean boot State.

    Note: follow step 7 to your computer as usual.

    Method 3:

    Follow the steps in this link as well.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_programs/the-application-has-failed-to-start-because-its/c4a7c2ba-C7CD-41cb-a7ff-9fedafaf33a7?tab=MoreHelp

  • Best way to get the time zone

    I'm looking for the current time zone of the user. In my view, there is a function that seems to be able to do as part of the Pim calendar. I have to ask permission to do seems like overkill when I just want to get the current time zone is not currently using the calendar functions.

    http://developer.BlackBerry.com/native/reference/Cascades/bb__pim__calendar__calendarsettings.html#f...

    Is there a better way to do it?

    This can be quite difficult because there isn't anyway that I am aware of ask BB10 directly for the offset of UTC (GMT). The basic procedure is:

    • Get the current time with QDateTime::currentDateTime()
    • Make a copy with QDateTime::toUTC()
    • Force the date in UTC format.
    • The difference between the two dates and times now corresponds to the offset from UTC.

    Something like this:

    QDateTime dt1 = QDateTime::currentDateTime();
    QDateTime dt2 = dt1.toUTC();
    dt1.setTimeSpec(Qt::UTC);
    
    int offset = dt2.secsTo(dt1);
    

    After that it works offset will contain the offset from UTC in seconds, so divide by 3600 if you want hours.

    UPDATE: For everyone it is the future that has understanding of the difficulties of reading what the hell happens in this code...

    • Line, you get just the date and time in a QDateTime. This will be the time in the local time zone. It doesn't have to be updated to do this, any date and time will be, but current is convenient.
    • Line two is a copy of the first date and time, but as one hour UTC. If, for example, if you are in Toronto to UTC - 5:00 and the current local time is 15:46, then T2D will be set at 20:46, the time in Greenwich, England, but the dates are in fact always the same, because we're local, and the other is UTC. For this reason, at this point by subtracting from each other will result in zero, because they are actually exactly the same date and time.
    • Third line says to t1d" I know you think you're time local 15:46, but you're actually 15:46 UTC. " T1d believes that without a doubt. Now the two dates are actually different and separated by the local offset to the hour UTC.

    Hope this makes things clearer because the reason that this code works may not be obvious.

Maybe you are looking for