Adding time stamp to table/array

Hi,
In my posted VI I am displaying some collected temperature data on a table.  What I am having trouble with is getting the time data to work properly on the table.  When I set the include time data to true, it reads out the time as 1904 etc. I'm not sure if it's possible for me to include a time stamp in my array because when I try to convert a time stamp to a double precision float, the output is still a cluster, and thus cannot be added to the array.  I've also tried to convert the array to a string and concatenate the time stamp on, but the signals input for the table does not accept strings, and because I would eventually like to export this table to a spreadsheet in a file, I don't really want to link the strings to the indicator directly.  I've tried to work with the instrument as well, but when I read time data from it it gives it back in the form of multiple numbers, such as 2008, 8, 28, 13, 30, 31.12 and I can't consolidate it to one number.  Needless to say, I'm a little stumped and am open to suggestions on how to fix this problem, whether its a quick fix or a change in the way I'm trying to record the data.
Thanks in advance,
Mike
Message Edited by mbeenen on 08-28-2007 03:59 PM
Attachments:
Automated Thermal Testing Table.vi ‏75 KB

Here are the sub VI's that I'm using.  The inner while loop is designed so that the loop will halt immediately when stopped, and not have to finish its current iteration, as the iteration period is intended to be rather long.  I may modify the program to have a programmable start/stop time later, but this is at least my temporary solution.  The purpose of the decimate array function is to seperate out the channel label from the actual data so they can be placed as headers in the Excel function.  The intent was likely not clear with the lack of the SubVI's.  Overall, the display table on the front panel is no longer necessary, it was just for me to see how the table was working in the early stages of development.
The one issue I had with your suggestion is the fact that I the build waveform function only accepts a 1-D array for the waveform input, and with multiple and variable number of channels being used I'm not sure how I could easily manipulate the data I gather into multiple 1-d arrays.
As always the help is appreciated,
Mike
Attachments:
Write_Table_To_XL_Mod.vi ‏39 KB
Conf Temp 2.vi ‏37 KB
EZ Temperature.vi ‏20 KB

Similar Messages

  • Append two files with added time stamp

    Hi experts,'
    MY Requirement is I need to pick two files from two different FTP Locations and append them to file receiver FTP Location with Added timestamp.
    How to achive this as with append we do not get option of adding time stamp.
    Other thing is I want all the appended files should be there  in Receiver folder means like if we get two files today they should be appended to one and shld be put in Receiver folder then two files for tomorrow and they shoud be appended as a separate file in Receiver Folder.
    How to achive this??
    Regards,
    Nidhi

    Hi Nidhi,
    >>MY Requirement is I need to pick two files from two different FTP Locations and append them to file receiver FTP Location with Added timestamp
    Use BPM and pick the two files
    >>Other thing is I want all the appended files should be there in Receiver folder means like if we get two files today they should be appended to one and shld be put in Receiver folder then two files for tomorrow and they should be appended as a separate file in Receiver Folder.
    Use variable substitution and create the directory and filename dynamically...
    Use Dynamic configuration module in receiver adapter and do as specified in this blog:
    /people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot
    Regards
    Suraj

  • How to add a time stamp to an array

     Currently the VI that I have attached has the capacity to log data from the set of 14 arrays. I currently have a tick counter hooked up. However, I would like to add a time stamp that will display the elapsed time in seconds from the begining of the data logging. Could anyone help me out with that? Please see the attached VI and sorry for how messy it is, I have yet to go back and clean up the wiring. 
    the mess of arrays on the lower left hand of the while loop feed into the "Index Array" building block and from there they will be scaled (for most of the wires the multiplyer is just there so that I can see what channel they will be when I hook it up for logging) The wires then feed into a "Build Array" Building block and I assmed that is where I had to hook up the time stamp for me to be able to log it.
    Thanks,
    Attachments:
    PDAQ56 datalogging V11.vi ‏104 KB

    mets501 wrote:
      Also, try pressing Ctrl-U on the block diagram.  It cleans up the wires for you atomatically :-)
    Jeremy
    That tool does not exist before LabVIEW 8.6.  The original poster attached a VI from LV 8.0
    Attached is the VI where I ran Block Diagram cleanup in 8.6.1f1 and back saved to LV 8.0.  I went through and cleaned up almost all the coercion dots as well.
    The original poster should start working from this file since it is much cleaner than the one they posted.
    Attachments:
    PDAQ56DataloggingV11.vi ‏84 KB

  • Adding time stamp to the field

    Hi,
    All
    I need to pass the Current Date and Time Stamp to the Target Field
    For Current Date there is a Standard Function Is There ,For Time stamp Is there any Standard Function is there or we Need to write write UDF ,if we need to write to UDF Please provid Java Code for that.
    Marks is awardble
    Thnx in advance
    Regards
    kumar

    Hi,
    Using this java code you can get both Date and Time...
    import java.util.Date;
    Date d = new Date();
    return d.toString();
    The format returned will be like this "Tue Dec 26 12:15:24 IST 2006"
    To change the format, you can use get methods( getDate(), getHours() ) of Date class and concatenate them.
    Regards,
    Uma

  • Adding time stamp while archiving the file in b2b

    Hi
    I want to add the time stamp when archiving the file when I am using file/ftp channel. can anybody tell me how can I do that. otherwise it is overwriting the exising file in archive directory.
    Thanks
    Sri

    Hi Sri,
    otherwise it is overwriting the exising file in archive directory.It might be happening because inbound files are not having unique name. You have two options -
    1. Make sure that inbound files have unique name (you may add timestamp in inbound filename format)
    2. Do not use the archive feature of Oracle B2B. Instead use a transport callout to write a copy of incoming document into desired directory with desired filename. To know more about callout offering of Oracle B2B, please refer -
    http://docs.oracle.com/cd/E28280_01/user.1111/e10229/callouts.htm#CHDEFBDG
    Regards,
    Anuj

  • Adding time stamp to a file

    Hello
    Can you please advise me How to add timestamp to a file from Oracle Forms??
    I am using Forms [32 Bit] Version 10.1.2.0.2 (Production)
    Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production.
    when i tried :
    1.host('COPY :FIC_SOURCE :FICSOURCE||date');
    A dos window appears asking for date input.When I enter the date details it does not append date to the file.
    2.host ('COPY c:\temp\TEST1.CSV c:\temp\TEST1||date||.CSV');
    nothing happens
    Cheers,
    Suresh

    Hello,
    there was a typing error.
    host('COPY :FIC_SOURCE :FIC_SOURCE||date');

  • Help to read a table with data source and convert time stamp

    Hi Gurus,
      I have a req and need to write a ABAP prog. As soon as i excute ABAP program it should ask me enter a data source name, then my ABAP prog has excute teh code, in ABAP code i have to read a table with this data source as key, sort time stamp from table and should display the data source and time stamp as output.
    As follows:
    Enter Data Source Name: 
    Then user enters : 2lis_11_vahdr
    Then out put should be "Data source  :"  10-15-2008.
    The time stamp format in table is 20,050,126,031,520 (YYYYMMDDhhmmss). I have to display as 05-26-2005. Any help would be apprciated.
    Thanks,
    Ram

    Hi Jayanthi Babu Peruri,
    I tried to extract YEAR, MONTH, DAY separately and using
    EDIT MASK written it.
    Definitely there will be some STANDARD CONVERSION ROUTINE will be there. But no idea about it.
    DATA : V_TS      TYPE TIMESTAMP,
           V_TS_T    TYPE CHAR16,
           V_YYYY    TYPE CHAR04,
           V_MM      TYPE CHAR02,
           V_DD      TYPE CHAR02.
    START-OF-SELECTION.
      GET TIME STAMP FIELD V_TS.
      V_TS_T = V_TS.
      CONDENSE V_TS_T.
      V_YYYY = V_TS_T.
      V_MM   = V_TS_T+4(2).
      V_DD   = V_TS_T+6(2).
      V_TS_T(2) = V_MM.
      V_TS_T+2(2) = V_DD.
      V_TS_T+4(4) = V_YYYY.
      SKIP 10.
      WRITE : /10 V_TS," USING EDIT MASK '____-__-________'.
              /10 V_YYYY,
              /10 V_MM,
              /10 V_DD,
              /10 V_TS_T USING EDIT MASK '__-__-__________'.
    If you want DATE alone, just declare the length of V_TS_T as 10.
    Regards,
    R.Nagarajan.
    We can -

  • Help with saving time stamps to "write to measurement file" excel format.

    I am having problems saving the timestamps from my data to the write to measurement express vi for excel.  My incoming data is converted from dynamic data to a 1d array for processing, which I understand you lose the time stamp data. I added a new array for time stamps but this array then cannot be converted back to the dynamic data that is requested to go into the write to measurement file express vi.  I would prefer to leave the data in an array to be saved rather than converting it to a waveform so is there any way to add the time stamps from my 1d array back into the write to measurement file? 

    I set it up to build a waveform now but I am still having issues with it saving the correct timestamp.  The time just incriments for every second (as it did before converting the dynamic data to the waveform). I attached a screenshot.  
    Attachments:
    waveform.png ‏36 KB

  • Appending and add time stamp at a time........

    Hi all,
    i am working on a scenario...
    it is file based..no mapping and bpm can be used.
    I need to pick up file through xi and append it and put in the target with time stamp to it.
    we can achieve this if mapping or bpm is allowed.....
    But,in file processing we can use only one option at a time.....
    I found a way:
    scenario one: files will be appened and kept in a temparory folder
    using another scenario we will pick up the appeneded file and add time stamp and keep in target structure...
    but i dont think this is advisable...
    please suggest me any other ways to achieve this...(can run operating system command be helpfull??)
    thanks in advance..
    Regards,
    Kiran.

    HI,
    Yes you are right, Appending and adding Time Stamp will not be possible simultaneously.
    Refer - this could help you
    Dynamic Filename with TimeStamp  
    Dynamic Filename with TimeStamp
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    But some how you have to use mapping for it. Then if its allowed to use the mapping then as you have suggested, should have to go for two scenarios. No alternative,
    Probably also you can try with Customized Adapter Module for this.
    Thanks
    swarup

  • How to display the time stamp in a data log table

    Hello,
         I want to display data during the data acquisition process. How do I  add the time stamp as one of the column in the 'Result Table' located at bottom left of the example code?
    Thanks,
    Ryan
    Solved!
    Go to Solution.
    Attachments:
    Cycle Analysis.vi ‏229 KB

     I inserted the portion you added to my program and it worked but not exactly the way I want. It added the time and date when I start the data acquision. But I want the time stamp to be shown on every single row. Please see attached image.Thanks.
    Attachments:
    Result.JPG ‏54 KB

  • How do i find out the tables (data)effected in a schema after a particular time stamp

    how do i find out the tables (data not structure)effected in a schema after a particular time stamp?
    pls email in [email protected]

    You can't do that. That would be a real security risc.
    /KAj

  • How do i find out the tables effected in a schema after a particular time stamp

    how do i find out the tables effected in a schema after a particular time stamp?
    pls email in [email protected]

    If you are doing a reload every time then you can issue following commands to clear data from cube.
    lmt name to all
    allstat
    clear all from <cubename>prttopvar
    You can wrap above commands in pl sql procedure using dbms_aw.execute package and execute it before cube load starts. Instead of clearing it from whole cube you can clear only from one partition also. Just take a look at clear command in olap DML 10.2 reference.
    Thanks,
    Brijesh
    Edited by: Brijesh Gaur on Aug 10, 2010 6:47 AM

  • I have a psts on my mac and the time stamp hasnt changed since i added this to the mac even though they have been imported?

    i have a psts on my mac and the time stamp hasnt changed since i added this to the mac even though they have been imported?
    where is the data stored when i moves messages to the imported pst?
    after serval months of rebuidling and creating new identites for Outlook for mac2010 any reasons why this is constantly happening?

    I am not sure what you mean by this.
    is it ok to delete outlook ID's copy/backup as running out of space?
    If you mean you have several identities in the Office Identities folder then yes. You can delete whatever you don need\want except for your current.
    Are you updated to the latest version of Office?
    After the restore, navigate to ~/Documents/Microsoft User Data/Office 2011 Identities/your identity and delete the file called Database. Then rebuild.
    This may help:
    http://www.officeformachelp.com/outlook/troubleshoot/

  • Add time stamp array into first column of text file

    I am writing daq output to a file by using array to spreadsheet string vi then write that to a file but I would like to add a time stamp array into the first column of the text file. How do I do this?

    When you use a DAQmx Read, you have the option of returning a waveform data type. This includes time data. If you were to use this and either Export Waveforms to Spreadsheet File or Write Measurement File, this would included. To stick with the regular Write to Spreadsheet File, you would have to create an array of timestamps yourself based on a start time and the sample rate of the DAQ. Then you would convert this and the data array to strings and use the string array type of Write to Spreadsheet instead of the DBL type.
    Message Edited by Dennis Knutson on 09-25-2007 01:12 PM
    Attachments:
    Write to Spreadsheet - Strings.PNG ‏1 KB

  • Help adding current Date and Time stamp to file name

    I need help with my script adding current Date and Time stamp to file name.
    This is my file name = myfile.htm
    I would like to save it as = myfile.htm 8/29/2007 11:41 AM
    This is my script:
    <script>
    function doSaveAs(){
         if (document.execCommand){
              document.execCommand('SaveAs','1','myfile.htm')
         else {
              alert("Save-feature available only in Internet Exlorer 5.x.")
    </script>
    <form>
    <input type="button" value="Click here to Save this page for your record" onClick="doSaveAs()"
    </form>
    Thank you

    I agree, I guess I overlooked that!
    I would like to save it as = myfile 8/29/2007 11:41 AM .htm
    I need help with my script adding current Date and Time stamp to file name.
    This is my file name = myfile.htm
    I would like to save it as = myfile 8/29/2007 11:41 AM .htm
    This is my script:
    <script>
    function doSaveAs(){
    if (document.execCommand){
    document.execCommand('SaveAs','1','myfile.htm')
    else {
    alert("Save-feature available only in Internet Exlorer 5.x.")
    </script>
    <form>
    <input type="button" value="Click here to Save this page for your record" onClick="doSaveAs()"
    </form>

Maybe you are looking for