Time/date to file upon command

Hello,
I'm an absolute beginner at Labview and am only in posession of Labview 6.1 (so I can't open any new VI's).
I'm attempting to write the simplest code ever, which is that upon pressing "ENTER", the Time/Date is stored onto a spreasheet.
Ultimately, the point of this is recording the exact time, whenever the pressure reaches a certain value by pressing enter.
What I would like to do is make the spreasheet into Array format such as:
Time Pressure (psi)
12:01:21 100
12:03:22 200
12:04:24 300
So far I've managed to write a loop that records the time... every second and save it to file, since I don't know how to make the "enter" command. And even at that, the file will only record ONE value.
Please help.
Thanks
Aquaphire
---USING LABVIEW 6.1---

Hi,
Please find attached VI for your reference
As for the [Enter] to save data,
1. Right-click on the Save Button
2. Select "Advanced"
3. Select "Key Navigation..."
4. Assign a Key to the control
Done
Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
IFK_FIO_Save DateTimeData To File.vi ‏71 KB

Similar Messages

  • Upload time data text file in ztable for HR module

    dear all SAP guru's
    text file is like that
    260807300001
    270815480001
    270812210002.
    1st  4 char is date&month .
    2nd 4 char is time.
    3rd 4 char is employee no.
    i want to upload this file in z table.
    when i m uploading the time is not uploading correctly.my condition is like that
    already 1 condition is in Z table after that when i upload 2nd entry that time what 1st time is  time in and 2nd is  time out.
    coding as fallows . give any solution for that.
    LOOP AT it_out.
       CONCATENATE sy-datum0(4) it_out-text2(2) it_out-text+0(2) INTO itab1-val1.
       CONCATENATE it_out-text+4(4) '00' INTO itab1-val2.
       MOVE it_out-text+8(4) TO itab1-val3.
       APPEND itab1.
       CLEAR itab1.
    ENDLOOP.
    SELECT *
             FROM ztimedata
             INTO TABLE it_ztimedata.
    DESCRIBE TABLE it_ztimedata LINES cnt.
    LOOP AT it_out.
      CLEAR cnt.
        LOOP AT itab1.
          itab1-date1 = itab1-val1.
          itab1-timein = itab1-val2.
          itab1-pernr = itab1-val3.
            cnt = cnt + 1.
          itab1-counter = cnt.
          MODIFY itab1.
        ENDLOOP.
    ENDLOOP.
    SORT itab1 BY pernr date1 timein.
    DATA cnt1 TYPE i.
    DATA p_date LIKE sy-datum.
      SELECT SINGLE  * FROM ztimedata
                     INTO CORRESPONDING FIELDS OF  it_ztimedata.
    LOOP AT itab1.
              ztimedata-counter    = itab1-counter.
              ztimedata-date1      = itab1-val1.
              ztimedata-pernr      = itab1-val3.
              ztimedata-shift      = itab1-shift.
              ztimedata-attendance = itab1-attendance.
              CLEAR IT_ZTIMEDATA-TIMEIN.
           IF ztimedata-timein IS INITIAL.
              it_ztimedata-timein     = itab1-val2.
              ztimedata-timein     = itab1-val2.
              CLEAR it_ztimedata-timeout .
           ELSEIF ztimedata-timein IS NOT INITIAL.
              it_ztimedata-timeout     = itab1-val2.
              ztimedata-timeout    = itab1-val2.
           ENDIF.
              append it_ztimedata.
              MODIFY ztimedata from it_ztimedata.
           COMMIT WORK.
      ENDLOOP.
    in that coding if any correction pls correct me.
    Nikhil Narkhede

    Hi,
    You just try like this..Move date field into one Variable Year field into one variable and
    Time field into one variable..Then Pass this field to your screen fields.
    Rgs,
    Priya.

  • How do I add time/date stamp to my screen capture file names?

    I'm on mac osx.
    I'm trying to add time/date stamp to my screen capture file names. (at the moment it's just 'Picture 1' etc..)
    I've tried the following command  in terminal but have not had success. please help!!
    defaults write com.apple.screencapture name "datestamp" at "timestamp"
    killall SystemUIServer

    Surely someone else will provide a better solution. Meanwhile, however, you might want to try the following script. Copy and paste the script into the AppleScript Editor's window and save it as an application. Then drop your screen capture files on the droplet's Finder icon.
    on open theDroppedFiles
        tell application "Finder"
            repeat with thisFile in theDroppedFiles
                set theFileName to name of thisFile
                if (word 1 of theFileName is "Picture") and ¬
                    (word 2 of theFileName = word -2 of theFileName) then
                    set theExtension to name extension of thisFile
                    set P to offset of theExtension in theFileName
                    set theCreationDate to creation date of thisFile
                    set dateStamp to short date string of theCreationDate
                    set timeStamp to time string of theCreationDate
                    set name of thisFile to "Screen Shot " & dateStamp ¬
                        & " at " & timeStamp & "." & theExtension
                end if
            end repeat
        end tell
    end open
    Message was edited by: Pierre L.

  • How to load date and time from text file to oracle table through sqlloader

    hi friends
    i need you to show me what i miss to load date and time from text file to oracle table through sqlloader
    this is my data in this path (c:\external\my_data.txt)
    7369,SMITH,17-NOV-81,09:14:04,CLERK,20
    7499,ALLEN,01-MAY-81,17:06:08,SALESMAN,30
    7521,WARD,09-JUN-81,17:06:30,SALESMAN,30
    7566,JONES,02-APR-81,09:24:10,MANAGER,20
    7654,MARTIN,28-SEP-81,17:24:10,SALESMAN,30my table in database emp2
    create table emp2 (empno number,
                      ename varchar2(20),
                      hiredate date,
                      etime date,
                      ejob varchar2(20),
                      deptno number);the control file code in this path (c:\external\ctrl.ctl)
    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime, ejob, deptno)this is the error :
    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 5
    C:\>any help i greatly appreciated
    thanks
    Edited by: user10947262 on May 31, 2010 9:47 AM

    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime, ejob, deptno)Try
    load data
    infile 'C:\external\my_data.txt'
    into table emp2
    fields terminated by ','
    (empno, ename, hiredate, etime "to_date(:etime,'hh24:mi:ss')", ejob, deptno)
    this is the error :
    C:\>sqlldr scott/tiger control=C:\external\ctrl.ctl
    SQL*Loader: Release 10.2.0.1.0 - Production on Mon May 31 09:45:10 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Commit point reached - logical record count 5
    C:\>
    That's not an error, you can see errors within log and bad files.

  • How to get last modified date and time of a file which is in apache server.

    Hi ,
    I need to get last modified date and time of a file in remote machine.
    This file is in remote machine which has apache server installed.
    I am trying to get this information by connecting to apache server from client by giving absolute URI of the file to file object.
    URI is got from apache server URL by using toURI method.
    when I use lastModified method , its throwing exception , because scheme of URI is not file.
    I can't give scheme as file because ftp server is not installed on that server
    Is there any other way to get this information .

    No, unless you can use an FTP client.

  • Automatically set date and time in PDF file

    Good Day to all
    I use LiveCycle to create a PDF template so my users can fill up reports with out printing, the problem is the "time/date" field changes every time the supervisor open the file, so there is no way to track the date the report was created.
    I'm looking for a way (any trick) to make the automatically set but only when I save the document instead when I open it, I hope I'm explaining myself.
    Or maybe I just need to use another software, if you can recomend me one, or a trial just to be sure is the one I need.
    Any help would be great!!!...
    Thanks!!!

    You probably might have placed the code to populate the Data/ time value on the initialize event. Before you assign the current system date, check if the field has a value already. If it has then do not assign a new value.
    Thanks
    Srini

  • Need to add date/time stamp to file name without time change creating new files

    We have setup our application to save data once a trigger event occurs. We also need the date/time stamp as part of the file name. We used Format Date/Time String and concatenated it into the file name. It all works good, but as the time changes (seconds, minutes, etc.) it causes the Write to File to create a new file with the new filename. Is there a way to create the file and save/latch/buffer the time in the file name so that it doesn't create a new file for every second?
    I've attached a shot of the relevant part of our VI. It's all in a big while loop. The data save is in a case/switch so that when it is triggered it starts saving. (The for loop is to split the data up
    into 4 different files). Like I said, it all works except new files are created every second as the time changes instead of just putting it all in one file with the initial time in the file name.
    Attachments:
    TimeInFileNameQuestion.jpg ‏46 KB

    I need a loop in order to use a shift register. I cannot stop the outer while loop (because it would stop the hardware from collecting data), and I cannot add loops inside which bogs down the processor to where the app stops. I've attached a simpler version of my VI which illustrates the problem. While the button is pressed (the trigger) it should save the data (in this case just cycle numbers) into one file with the initial date/time. But, you can see that it creates 1 file/second. I tried using shift registers, but without adding extra loops I can't see how to do it. Thanks
    Attachments:
    FileNameTest.vi ‏29 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>

  • How do I get the last changed date & time of a file in app server?

    Hi Experts,
    How do I get the last changed date & time of a file in app server?
    Thanks!
    - Anthony -

    Hi,
    that's what I use...
      CALL 'C_DIR_READ_FINISH'.             " just to be sure
      CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
      IF sy-subrc <> 0.
        EXIT. "Error
      ENDIF.
      DO.
        CLEAR l_srvfil.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD l_srvfil-type
          ID 'NAME'   FIELD l_srvfil-file
          ID 'LEN'    FIELD l_srvfil-size
          ID 'OWNER'  FIELD l_srvfil-owner
          ID 'MTIME'  FIELD l_mtime
          ID 'MODE'   FIELD l_srvfil-attri.
    *    l_srvfil-dir = p_path .
        IF sy-subrc = 1.
          EXIT.
        ENDIF." sy-subrc <> 0.
        PERFORM p_to_date_time_tz
          USING    l_mtime
          CHANGING l_srvfil-mod_time
                   l_srvfil-mod_date.
        TRANSLATE l_srvfil-type TO UPPER CASE.               "#EC TRANSLANG
        PERFORM translate_attribute CHANGING l_srvfil-attri.
        CHECK:
          NOT l_srvfil-file = '.',
          l_srvfil-type = 'D' OR
          l_srvfil-type = 'F' .
        APPEND l_srvfil TO lt_srvfil.
      ENDDO.
      CHECK NOT lt_srvfil IS INITIAL.
      pt_srvfil = lt_srvfil.
    FORM p_to_date_time_tz  USING    p_ptime  TYPE p
                            CHANGING p_time   TYPE syuzeit
                                     p_date   TYPE sydatum.
      DATA:
        l_abaptstamp TYPE timestamp,
        l_time       TYPE int4,
        l_opcode     TYPE x VALUE 3,
        l_abstamp    TYPE abstamp.
      l_time = p_ptime.
      CALL 'RstrDateConv'
        ID 'OPCODE' FIELD l_opcode
        ID 'TIMESTAMP' FIELD l_time
        ID 'ABAPSTAMP' FIELD l_abstamp.
      l_abaptstamp = l_abstamp.
      CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
          TIME p_time.
    ENDFORM.                    " p_to_date_time_tz
    Regards,
    Clemens

  • Date and time of photo files in PSE 10

    I imported about 1000 photo files (JPG) into my catalogon my desktop PC from files that I had saved on my laptop PC while on vacation.  Most of the files were imported with no problems, but some of them were saved with the wrong time and date information.  My folders are named for the date the pictures were taken, e.g., 2012-03-12.  A few of the files were in a folder inside a folder for a different day, "c:\users\Don\My Pictures\2012-03-12\2012-03-08".  What causes this?  How can I get PSE10 to work porperly?
    I have Windows 7, 64-bit PSE10, and an HP-PC with 8GB RAM.

    Thanks for the reply Brett N. 
    I read some previous posts on date problems, and one answer said that if the import was done outside PSE10, all bets are off as to the correct results.  That made me remember that I copied the folders and files to my desktop PC using Windows Explorer and then PSE10 found them as new files.   I assume that my problems were because of not using PSE10 to import the files.
    I am going to mark your reply as the correct answer, and give up on this issue until the next time I import files.

  • How to determine the creation date/time for a file?

    The important operating systems maintain both a creation date/time and last modified date/time for files. But in the File class there is only a lastModified() method. How does one determine the creation date/time for a file?

    As far as i know, there is no way to know creation time, since it is a OS dependant information.

  • AVCHD [.m2ts/.mts files] - Time date stamp ??

    Yet to purchase Premiere Pro, but will if it can serve this relatively simply purpose ....
    Can this progam embed/burn-in (or otherwise) a time date stamp from metadata onto 'video fames' whilst the video remains in native format (ie NOT converting to .AVI or .WMP or any other file type)
    Can anyone provide feedabck as to whether this is possible ...... either with this or any other product??
    Many thanks
    Gavin

    whilst the video remains in native format
    If you mean that the date stamp is performed directly on the encoded/compressed frame data (i.e. without decoding), then no. Date stamping just like any other kind of effect applied to the video frames needs the encoded data to be decoded to uncompressed video frames - then the effect is added to the uncompressed frames in memory. At this point you have completely left the original encoded format behind, so the output frames could simply be left as uncompressed frames, or compressed again using pretty much any compression format you like - it doesn't have to be the same compression format as the original file.
    Is there a particular reason why you want the output to have the same compression and file format as the input file?

  • File time & Date verification

    How can I verify the time and date stamp on a file after the system clock time has been changed and the bios chip is trashed? I am trying to verify when a trashed computer was last access and other than looking at the modified dates of files within the
    system32 folder I cannot tell for certain if the modified date and time is genuine because of the change of bios settings. Is there any off the shelf software that I can use that would give me a reliable answer? Any help would be really appreciated.

    I dont feel there is such a simple way to detect that.. May be IT forensic expert may do.. 

  • Every time my Mac starts i see a Data.xml file in recycle bin

    every time my Mac starts i see a Data.xml file in recycle bin is that sort of malware ?

    Uninstall the program from the control panel or use a antimalware such as [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware].

  • Starting a file download upon command

    I'm new at this, so I'm hoping your brilliant minds can figure out the error that seems to be here.
    I'm trying to figure out why a file is not downloading upon command from a webpage. I did not write this code, and I'm thinking that it does not actually cause the file in question to start download, but trys to open it as if it is another HTML file (the "window.open" command).
    Anyone know what I can enter into the html document to correct this and start the file downloading to the user?
    Thanks!
    Mark
    <script language="JavaScript">
    function runinstaller(){
         var res
         res = confirm("Do you want to Download iNetView 2.0.5.X ?")
         if (res==true){     
         window.open("Download/iNetView2.exe","_parent")
    </script>

    While there are people here who know Javascript, you might have better luck getting your Javascript questions answered ina Javascript forum.
    This is a Java forum, and the two are not the same, or even really related.

Maybe you are looking for