Append value with Data Storage Vis

Dear,
I would like to use the Data Storage VIs to collect my data but I can't achieve my target.
I'm acquiring 1000 samples at 1kHz (N samples on demand) and I make the mean value of the samples. At the end of this proces I have a scalar value and the initial time at wich I have acquired the data. With this two I build a waveform and then I use the Write Data Storage Vi (TDMS) with "append" write mode to save my data.
When I read the Data Storage all the value have lost the time information. They start from 1.00.00,000 01/01/1904 and are equal spaced in time.
How can I keep the time information?
Thanks

Sorry totaly misread what you were doing.
You need to create ensure that waverform that is saved has the correct values for X0 and dx when you save it. Use the build waveform function to acheive this.
edit:
the default value for X0 is timestamp 0 (1904), use get datetimestamp at the very start of the cycle to get the correct value.
James
Message Edited by James W on 04-21-2010 01:06 PM

Similar Messages

  • JDBC MS Access--- cannot extract entry with null value with data type Meta

    I'm trying to extract a data entry with null value by using JDBC. The database is MS Access.
    The question is how to extract null entry with data type memo? The following code works when the label has data type Text, but it throws sqlException when the data type is memo.
    Any advice will be appreciated! thanks!
    Following are the table description and JDBC code:
    test table has the following attributes:
    Field name Data Type
    name Text
    label Memo
    table contents:
    name label
    me null
    you gates
    Code:
    String query = "SELECT name, label FROM test where name like 'me' ";
    ResultSet rs = stmt.executeQuery(query);
    while (rs.next())
    String name = rs.getString("name");
    rs.getString("val");
    String label = rs.getString("label");
    System.out.println("\t"+name+"\t"+label);
    catch (SQLException ex)
    System.out.println(ex.getSQLState());
    System.out.println(ex.getErrorCode());
    System.out.println("in sqlexception");
    output:
    C:\Temp\SEFormExtractor>java DBTest
    yet SELECT name, label FROM test
    null
    0
    in sqlexception

    The question is how to extract null entry with data type memo?Okay, what you need to do is this:
    if (rs.getString("val") == null)
      // do something
    }This way, when it's a null value, you can check it first, and then handle it how you want, rather than getting an exception.

  • Trouble with Data Storage VI's

    I am new to LabView Data Storage, I wrote a very basic program to write data to a data base and to read the data. for some reason I am unable to read the data. I am attaching the VI's, Please can any one tell me what I am doing wrong in the VI's.
    Thank you,
    Mudda.
    Attachments:
    Read DataBase.vi ‏156 KB

    Mudda,
    I modified your code and I'll attach it here for you to look at. First of all, you need to tell the data storage open what function to perform (e.g. Open, creat, or replace). Then, you need to make sure the file you're writing to is a .tdm file. Finally, you need to remove the "Signals" terminal from your read and write vi's. To do this, double click on the vi and uncheck the box for "Show terminals for data channel". If this is checked and the "signals" terminal is visible, then the refnum will not pass any info on the file unless a signal is actually connected. So take a look at the code and see if you have any questions.
    Tyler S.
    Attachments:
    write.vi ‏108 KB

  • Unable to create table with column default value with date interval

    Please help to create table with calculated date defaullt value:
    CREATE TABLE emp (
      birth_date  DATE  DEFAULT sysdate + interval '3' day NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date + interval '3' day NOT NULL
    below syntax error:
    TT1001: Syntax error in SQL statement before or at: "+"

    I'm afraid this is not possible; as per the SQL Reference, TimesTen only supports 'constant expressions' for the DEFAULT clause and none of these are constant expressions.
    Chris

  • Query to group values with date

    Dear all,
    I have a table tdate with 13 columns with one column named trandate
    with value like "11/07/2008 18:00:19"
    NOw I want to retrieve values from the table like
    select count(*) from trandate where where ttype = '081' and T_FILE like 'monT%';
    I want to count the records for every month like
    jan-2009 - 120 (120 is the number of records satifying the above condition and belong to the period jan 2009 (derived from trandate column)
    feb-2009 - 150 (150 is the number of records satifying the above condition and belong to the period feb 2009 (derived from trandate column)
    How can i rewrite the query
    Thanks
    Kai
    Edited by: KaiS on Feb 1, 2011 4:23 AM

    Something like this?
    SELECT TO_CHAR(trandate,'mon-YYYY') AS trandate
         , cnt
    FROM
            SELECT trandate
                 , COUNT(*) AS cnt
            FROM   trandate
            WHERE  ttype = '081'
            AND    t_file LIKE 'monT%'
            GROUP BY trandate
            ORDER BY 1
    )If that doesn't work out then please post:
    1. Oracle version (SELECT * FROM V$VERSION)
    2. Sample data in the form of CREATE / INSERT statements.
    3. Expected output
    4. Explanation of expected output (A.K.A. "business logic")
    5. Use \ tags for #2 and #3. See FAQ (Link on top right side) for details.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Dimention values with date range

    Hi All
    We have a requirement to have dimensions which have date ranges like
    today's
    yesterdays
    last week
    last month etc
    When tried to add dimension I can see only string integer and float values
    Do anybody knows how to add Date with the range??
    TIA
    Lalit

    The solution we've worked with in the past is to convert the dates to YYYYMMDD and store in the index as Integer values. Thus you can use range filters by converting any incoming values to the same format. Your interface layer will have to written to accommodate those mappings.

  • How to check the integer value with Date Column

    Hi Friends,
    I have a filter called 'Days'. I need to show the data based on the Days filter (Example : 2 Days).
    Example Query:
    Select * from Tb1
    Where EndDate(Value as '03/05/2013' > Days ( value as 2)
    How to handle the above scenario.
    Thanks in Advance....
    Regards,
    LuckyAbdul

    what meanings does it make. how can you compare a date to day count. Or is the inetger value an offset ie say 2 days from today etc?
    If yes you can use like below illlustration
    DECLARE @DayOffset int
    SET @DayOffset = 2
    SELECT *
    FROM TAble
    WHERE ENdDate >= DATEADD(dd,DATEDIFF(dd,0,GETDATE()),@DayOffset+1)
    refer
    http://visakhm.blogspot.in/2010/01/some-quick-tips-for-date-formating.html
    Please clarify with an example what you're expecting if its different from the above.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Probelm with data storage

    Hi all,
    I have a table called ztfin_ftpr.In this I have field called zkprs. Field type is z_dzkprs of length 11 and 4 decimals.Reference field is waers and reference table is T001.
    When I try to create an entry in the table through se16 if I specify the value or zkprs as 1.6 it is getting saved as 0.0160.
    Can any explain me what the reasonis and how to get rid of this ?
    Regads,
    Varun.

    Hi,
      alway specify 4 decimal degits.
    that write 1.6000
    i have seen many cases comma is used instead of decimal to enter numeric value.
    so try like this
    1,6
    Message was edited by: Manoj Gupta

  • I need a memory management/ data storage recomendation for my IMac 2 GH Intel Core 2 Duo

    Since giving my mid 2007 IMac a 2GB memory boost to accommodate Lion all has been well however my memory is full. I have a sizable ITunes library and 6000 photos in IPhoto, Me thinks I should store this all more effectively for the safety of the music and photos and for the well-being of the computer....but there seems to be choices. Is this where ICloud comes into play or time capsule or should I just get an external mini hard drive. Can anyone help me with some pearls of wisdom with data storage.

    Greetings John,
    There are two types of memory which you mention here.
    The 2 GB memory you refer to is RAM.  It is not used for storing information.  Rather for giving the computer a place to do much of its work.
    File storage is handled by the hard drive of the computer.
    If your available hard drive space is getting low you can move larger files to a Mac Formatted external drive:
    Faster connection (FW 800) drives:
    http://store.apple.com/us/product/H2068VC/A
    http://store.apple.com/us/product/TW315VC/A
    http://store.apple.com/us/product/H0815VC/A
    Normal speed (USB) drives:
    http://store.apple.com/us/product/H6581ZM/A
    Larger files can include entire databases like iTunes, iMovie, or iPhoto.
    Keep in mind that if you move these items to an external drive you will have to have the drive plugged in and powered on to access the data on them.  In addition, if you move important information off your internal drive to an external, you should be sure that your backup solution is backing up that external drive to keep your information safe.
    iCloud is not a file storage solution and TimeCapsule is not suited for storing databases like those mentioned above (its meant primarily as a backup solution).  I would stick with an external drive (1 to hold your big files and another one big enough to backup both your computer and the first drive).
    Here are some other general computer clean up suggestions: http://thexlab.com/faqs/freeingspace.html.
    Hope that helps.

  • How to compare Date in the TextField or DateTime with Date/Time field?

    Hi All,
    I am facing an issue with respect Date comparinson. I tried to look into entire discussions but failed to get the answer.
    My issue is: I wanted to comparet Date/time field value with Date value which is in TextField.
    The functionality of my form is:
    I have dropdown list which lists the registered customer ids binded to XML Datasource. On selection of the customer id from the dropdown I am displaying customer registration date in the TextField or say Date/Time field as below code in dropdown change event.
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value; (this is TextField control)
    In form I have an Date/Time field in which use will select the date of item purchase. In the validation part I want to make sure that, the purchase date selected in Date/Time field must be greater than the Customer Registraiton Date. I able to compare if the customer selects the date from two different Date/Time fields. But how to compare the dates which one is in Date/Time field and Date is in TextField?
    I have tried using Num2Date and Date2Num with "YYYY-MM-DD"  format to compare but not succeed!
    Can you guys help me in this? Thanks in advance
    Regards.

    Hi,
    Yes, I am able to display the date which I have assigned to the text box. In the message box it show the value as '31/05/2009', since in this format i am assigining the date in the text box.
    Here is the code which I am assigning the value:
    RegistrationDetails.PurchaseEntry.txtRegDate.rawValue = regDataNode.CREATION_DATE.value;
    Do I need to change the format while assigning value in text box?
    You have told that, you have attached your test form, nothing is the reply. Can you repost the file?
    Regards.

  • If a  class method exporting a value with the generic type 'data'.

    Then how can I get the information?
    For exmple.
    cl_my_clss->get_value( exporting ev_data = .... ) .
    ev_data is a type of data.
    I can not use DATA : lv_mine type data. because generic data should be used in formal parameter, however , if I use a field symbol, how to assign value with out knowing the data type?
    Best regards,

    Hi Blake,
    As per my understanding,
    You are getting the data type from the database table....
    You want to use the same data type....
    Lets say for example:
    You have a db table x with field y having data type Z.
    What you do is that, while declaring the data type for the attribute in the method use the reference as table_name-field_name(x-y).
    Or....
    use ANY. This will give you a chance to map any field type to this method....
    Note: Using ANY will limit the syntax that you can use within the method......
    Regards,
    Kunjal

  • TREX - Configuring Distributed Slave with Decentralized Data Storage

    I am creating a distributed TREX environment with decentralized data storage with 3 hosts.  The environment is running TREX 7.10 Rev 14 on Windows 2003 x64.  These are the hosts:
    Server 01p: 1st Master NameServer, Master Index Server, Master Queue Server
    Server 02p: 2nd Master NameServer, Slave Index Server
    Server 03p: Slave NameServer, Slave Index Server (GOAL; Not there yet)
    The first and second hosts are properly set up, with the first host creating the index and replicating the snapshot to the slave index server for searching.  The third host is added to the landscape.  When I attempt to change the role of the third host to be a slave for the Master IS and run a check on the landscape, I receive the following errors:
    check...
    wsaphptd03p: file error on 'wsaphptd03p:e:\usr\sap\HPT\TRX00\_test_file_wsaphptd02p_: The system cannot find the file specified'
    wsaphptd02p: file error on 'wsaphptd02p:e:\usr\sap\HPT\TRX00\_test_file_wsaphptd03p_: The system cannot find the file specified'
    slaves: select 'Use Central Storage' for shared slaves on central storage or change base path to non shared location
    The installs were all performed in the same with, with storage on the "E:" drive using a local install on the stand-alone installation as described in the TREX71InstallMultipleHosts and TREX71INstallSingleHosts guides provided.
    Does anybody know what I should try to do to resolve this issue to add the third host to my TREX distributed landscape?  There really weren't any documents that gave more information besides the install documents.
    Thanks for any help.

    A ticket was opened with SAP customer support.  The response to that ticket is below:
    Many thanks for the connection. We found out, that the error message is wrong. It can be ignored, if you press 'Shift' and button 'Deploy' (TREXAdmin tool -> Landscape Configuration).  We will fix this error in the next Revision (Revision 25) for TREX 7.1.

  • Test-OutlookConnectivity fails with '[Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory sites'.

    I have a two site DAG, and the command is running from the alternate site where the databases are not currently being hosted. The following command...
    Test-OutlookConnectivity -Protocol:TCP -TrustAnySSLCert:$true -MonitoringContext:$true
    ...errors with the following output:
    An error occurred while trying to access mailbox CurrentlyHostingMBServerName.InternalDomainName, on behalf of user InternalDomainName\extest_bb13200232474
     Additional information:
     [Microsoft.Exchange.Data.Storage.WrongServerException]: The user and the mailbox are in different Active Directory sit
    es..
        + CategoryInfo          : OperationStopped: (Microsoft.Excha...onnectivityTask:TestOutlookConnectivityTask) [Test-
       OutlookConnectivity], CasHealthStorageErrorException
        + FullyQualifiedErrorId : F2F8AC0D,Microsoft.Exchange.Monitoring.TestOutlookConnectivityTask
    I thought this command would work based on the 'AllowCrossSiteRpcClientAccess: True' option on the DAG.  The command works well if run a CAS server in the active DB site.

    Hi,
    Exchange 2013 users use Outlook Anywhere to connect to CAS server. You may run the RCA to test the connectivity:
    https://www.testexchangeconnectivity.com/
    Thanks,
    Simon Wu
    TechNet Community Support

  • Hi,i need to upgrade my 13"late 2011macbook pro with an ssd drive.i have noticed there is a system hard drive for booting up and a data storage hard drive that my computer uses,are these the same hard drive i can see inside my laptop?

    hi,i use logic pro 9 and cubase to record,produce and master audio recordings and have bought a mac as recommended.have upgraded to 8gig memory (which i was told was the maximum you could upgrade a macbook pro)and still my recordin is slightley behind plauback.i need to replace my hard drive with a solid state drive to solve the problem.i have seen on youtube how to replace the hard drive but have noticed on the disk partition information that there is a 500gig harddrive for the system(booting up ect)and a 500gig harddrive for data storage,are these the same unit?i need to be sure im upgrading what the system uses to an ssd as well as the data storage or the problem wont be solved.i have an external hard drive so i have been looking at a smaller,faster ssd. hope you can help!

    DaisyMay wrote:
    Firewire 400/USB 2.0/1.1
    I would recommend not settling for less then USB 3 or hold out for Thunderbolt, if your machine is capable. Firewire 800 minimum.
    MacBook Pro, Mac OS X (10.7), 2.4GHz IntelCore i5 320 HD 8GB RAM ParallelsDesktop6.0

  • Windows 7 64bit Raid 1 Data Storage setup with UEFI and 6TB drives

    i just bought a GigaByte MB with UEFI bios, 1 SSD 128GB drive for the OS (boot up), and 2 6TB drives for use in a raid 1 setup for the data storage.
    I have been able to install win 7 64bit using the UEFI dvd drive.  I have been able to define the 6TB mirror via the bios (under the Intel Rapid Storage Technology option) .  But when ever i go into windows, and check under Disk Management, i don't
    see the raid 1, i see two drives listed for the data, each at 1492 GB.   I should be seeing 1 drive at 5.4TB.  
    note: I have tried re-installing win7 64bit many times to see if i have missed something.   When i run setup off uefi dvd drive, i see that drive 1 (of what should be part of the mirror) and drive 2 are listed there at the reported 1492 GB size each.
    So it seems that win7 doesn't see that mirror that i created via the bios. So is this a bios setting problem somewhere?   i presume on this screen i should see the correct mirror size already.
    Also, do i need to install win7 via the uefi dvd if  i don't want to boot off those large drives (i just want to boot off the ssd. But when i did try that using a legacy mode, i couldn't later try to create a single large drive for the mirror using
    GPT formatting.  it just wasn't an option.  although the mirror was recognized as 1 drive, but broken into 2TB and 3TB.)
    what could i possibly be doing wrong??  
    Thanks for any help

    Thank You Roger.   I did call Gigabyte.   This is how i solved it with the gigabyte support team. 
    1.   Don't try installing Win7 64bit sp1 and setup RAID at the same time.  (even go ahead and unplug those raid drives if you have it plugged in).   The OS should be installed first on the boot drive, but make sure the BIOS is already set
    to RAID (not AHCI.  If you already installed OS under AHCI, you need to reinstall OS.  i find this crazy because what if you decide to install raid down the road.. to an existing machine.. you can't do that because of this).     Make sure
    to install OS with the UEFI dvd drive option (i had done this).
    2. Once the OS is installed, install all drivers that come for the Motherboard... That should include intel Raid drivers. (note gigabyte support didn't tell me to do this, but i didn't want to take a chance to have to reinstall OS again or have more problems,
    but it makes sense.)
    3. Now i have the GA-H97-Gaming 3 mother board, it had Bios F3.  I upgraded it to F5 as per support tech.
    4. turn off machine, and replug in the two 6TB drives.
    5. after reboot, i find out that i no longer see Intel RAPID Storage Technology. (this should have displayed when i set the SATA Mode Selection to RAID before i started all this business... it did under bios F3, but not under F5.. bug??  i think so,
    so i plan on letting gigabyte know about this).  This is a problem.  In Intel RAPID Storage Technology is where you define the RAID in the first place.    OK, well after several reboots.. i tried to use CTRL-I to get to intel's interface
    rather than that of the gigabyte bios.   Voila... i define the Mirror... 
    6. I am able to boot into OS.   I got to Drive Management.  I now see 1 6TB drive.  I initialize it of course using GPT.  Format it.  All all looks good now.   
    Hope this helps someone.. took me enough tries to get it right.   I really am bothered about requiring the OS installed in the correct SATA mode just to get RAID working.  As i mentioned, you can't change your mind afterwards without reinstalling
    OS.   Also i couldn't even get the OS setup to start when i had those raid drives plugged in.. so make sure to unplug them.
    Best Regards.

Maybe you are looking for