Jump to content

Subtracting to timestamps


X_DOT

Recommended Posts

Hi.

Iam pretty new to labview, and this is my first real project using labview.

I need to subtract 2 timestamp strings and get the difference between them. how do I do this?

I have attach'd af screenshot of my block diagram and hope you can help me.

(btw the project is to be handed in thuesday 16. dec -2008)

Sow Iam hoping to get a quick answer.

//Jens Poulsen

Link to comment

QUOTE (X_DOT @ Dec 12 2008, 01:11 PM)

I need to subtract 2 timestamp strings and get the difference between them. how do I do this?

//Jens Poulsen

Jens,

Why do you store the timestamps as strings?

If you keep the original timestamps in your array, you can use the "subtract" function and get the time difference in seconds.

In this case you will only have to convert the timestamps into strings just before displaying them.

hope this helps

Anke

Link to comment

QUOTE (X_DOT @ Dec 12 2008, 07:11 AM)

I need to subtract 2 timestamp strings and get the difference between them. how do I do this?

I have attach'd af screenshot of my block diagram and hope you can help me.

You can also use "Scan from String" with the appropriate format specifier to convert a string to a timestamp.

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.