When TDMS throw the timestamps?

Using LabVIEW for the PDM write VI there are the following caveats:

When you write a new channel analog or digital signals, LabVIEW includes timestamp information in the waveforms. However, when you add analog or digital signals to an existing channel, LabVIEW can ignore the timestamp information in the new waveforms.

"Could unravel" is unacceptable, but I was not able to find more information about this behavior.  In my tests, it seems that LabVIEW always decides to ignore the time stamp of waveform.  I want to force TDMS to keep still.

If your hours are variable, then it looks like you want the XY data.  So for this I recommend logging two tables 1 d, one for the data of Y and one for periods which can be the timestamps.

Tags: NI Software

Similar Questions

  • Throw the exception of the app module

    Hello
    I use ADF 11.1.1.2 verison and my application is developed using the procedure (we use no BC)...
    The approach I use is as follows-
    1. create a procedure
    2. create a module app and call the procedure of this app module.
    3 - expose a customer interface and this method (data control) to see the data...

    My question - when I create a method and expose it (visible sound in the customer interface), which allows you to create a table or any other component its works very well.
    But according to my new req I have thrown an exception from this method in the case of any problem (let's say not able to update the db data)
    When I throw the exception of the method available in module app method disappears and is not available to be exposed to the client.

    Please let me know how we need to do something specific to raise exceptions in this case.

    Thank you
    Shubhangi

    Subhangi,

    Make sure you throw an exception which extends from local.

    John

  • Unable to replicate the frations seconds when you read a timestamp to a binary file

    I use LabVIEW to collect packets of data structured in the following way:

    cluster containing:

    DT - single-precision floating-point number

    timestamp - initial period

    Table 2D-single - data

    Once all the data are collected table of clusters (above) is flattened to a string and written to a text file.

    I try to read binary data in another program under development in c#. I have no problem reading everything execpt the time stamp. It is my understanding that LabVIEW store timestamps as 2 unsigned 8-byte integer. The first integer is the whole number of seconds since January 1, 1904, 12: 00, and the second represents the fractional part of the seconds elapsed. However, when I read this information in and convert the binary into decimal, the whole number of seconds are correct, but the fractional part is not the same as that displayed by LabVIEW.

    Example:

    Hex stored in the binary file that represents the timestamp: 00000000CC48115A23CDE80000000000

    Time displayed in LabVIEW: 8:51:38.139 08/08/2012

    Timestamp converted an Extended floating-point number in labview: 3427275098.139861

    Timestamp binary converted into a decimal number to floating-point in c#: 3427275098.2579973248250806272

    Binary timestamp converted to a DateTime in c#: 8:51:38.257 08/08/2012

    Anyone know why there is a difference? What causes the difference?

    http://www.NI.com/white-paper/7900/en

    The least significant 64 bits should be interpreted as a 64-bit unsigned integer. It represents the number of 2-64 seconds after the whole seconds specified in the most significant 64-bits. Each tick of this integer represents 0.05421010862427522170... attoseconds.
    

    If we multiply the fractional part of the value (2579973248250806272) by 2-64 so I think that you have the correct time stamp in C.

  • Process page not throwing no data found error when you remove the item in a table

    Hi guys,.

    I'm trying to run a process page just before the process of MRU in tabular form and it is throwing an error no data found . Here is my code:
    BEGIN
         
         for i in 1..apex_application.g_f02.count LOOP     
              
              IF apex_application.g_f01(i) is not null THEN
                   
                   UPDATE STOCK
                        SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
                   WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
                   COMMIT;
                   
              END IF;
         END LOOP;
    END;
    F01 here is the checkbox column and the if statement is the cause of the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.

    When I click on a checkbox, and hit the Remove button what fires off times this process and then the MRU, I get the error not found data .

    Would appreciate it if someone could shed some light on this. Thank you very much.

    Published by: taepodong on July 1, 2012 07:54

    Hello

    >
    I'm trying to run a process page just before the process of MRU in tabular form and he throws no data were found error. Here is my code:

    BEGIN
    
         for i in 1..apex_application.g_f02.count LOOP     
    
              IF apex_application.g_f01(i) is not null THEN
    
                   UPDATE STOCK
                        SET PRODUCT_QUANTITY = PRODUCT_QUANTITY+apex_application.g_f08(i)
                   WHERE site_id = :P21_SITE_ID and product_id = apex_application.g_f02(i);
                   COMMIT;
    
              END IF;
         END LOOP;
    END;
    

    Here f01 is the column of the box and the if statement is causing the problem because if I get rid of the update statement (leaving just the commit) then it still throws the error.

    When I click on a checkbox and click on Remove button that triggers both this process and then MRU, I get the no found error of data.
    >

    You iterate over the f02 and seeking f01 not null. It's the misuse of the checkbox element. Please see these links. in particular the examples of process OnSubmit.
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDDCHAF
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21676/apex_app.htm#AEAPI215

    Kind regards

    PS: That's what you need to understand
    >
    Note that the boxes displayed by using APEX_ITEM. CHECK box will only contain values in the APEX_APPLICATION tables for those lines that are checked. Unlike other elements (TEXT, TEXTAREA, and DATE_POPUP) that can contain an entry in the corresponding table of APEX_APPLICATION for all submitted ranks, a checkbox will be an entry in the APEX_APPLICATION table if this option is selected.
    >

    Published by: Dominique July 2, 2012 09:44

  • ORA-1866 when you try to change the precision of the timestamp column

    Hello

    I use Oracle XE. I have a table that contains a Timestamp column. "Fractional precision" is 6 and "Time zone" has the value of HOURS LOCAL time ZONE.
    If I try to change the precision of the timestamp column (set to 2 for example), I get the following error:

    Error ORA-1866: the dattime class is not valid.
    The following SQL statement failed:
    ALTER TABLE CLIENTS
    CHANGE ("TIME_STAMP" TIMESTAMP (2) WITH THE LOCAL TIME ZONE)

    Please notify.
    Thank you
    MR. R.

    The column is empty? It should be just by reducing the precision.
    Try to run the command in the SQL Plus tool if you have not already done.

    The following should do the job

    ALTER TABLE CLIENTS ADD TEMPCOL TIMESTAMP (2);
    UPDATE CUSTOMER SET TEMPCOL = "TIME_STAMP";
    ALTER TABLE CLIENTS REMOVE THE COLUMN "TIME_STAMP";
    ALTER TABLE CLIENTS RENAME COLUMN TEMPCOL TO "TIME_STAMP";

    Concerning

    Published by: thriller on April 7, 2009 17:22

  • A bug in the timestamp of text messaging

    Hello. I would like to report a little bug in iOS 10 and below, in text messaging. When I send a sms and conversation contains more than one message, if I delete the last conversation and leave the rest of it canceled, the timestamp of the message I deleted is shown as the timestamp of the message in the main menu of the e-mail, while the original message has been deleted. I mean, when you delete a message, the timestamp of the previous message should appear as the timestamp of the message in the main menu, not the one's who no longer exists. For example, when I delete the last message (with 09:04 timestamp), if the timestamp of the message remaining (12:41 am) should logically be included in the main screen, but 09:04 is always displayed in the main menu.

    ---------------------

    Here is the screenshot of the problem:

    The timestamp of the last message is 09:04. -> > >

    -----------------

    Below, I've removed the last message (which was the time stamp 09:04), so that the last post time is 12:41 am logically. -> > >

    ---------

    But, in the main menu, the previous time is always displayed as the timestamp of the message-> > >

    ------------------

    I think that the time stamp in the main menu should show you the last message that you CURRENTLY HAVE in your conversation, not one that has been deleted and no longer exists.

    09:04 belongs to the message that I deleted.

    The timestamp should be turned into 12:41.

    -------------------

    Hellllllloooooooo!

  • A shippers sometimes emails get the timestamp of 31/12/1969 18:00. Why?

    A sender of guaranteedrate.com has had three of his e-mails on five or six receive the timestamp of 31/12/1969 18:00 when in fact he sent them in the past two weeks. This place well in the slot more early possible date and found only because they appear as an unread. I don't remember what happens with someone else. It's time to plant; I am Central time. He's in Chicago; I'm in Houston. I always run the latest Thunderbird, now at 38.3.0. My OS is XP sp3.

    I meet also now "threading" of the messages that I have not opted in for and that I don't like.

    Thanks for any help.

    The number of thread

    In the Thunderbird menu bar
    View - sort by - (Date?) - (down?) - not threaded
    (If no Menu bar visible, press onAlt')

    Matter of time.

    In simple terms
    The sender, or a mail server goes by, has a low battery or dead in the CMOS, which prevents the computer from forming properly validates a date/time group.
    Or, if the date/time group is damaged in some way.

    The computer uses the time standard UNIX to calculate the date and time.
    It starts at 0 as of January 1, 1970 00:00 GMT and increases by 1 every second. Computers can calculate a date and time by calculating the number of seconds since the beginning of the time UNIX.

    If a computer shows a group 31 December 1969 time - 18:00, this indicates that the computer is 6 hours west of Greenwich, England, in the early period, or is located in the central area WE delay / Canada

    This isn't a problem with the recipient's computer or with Thunderbird.
    The recipient must contact the sender and let her know the problem of time, so he can check his own machine or notify his local mail server.

    TB - 38, 3 Win10-PC

  • What computer affects the timestamp of a shared variable?

    What computer affects the timestamp of a shared variable? The computer that hosts the variable or the computer writes the variable?

    (This is important when the system clocks are different).

    Greetings,

    SHB

    Hey,.

    The time stamp has the value of the variable that writes.

    Christian

  • get the timestamp of waveform data

    Hi all

    I'm coming out of the timestamp from waveform data if this is possible. I am writing to file, but the express vi does not allow for fractions of a second and when I write a string waveform data for use with writing to the worksheet, the data of time is lost.

    any suggestions?

    Use Get waveform components. What part of VI? Writing to a file of measure written fractions of a second.

  • variable sharing, missing data, the timestamp even for two consecutively given

    Hello

    I have a problem with missing data when I read a published network shared variable.

    Host VI:

    In a host of VI on my laptop (HP with Windows XP Prof.) I write data to the shared Variable 'data '. Between two consecutively write operations is a minimum milliseconds of wait time. I use it because I want to make sure that the time stamp of each new value of data is different then a preview (variables shared the resolution is 1 ms)

    VI target:

    the VI target cRIO-9012 bed only of new data in the way that it compares the timestamp of a new value with the time stamp of the last value on a device in real time.

    Problem:

    rarely, I'm missing a data point (sometimes everything works fine for several hours, transfer thousands of data correctly above all of a sudden failure occurs). With a workaround, I'm able to catch the missing data. I discovered that the missing data have the timestamp exactly the same, then the last point of data read, is so ignored in my data 'legal '.

    To summarize, the missed value is written to the variable shared host, but ignores the target because its timestamp is wrong, respectively the same as the last value, despite the host waits for a minimum of 10 milliseconds each time before writing a new value.

    Note:

    The shared Variable is hosted on the laptop and configured using buffering.

    The example is simple only to display the function of principle, in real time, I also use a handshake and I guarantee that there is no sub - positive and negative.

    Simplified example:

    Question:

    Anyone has an idea why two consecutively data can have the same timestamp?

    Where timestamping (evil) Finally comes (System?)?

    What would be a possible solution (for the moment with shared Variables)?

    -> I tried to work around the problem with the clusters where each data gets a unique ID. It works but it is slower that comparing the timestamps and I could get performance problems.

    It would change anything when I animate the shared on the RT System Variable?

    Thanks for your help

    Concerning

    Reto

    This problem has been resolved in LabVIEW 2010.  You can see other bugs corrections in theReadme of LabVIEW 2010.

  • Adding properties files TDMS with the C API

    I use the free C API (dll) to write TDMS files. Everything works perfectly except the next function call.

    int __stdcall DDC_CreateFilePropertyString (file DDCFileHandle,
    const char * property.
    const char * value);

    I call the following function in advance to create the PDM file.

    int __stdcall DDC_CreateFile (const char * filePath,)
    const char * fileType.
    const char * name,
    const char * description.
    const char * title,.
    const char * author;
    DDCFileHandle * file);

    When I call the function to create the property, it returns with the error-6202 code (invalid argument). I don't think that there is an invalid argument in my appeal. Someone at - it examples of code? What I need to do something before I can create a property?

    Thanks for your help.

    Does

    DDC_CreateFilePropertyString (file, "MyProperty", "MyValue");

    work?

  • How to get a date to the timestamp of a file XML format

    Hello

    I'm trying to get a date from an external XML file. My XML file looks like this:


    <>http://www.NI.com/LVData">
        8.6.1
        
            Date of birth
            31/03/1983
        
     

    I can get the system to retrieve the correct XML element that shows the nested and elements , but I have no way to retrieve correctly the date. It seems as if she interprets my date seconds since 1904. I try to keep the "readable" for the end user XML, so it is important to keep this date in standard U.S. date format. I eventually uses this date to calculate the age of something. I labour code to subtract a timestamp in the format of the date to the current date and time, but I can't access it when I get back from XML.

    Starting from XML schema, it looks like the timestamp element requires a cluster... but there is no documentation on what to spend. Any ideas how to get back an XML date in this format in a simple and clean?

    Here's my current VI:

    Thank you

    Ryan

    Cambridge, MY

    Quick Tip on "bundle by name.  You don't need to consolidate all these constants where the values correspond to what is the constant of cluster at the top.  The cluster constant defines the data structure and the starting values.  Simply group the values for specific change items.

    Example of tone would be a bit cleaner.  Although the format string should use a capital T.

    As always with dealing with the time, complications could arise due to dealing with time zones and leap years.  Zones shouldn't matter for the calculation of the years since you are rounded up to years.  Although you probably want to round down rather than round at most closely. (I forgot this part in my example).  The problem with leap years when you would be only in a certain number of days of the anniversary, he would round up the age.  The number of rounded days would depend on how much on leap days that nobody has seen in their lifetime.

  • Need to record the timestamp after activation...

    Hello world! I am currently working on a .vi for some fire tests and I need help, try to understand this.

    I have some smoke detectors in place. The tension extends from-10,4 V to 10.4 V and I use FieldPoint

    When the voltage is at 10.4 the detector makes no noise, or, when the detector is less than 10,4 V turn off meaning that it detected smoke.

    This decline occurs when I need to be able to record the timestamp and display it on the front panel. I thought of ways to do it, but I can't think about all the right ways.

    If anyone has any suggestions that would be greatly appreciated.

    Thank you

    -Tanya

    Hi tanyasue327,

    Assuming you are using the FP Read VI in order to acquire the tension of your FieldPoint, you should be able to use the output from 'timestamp' read FP to get the time associated with the value being read. "" The 'timestamp' output will be in a double data type, but you can use the ' timestamp' feature in the functions ' programming ' Timiing palette to convert this DBL to a Time Stamp data type. ' ' Then you can view this at the front panel through a time stamp indicator and/or write to deposit using the screw found in the functions file IO ' programming ' palette file IO.

    I hope this helps!

    Aaron P

    National Instruments

    Technical sales engineer

    http://www.NI.com/support

  • Can I use the timestamp to a global variable that is published to network to reduce network traffic?

    I would use a couple of network-has published the global variables that will contain large groups of data.  I want to host them on a device, but read them in several - consider a distributed control system.  The data will be updated very rarely, but when that happens, I want that all my GUI to know quickly.  I have all the GUI, simply read data 4 x per second (which would be fast enough), but I was wondering if there is a more elegant solution (always using global variables).  If I read only the timestamp 4 x per second each of the HMI, compare to the last reading and then interrogate the integer variable if timestamps are different, which will require fewer resources that just enter the integer variable each time?  In other words, the read timestamp uses the same amount of resources as the reading of the entire variable?

    With really simple code, assuming that the cluster "Data" is big enough, made...

    .. .get me no benefit on...

    mark3545 wrote:

    Which means that they are already doing what I want anyway, no?  If the reader is updated when it changes the writer, I can survey as often I want without increased traffic, correct?

    That is right.

  • How to incorporate the timestamp and file name automatically select and save the file dialog?

    Hello

    I try to incorporate the name of the file that is the registration of the end user with the timestamp in the selected and save file dialog box. Can you help me?

    Thank you

    Hi Mike227,

    I couldn't find a way to immediately make the bat. I guess you need to mess with ActiveX to do. I found an msdn page that could help with this.

    Have you considered simply concatenating the name of the file and the time stamp with a path of the file and save the file when you create it, without inviting the user?

Maybe you are looking for

  • Problems in connection to the mobile network after upgrading to iOS 9.2.1

    Upgrade to iOS 9.2.1 Thursday last on my iPhone 5. Mobile connectivity random but frequent problems faced since then - just lose network connectivity and the phone displays "No. Service" for long periods. Are gone to lift (Airtel, India) and accordin

  • power upgrade

    HP pavilion elite...  Model number...  HPE 477c power supply 300W but I wanted to update 450-600w today when I called I was told it can not but lastweek that I said he could be Anyone know if my power supply can be improved or not, if so, until what?

  • QString Param passing curl - C++, type the question?

    What I try to do Pass a QString to a C++ method. The method is effective QML. My Code applicationui.cpp // Default empty project template #include "applicationui.hpp" #include #include #include #include #include #include #include #include using names

  • HP 932C black cartridge stuck

    The printer carriage will not move access to printer cartridges. How can I fix it?

  • Need to write a different SQL query

    Oracle version: 11.2.0.4create visitors from the table (name varchar2 (10), dated $vdate);Insert values ('John', sysdate-3) visitors;Insert values ('John', sysdate-2) visitors;Insert values visitors ('John', sysdate + 1);Insert values visitors ('Thom