Jump to content

Converting Timestamp to double data


Recommended Posts

Hi,

I'm plotting a bar graph which takes only double data input.

My X-axis should be the timestamp and my Y-axis is the double data.

Bt here I can't figure out any way to convert the timestamp to double so that I can use it as an input.

Any suggestions.

Regards,

Runjhun A.

Link to post
Share on other sites

I have used that but its not giving me the required output. If I convert it in this way then its giving me the time elapsed since 1.1.1904 till today. I dnt want this value to be seen as a plot to my graph. Without the change in the values the timestamp should be converted to double.Becoz i am feeding this input to the Excel Plot Graph function which accepts X-axis and Y-axis values in a Double 2-d array.

Link to post
Share on other sites

If you want relative time ( your first X point = 0) you will need to subtract the timestamp value of the first X data point from every successive data point's timestamp.

Subtracting one LabVIEW timestamp from another will result in a double precision value with a unit of seconds.

Edited by Phillip Brooks
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By drjdpowell
      In an attempt to standardize my handling of formatting timestamps as text, I have added functions to "JDP Science Common Utilities" (a VI support package, on the Tools Network).  This is used by SQLite Library (version just released) and JSONtext (next release), but they can also be used by themselves (LabVIEW 2013+).  Follows RFC3339, and supports local-time offsets.


    • By Bill Gilbert
      For years now in the student labs we've used firewire video cams and the IMAQ 1394 driver to create AVI files which then get read and converted to intensity arrays for motion analysis in a Labview app. The cheap cams are going extinct, and they want to use I-pads to create the videos which are MOV Quicktime format. So far it looks like the I-pad app they want to use can't be made to spit out an uncompressed AVI. So now I need to find out if I can either:
      1) automate conversion of an MOV to uncompressed AVI and continue to use our LV analysis app as-is, or
      2) find a way to parse a compressed MOV video to a frame-by-frame intensity array, and build that into our LV analysis app.
      I am starting to search, but is anybody aware of an existing library or methods so I don't reinvent the wheel?
      Thanks,
      BG
    • By awang_synovus
      Name: RCF LVS Conversion Toolkit
      Submitter: awang_synovus
      Submitted: 20 Mar 2015
      Category: *Uncertified*
      LabVIEW Version: 2009License Type: BSD (Most common)



      Hi Everyone,
       
      We have recently developed a toolkit that allows you to use Quick Drop plugins in Right Click Framework or LabVIEW Speak platforms.
       
      Named RCF LVS Conversion Toolkit, this toolkit provides an easy solution for JKI Right Click Framework (RCF) and LabVIEW Speak (LVS) lovers who want to use a quick drop plugin in RCF or LVS.  Now, you wont be disappointed when you see a useful plugin not written in your favorite platform's plugin format.
       

       
      Procedures are simple:
       Open the toolkit by going to Tools Menu >> Synovus >> RCF LVS Conversion Toolkit...  Select the target Quick Drop plugin VI  Type the command name in Right Click Framework or LabVIEW Speak  Click OK  
      Now you can use the Quick Drop plugin in Right Click Framework or LabVIEW Speak platform
       
      Features:
       Automatically converts a QD plugin to RCF or LVS plugin format  Warns the user if repetitive commands are installed.  Provides an instruction as user clicks help button.  Helps the user navigate to the plugin folders (LVS, QD and RCF)  Modifying the functionality in Quick Drop VI will automatically update the functionality in Right Click Framework or LabVIEW Speak  
      Please let me know if you have any questions. Suggestions and comments are welcome 
       
      Note: RCF and LVS only update their lists of commands at startup. If you use the RCF LVS Conversion Toolkit when RCF and LVS are open, please restart these platforms.

      Click here to download this file

    • By awang_synovus
      Hi Everyone,

       

      We have recently developed a toolkit that allows you to use Quick Drop plugins in Right Click Framework or LabVIEW Speak platforms.

       

      Named RCF LVS Conversion Toolkit, this toolkit provides an easy solution for JKI Right Click Framework (RCF) and LabVIEW Speak (LVS) lovers who want to use a quick drop plugin in RCF or LVS.  Now, you wont be disappointed when you see a useful plugin not written in your favorite platform's plugin format.

       



       

      Procedures are simple:

       Open the toolkit by going to Tools Menu >> Synovus >> RCF LVS Conversion Toolkit...
       Select the target Quick Drop plugin VI
       Type the command name in Right Click Framework or LabVIEW Speak
       Click OK
       

      Now you can use the Quick Drop plugin in Right Click Framework or LabVIEW Speak platform

       

      Features:

       Automatically converts a QD plugin to RCF or LVS plugin format
       Warns the user if repetitive commands are installed.
       Provides an instruction as user clicks help button.
       Helps the user navigate to the plugin folders (LVS, QD and RCF)
       Modifying the functionality in Quick Drop VI will automatically update the functionality in Right Click Framework or LabVIEW Speak
       

      Please let me know if you have any questions. Suggestions and comments are welcome 

       

      Note: RCF and LVS only update their lists of commands at startup. If you use the RCF LVS Conversion Toolkit when RCF and LVS are open, please restart these platforms.
    • By piZviZ
      I am able to read HEX file into Labview using read from Text file..I am getting data into labview in terms of string.
       
      Problem =>  Now i want to load this HEX file into microcontroller using VISA-rs232 .Is it require to further conversion or i can load HEX file(in form of string) directly into microcontroller ?
      rs232.vi
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.