Timestamp when saved in text file and reloaded does not give correct dates

Hello
I am struggling with time stamp. I have almost corrected the problem but it is not as good as I expect it to be.
I have data in the main vi which logs into text file with time stamp for everyday results logs.
I then pull all this data to display on waveform graph with the performance data on y axis and time stamp on x axis.
I convert the time stamp data from string back to time stamp using scan from function in string pallette. When I run the waveform graph vi. The time stamp data is not correct one. I see year values beginning 1974 etc. I change these values to 2011 and the correct dates and then could see the accurate logged data from data logger but I would like to have the starting date in my logged file the left most date on x-axis. I try modify dates in display format section of waveform graph but I think it gives the values in seconds which doesn't make much sense to me. Is it possible to automatically set the starting value of the graph as the first date in the logged file? I am new with using time stamps. Any feedback will be appreciated.
Kind Regards
Austin

Hi Austin,
"Is it possible to automatically set the starting value of the graph as the first date in the logged file?"
Sure: Use autoscaling, format x-axis as time and use waveforms with correct t0 value...
For all other questions you should attach a VI to show your current state of programming!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • Unable to update, when executed table gets lock and Execution does not stop even for an hour.

    Following is my Query, which unables to update. When Executed, table gets lock and Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, Its very Important to get solve as all my further work depends on Updation
    , THANKS IN ADVANCE.

    See also your other thread with the same question:
    http://social.msdn.microsoft.com/Forums/en-US/80243625-fc3b-4ee1-bce1-4adcdbc16c14/unable-to-update-when-executed-table-gets-lock-execution-does-not-stop-execution-even-for-an-hour?forum=sqlserversamples
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Hey, I need to download the OS onto my iPhone 3GS, however, when I plug my phoneinto itunes it does not give me the option to do so, I am currently running 4.2.1. Can anyone help me?

    Hey, I need to download the OS onto my iPhone 3GS, however, when I plug my phoneinto itunes it does not give me the option to do so, I am currently running 4.2.1. Can anyone help me?

    irapidslammz wrote:
    I can not sync it because when I plug it in it says that the apple mobile service has not been started.
    Type " apple mobile device service" into the search bar at the top of this page by Support and read the resulting help article.

  • How can I export to a .sfw file? it does not give me the option in FILE EXPORT.

    how can I export to a .sfw file? it does not give me the option in FILE > EXPORT. I have Flash installed and everthing.

    The feature to export SWF files directly from After Effects has been removed. It never worked at all well.
    To create SWF files, use Flash Professional.
    If you want to play a movie that you've created in After Effects in a SWF container, then export your composition using Adobe Media Encoder in H.264 format and then link or embed that movie into a SWF file in Flash Professional.

  • HT5312 i can not remember the answer to my security questions and it does not give me an option to have my answers sent to me. can someone help me with this?

    I am trying to log into my itunes and I put my apple id and password in and it wants me to answer the security questions and I know one of the answers but not the other.  and it does not give me an option to reset the questions or have them emailed to me.  Any suggestions?

    Didn't the link to contact the iTunes Store staff in the 'Additional Information' section of that article work for you? If you don't already have a valid rescue email address, only Apple itself can reset the questions; nobody on these boards can.
    (90863)

  • Where does this java program read a text file and how does it output the re

    someone sent this to me. its a generic translator where it reads a hashmap text file which has the replacement vocabulary etc... and then reads another text file that has what you want translated and then outputs translation. what i don't understand is where i need to plugin the name of the text files and what is the very first line of code?
    [code
    package forums;
    //references:
    //http://forums.techguy.org/development/570048-need-write-java-program-convert.html
    //http://www.wellho.net/resources/ex.php4?item=j714/Hmap.java
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class Translate {
    public static void main(String [] args) throws IOException {
    if (args.length != 2) {
    System.err.println("usage: Translate wordmapfile textfile");
    System.exit(1);
    try {
    HashMap words = ReadHashMapFromFile(args[0]);
    System.out.println(ProcessFile(words, args[1]));
    } catch (Exception e) {
    e.printStackTrace();
    // static helper methods
    * Reads a file into a HashMap. The file should contain lines of the format
    * "key\tvalue\n"
    * @returns a hashmap of the given file
    @SuppressWarnings("unchecked")
    private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException {
    BufferedReader in = null;
    HashMap map = null;
    try {
    in = new BufferedReader(new FileReader(filename));
    String line;
    map = new HashMap();
    while ((line = in.readLine()) != null) {
    String[] fields = line.split("\\t", 2);
    if (fields.length != 2) continue; //just ignore "invalid" lines
    map.put(fields[0], fields[1]);
    } finally {
    if(in!=null) in.close(); //may throw IOException
    return(map); //returning a reference to local variable is safe in java (unlike C/C++)
    * Process the given file
    * @returns String contains the whole file.
    private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException {
    BufferedReader in = null;
    StringBuffer out = null;
    try {
    in = new BufferedReader(new FileReader(filename));
    out = new StringBuffer();
    String line = null;
    while( (line=in.readLine()) != null ) {
    out.append(SearchAndReplaceWordsInText(words, line)+"\n");
    } finally {
    if(in!=null) in.close(); //may throw IOException
    return out.toString();
    * Replaces all occurrences in text of each key in words with it's value.
    * @returns String
    private static String SearchAndReplaceWordsInText(Map words, String text) {
    Iterator it = words.keySet().iterator();
    while( it.hasNext() ) {
    String key = (String)it.next();
    text = text.replaceAll("\\b"+key+"\\b", (String)words.get(key));
    return text;
    * @returns: s with the first letter capitalized
    String capitalize(String s)
    return s.substring(0,0).toUpperCase() + s.substring(1);
    }

    without what arguments?Without any arguments. If there are no arguments, there are no arguments of any kind. If you have a zoo with no animals in it, it's not meaningful to ask whether the animals which are not there are zebras or elephants.
    does it prompt me to give it a text file name?Apparently.
    when i run it this is all i get:
    usage: Translate wordmapfile textfile
    Press any key to continue...Right. And "wordmapfile" is almost certainly supposed to be a file that holds the word map, and "textfile" is almost certainly the file of text that it's going to translate.

  • TS1425 itunes software locks up when I plug in ipod and it does not sync or appear in software?

    iTune Software locks up when I connect my iPod Classic and it does not recognize iPod is connected and does not sync musice as it use to.  Looking for ideas to try.  Running updated iTune software and have reset iPod?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    -  Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar
    It also could be due to a defective Lightning cable. Other uses have had problems with the cable.

  • Create a Blank Text file if it does not exist in a Given Directory

    Hi,
    I would like to check if text file in a given folder exists or not if not then create a blank text file in a given directory. I was checking File system task, it has options to create directory and move files, copy files but not creating files.
    How can I create a blank text file in a given directory in SSIS using script task or any other way.
    Many thanks.
    Mustafa
    MH

    Thanks Saravana for your help. I am using the following code in the script Task two
    Imports System
    Imports System.Data
    Imports System.Math
    Imports Microsoft.SqlServer.Dts.Runtime
    Imports System.IO
    Imports System.Object
    Imports System.Security.Cryptography
    Imports System.IO.Compression
    <System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="", Description:="")> _
    <System.CLSCompliantAttribute(False)> _
    Partial Public Class ScriptMain
    Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    Enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    End Enum
    ' The execution engine calls this method when the task executes.
    ' To access the object model, use the Dts property. Connections, variables, events,
    ' and logging features are available as members of the Dts property as shown in the following examples.
    ' To reference a variable, call Dts.Variables("MyCaseSensitiveVariableName").Value
    ' To post a log entry, call Dts.Log("This is my log text", 999, Nothing)
    ' To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, True)
    ' To use the connections collection use something like the following:
    ' ConnectionManager cm = Dts.Connections.Add("OLEDB")
    ' cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;"
    ' Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
    ' To open Help, press F1.
    Public Sub Main()
    ' Add your code here
    Dim inputFile As String
    Dim outputFile As String
    Dim encoding As String
    Dim PrivateKeyInXML As String
    inputFile = Dts.Variables("Item1Path").Value.ToString()
    outputFile = Dts.Variables("OutputFile1").Value.ToString()
    encoding = Dts.Variables("Encoding").Value.ToString()
    PrivateKeyInXML = Dts.Variables("PrivateKey").Value.ToString()
    Dim CallCryptoReader As CryptoReader = New CryptoReader(inputFile, outputFile, encoding, PrivateKeyInXML)
    Dts.TaskResult = ScriptResults.Success
    End Sub
    Public Class CryptoReader
    Private _FileStream As FileStream
    Private _CryptoStream As CryptoStream
    Private _ZipStream As GZipStream
    Private _RSAPrivateKeyinXML As String
    Dim _CryptoAgent As New System.Security.Cryptography.AesCryptoServiceProvider
    'System.Text.Encoding
    Sub New(ByVal inputFile As String, ByVal outputFile As String, ByVal encoding As String, ByVal PrivateKeyInXML As String)
    _RSAPrivateKeyinXML = PrivateKeyInXML
    'Create the crypto agent
    _CryptoAgent = AesCryptoServiceProvider.Create
    '''''''_CryptoAgent.GenerateIV()
    '''''''_CryptoAgent.GenerateKey()
    'Open cypher text for reading in
    _FileStream = New FileStream(inputFile, FileMode.Open)
    ReadHeaderFromFile() 'write out aes key to header
    'Create the stream to decrypt the AES part of the file
    _CryptoStream = New CryptoStream(_FileStream, _CryptoAgent.CreateDecryptor, CryptoStreamMode.Read)
    _ZipStream = New GZipStream(_CryptoStream, CompressionMode.Decompress)
    'setup complete - run decrypt to unprotect the rest of the file
    DecryptFile(outputFile)
    Flush()
    Close()
    Dispose()
    End Sub
    Public Sub Close()
    _CryptoStream.Close()
    _ZipStream.Close()
    _FileStream.Close()
    End Sub
    Public Sub Dispose()
    _CryptoStream.Dispose()
    _ZipStream.Dispose()
    _FileStream.Dispose()
    End Sub
    Public Sub Flush()
    _CryptoStream.Flush()
    _ZipStream.Flush()
    _FileStream.Flush()
    End Sub
    Private Sub ReadHeaderFromFile()
    'Read the AES Key (Protected by RSA Key) and then the IV
    Dim UnProtectedAESKey() As Byte
    Dim buffer(_CryptoAgent.BlockSize - 1) As Byte
    'Read in protected AES Key
    _FileStream.Read(buffer, 0, _CryptoAgent.BlockSize)
    'Decrypt AES Key
    UnProtectedAESKey = releaseKeyFromRSA(buffer)
    _CryptoAgent.Key = UnProtectedAESKey
    ReDim buffer(_CryptoAgent.IV.Length - 1)
    'get IV
    _FileStream.Read(buffer, 0, _CryptoAgent.IV.Length)
    _CryptoAgent.IV = buffer
    End Sub
    Public Sub DecryptFile(ByVal outFilePath As String)
    Dim outFile As New FileStream(outFilePath, FileMode.Create)
    Dim count As Integer = 1024
    Dim buffer(count - 1) As Byte
    Do Until count = 0
    count = _ZipStream.Read(buffer, 0, count)
    outFile.Write(buffer, 0, count)
    Loop
    outFile.Flush()
    outFile.Close()
    outFile.Dispose()
    End Sub
    Private Function releaseKeyFromRSA(ByVal key() As Byte) As Byte()
    Debug.Print("Protected AES Key - " & key.ToString)
    Dim cspParam As New CspParameters()
    Dim RSA As New RSACryptoServiceProvider(1024, cspParam)
    'private
    RSA.FromXmlString(_RSAPrivateKeyinXML)
    Dim decryptedAsByte() As Byte = RSA.Decrypt(key, True)
    Debug.Print("Release RSA - " & System.Text.Encoding.ASCII.GetString(decryptedAsByte))
    Return decryptedAsByte
    End Function
    End Class
    End Class
    I am using the Outputfile1 variable. this is the variable where the path of the file will come which was created in the previous script task. In this task i got the exception that it is alread in use.
    MH

  • Upload WMA files and project does not playback

    I am using WMA files to create my project in Soundtrack Pro. Everything is fine when I create the project and it plays just fine but after it is saved, the media is collected and I close out then reopen the project I don't get any sound. In looking at the project the tracks are there but nothing shows up in the meters.
    Has anyone else had this problem? Is there a way around it? Do I need to save the WMA's as something else before adding them as tracks in the project?
    Please help, thanks.

    I'm surprised that WMA seems to work at all. It is a compressed fileformat (like mp3) invented by Microsoft, that's two reasons not to use 'em in STP.. Your suggestion to convert them up front seems ok, best to the .aiff format. But if you can, try to avoid compressed audio at all.
    To convert the WMA you can use MPEG Streamclip (free). Open a .wma, choose "export Audio", filetype .aiff.
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html

  • SQL 2012 sp1 EE setup disappears when installing Setup Support files ( Error: sqm does not have active session)

    HI Folks,
    WIndows : 2008 R2
    SQL : 2012 sp1 EE
    Setup disappears when installing setup support files On passiive node ( 2  node cluster),  sql is runing on active node without any issue
    Error : SQM does not active session ( In summary detail txt file)
    blog is suggesting . Save the following in a .reg file and merge to populate the registry:  (
    here i am confusing how to save and where to save , how to merge and how to populate) 
    http://blogs.msdn.com/b/sqljourney/archive/2012/05/07/sql-2008-2008-r2-setup-disappears-fails-when-installing-setup-support-files.aspx
    Can you share  your views, if you need any information for clarification. pls let us know for resolution.
    Thanks in Advance.

    Sorry but there is already released  SP2 for SQL Server 2012. Start installation on the passive node first
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • When saving to bookmark folders, dropdown menu does not display all of them, just a few.

    When attempting to save a bookmark, using "Bookmark this page" and then selecting Bookmark Menu to display a list of saved folders, the list of saved folders that appears is a short partial list. This list does not permit scrolling to view the remaining unlisted folders. All these folders are viewable/accessable when "Show all bookmarks".

    Hello,
    Firefox automatically creates backups of your bookmarks, which can be helpful if your bookmarks are lost or missing. To recover them, follow the instructions below.
    #Use <u>one</u> of these methods to open the Bookmarks Library window:
    #*Click the ''[[Display the Firefox button menu instead of the menu toolbar|Firefox button]]'' to open the menu and click on ''Bookmarks''.
    #*Click the ''Bookmarks'' menu and click on ''Show All Bookmarks''.
    # At the top of the Library window, click the "Import and Backup" menu and select Restore.
    # Click the date of the bookmark backup you want to recover.
    # In the new window that appears, click OK.
    # Your bookmarks from the selected date should now be restored.
    For more information, see the [[Restore bookmarks from backup or move them to another computer]] article. For other solutions, see the [[Recover lost or missing Bookmarks]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • HT4993 When attempting to connect to my home internet (wifi) I put in the wrong passcode and now it will not allow me to connect. It says that i can not connect and it does not give me the chance to put in the correct passcode now. How do I connect ?

    I can not connect to my home Wi-fi. I put the wrong passcode in severall times and now it says that I am not able to use my home internet. How do I get back to the place where I can put in the correct passcode and connect. Not sure what to do and really don't want to take my phone back to sprint.

    Click the blue button next to the wifi name, then hit Forget Network.
    Then try to connect again and use correct password.

  • How to get Revel on other devices with app to update when I have auto update and it does not work

    How do I get Revel with auto update to update on my other devices with the Revel app when the update does not work?

    In elements organizer, are you adding the photos to the mobile album?
    Could you try the troubleshooting steps shared at: http://helpx.adobe.com/elements-organizer/kb/troubleshoot-revel-relate d-issues.html

  • HT1414 My ipod touch shows white screen when i turn on. And, it does not register in my computer.

    My Ipod touch don't start up as usual. It doesn't register to my PC. It shows white screen and some time other colors like green and blue. I trying restarting, but that did not work. I cannot restore the IOS because my Ipod touch doesn't even shows up in my Computer.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar

Maybe you are looking for

  • How to configure evtouch without xorg.conf

    So Im using evtouch for my egalax touchsreen, almost working Axes are screwed up. I cant figure out what file and how Im supposed to edit to get axes right. Heres my Xorg.0.log X.Org X Server 1.6.3 Release Date: 2009-7-31 X Protocol Version 11, Revis

  • Project Settlement for Post Capitalisation Assets (CJ88) or CJ8G

    Hi All, I would like to settle projects to an asset that should have been capitalised in a previous fiscal year. i.e. post capitalisation.  When I post to an asset created with "post capitalisation" indicator, the FI journal does not show the correct

  • Have old G4 Running OS 10.4.10 but want OS 9.1 back!!!!

    I have an old G4 450Mhz PowerPC which used to run 9.1 and I have the disc. When I purchased a new system, I installed OS 10.4.10 on the old G4 as well. Now I have some programs that I need 9.1 in order to run. When I go to install 9.1 from the disc,

  • What happened to the video filter in Photoshop Elements 13?

    So disappointed in Photoshop Elements 13. Just upgraded from Elements 8 with great expectations that 13 would be better and more powerful. All they did was dumb it down. Wish I could get my money back.

  • InDesign Licensing has stopped working.

    I just got CS4. I tried to open InDesign and a window pops up saying that the licensing for this program has quit working. I need to get this fixed ASAP!