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 comment

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 comment

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 comment

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.

×
×
  • Create New...

Important Information

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