LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

difference in time to get time period

hello,
 
how can i use Get Time/Date to get the period between two time? For example, when i run the vi and press a button, the time is (4:05s). when i press the button again, the time is (4:48s). Then i should get the period (4:48-4:05 is 43 seconds). how do i do that? im using case strucutre, an i can only get the time when i press the button bot not the difference. any help or suggestions?
 
regards. aisyah
0 Kudos
Message 1 of 3
(2,522 Views)

Hi aisyah,

can you please show us your vi, or a picture of what you have till now? Thanks

Mike



Message Edited by MikeS81 on 01-20-2008 06:08 AM
0 Kudos
Message 2 of 3
(2,516 Views)

You get the time difference with a shift register and the subtract function. You wire the current time to the shift register on the right side of your while loop and to the subtract function and wire the left side of the shift register to the other input of the subtract function.

This is pretty basic LabVIEW programming. You should look at the on-line learning resources available at http://www.ni.com/academic/lv_training/how_learn_lv.htm

0 Kudos
Message 3 of 3
(2,509 Views)