LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI9.0 time(NULL) returns zero

Solved!
Go to solution

I just upgraded to CVI9.0 on a project and I received a zero on this curtime=time(NULL);

time_t  starttime ,curtime;
 

curtime=time(NULL);
dif=difftime (curtime,starttime);
This caused a Fatal run time error later in my code so program halted in the debug window.

In debug the value for curtime was 0.

 

This program worked fine in CVI8.0.1 prior to the upgrade.

 

 

 

 

- Make Software User Friendly -
0 Kudos
Message 1 of 2
(3,295 Views)
Solution
Accepted by topic author rorOttawa

Sorry my mistake. Had a bug in my software. line was bypassed.

time() function is OK.

 

- Make Software User Friendly -
0 Kudos
Message 2 of 2
(3,275 Views)