LabVIEW

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

setting time stamp as current time

Hello,
 
I want to get the current time as a time stamp like the bottom components in my vi. I thought the top would work but it only counts from 0 to 1.
 
Thank you
0 Kudos
Message 1 of 8
(3,458 Views)
Get date Time in seconds should work.

It doesn't work because you change it to an I64, you should convert to DBL
But you shouldn't set the Start time every iteration, something like this should better work.


Ton


Message Edited by TonP on 02-05-2008 03:02 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 8
(3,443 Views)
Thank you, I will try this and post again if I have any more questions
0 Kudos
Message 3 of 8
(3,437 Views)

I am fairly new to Labview and am not sure what the circular component connected to the OR gate is or what the arrow on the outside of the diagram mean.

Thank you for your help

0 Kudos
Message 4 of 8
(3,427 Views)
Hi Timkd,

that's called first call?
It returns true if it is the first time a piece of code is called.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 8
(3,416 Views)
I found the components but is is not outputing the expired time did I miss something?
0 Kudos
Message 6 of 8
(3,416 Views)
The top input of the subtraction block needs to be tied to the current time, not the output of the select block.  Right now, unless you hit reset, you're subtracting a number from itself.
0 Kudos
Message 7 of 8
(3,398 Views)
It works now. Thank you TonP and JeffOvert...
 
-Timkd-
0 Kudos
Message 8 of 8
(3,392 Views)