X_DOT Posted December 13, 2008 Report Share Posted December 13, 2008 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 Quote Link to comment
Maca Posted December 13, 2008 Report Share Posted December 13, 2008 One possible way might be to convert the timestamp strings back into a LV timestamp then subtract them? But I am sure others will come up with better ways of doing it. On a side note; for a first project, well done. Quote Link to comment
Anke Schenk Posted December 13, 2008 Report Share Posted December 13, 2008 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 Quote Link to comment
ned Posted December 13, 2008 Report Share Posted December 13, 2008 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. Quote Link to comment
X_DOT Posted December 20, 2008 Author Report Share Posted December 20, 2008 Thank you everyone for your answers. I will try to look at them after christmas and hope to solve it with. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.