Jump to content
Sign in to follow this  
Runjhun

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.

Share this post


Link to post
Share on other sites

I had thought that timestamps readily coerce to doubles, but it seems that using the To Double Precision Float primitive is necessary.

Share this post


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.

Share this post


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

Share this post


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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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