LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timestamp incorrect system time

Hello, Guys,

Quick question about system time and timestamp inconsistency.

I used the following program to generate analog output (with duty cycle) but as i am outputting, it give me the time of 12/31/1903 at 16:00.

I checked and reset the system time and it made no difference.  please advise,

thank you.

ck

Message Edited by uclabme on 04-17-2006 05:18 PM

Download All
0 Kudos
Message 1 of 2
(2,101 Views)

Hello,

The square waveform generator VI that is producing the waveform doesn't use system time as its basis, and that appears to be where the issue lies.  By default, the output waveform will be aligned to a t0 (initial time) of 0, since the waveform time stamp in this case is relative to the start of the program.  To align the time with the current system time, all you need to do is use the Align Waveform Timestamps VI to shift the t0 value of the generated waveform to match the current time.  I've attached an example (aligntimes.vi)  built in LabVIEW 7.1.1 that demonstrates - you should be able to adapt it very easily to fit your needs. 

Cheers,

Matt Pollock
National Instruments
Message 2 of 2
(2,072 Views)