LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows DLL with GetDateTimeElements

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.

0 Kudos
Message 1 of 5
(4,627 Views)

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?

0 Kudos
Message 2 of 5
(4,599 Views)

Hello BillSimmons,

 

By "day of the year" you mean from 1-365?

 

Regards,

 

Carmen 

0 Kudos
Message 3 of 5
(4,587 Views)
Did you check inside the cvirte.dll file?
Probably it includes most of the CVI library functions, if not all...
S. Eren BALCI
IMESTEK
Message 4 of 5
(4,576 Views)

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.

0 Kudos
Message 5 of 5
(4,547 Views)