05-01-2014 09:10 PM
I am integrating TestStand, LabWindows, and LabVIEW. I need to use the LabWindows function GetDateTimeElements. I prefer to call it directly from TestStand. Is there a DLL that has this function in it? If so, can you point me to the name and location?
Thank you for your help.
05-02-2014 08:59 AM
Actually, I am trying to find a function to get the day of the year for a vendor supplied function which I call from TestStand. Looking back, GetDateTimeElements does not provide that. Any thoughts on how I can get that day?
05-02-2014 12:44 PM
Hello BillSimmons,
By "day of the year" you mean from 1-365?
Regards,
Carmen
05-02-2014 09:35 PM
05-05-2014 11:23 AM
Thank you for the pointer.
I found the time and localtime functions in there which is what I need. Although, when trying to call them from TestStand, it indicated that the DLL did not contain the parameter information needed by TestStand. No problem as I looked up the parameter information from the time.h file. The time function works fine in TestStand. I cannot seem to get the locatime function to work, in TestStand, because a structure is returned.
#ifndef _TIME_T_DEFINED
#define _TIME_T_DEFINED
#ifdef _NI_mswin64_
typedef __int64 time_t;
#else
typedef unsigned int time_t;
#endif
#endif
struct tm {
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday; <----- Day of Year
int tm_isdst;
};
struct tm * CVIANSI localtime(const time_t *);
I will ask the TestStand group if anyone has worked with this.
Thank you for your help.