LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

include sys/timeb.h functionality in a LabView application

I would like to use functionality made available by the header sys/timeb.h in a test application.  Does PharLap 13.1 support such functionality?  If so, how can it be exposed to a test application (not supported by standard #include); else, does PharLap support comparable functionality elsewhere?  If so, where?

 

Thanks.

 

KnechtDDC

0 Kudos
Message 1 of 4
(3,387 Views)

Hey KnectDDC, 

 

I know of a few articles and sources that will be helpful. First PharLap 13.1 does support some DLL calls but, you need to make sure the DLL can work on a realtime system. You would need to compile the code into a DLL first. Here is an article that goes over making DLL from CVI for Real Time OSes:

 

http://www.ni.com/white-paper/4583/en#toc3

 

I would recommend section 8 because it provides an example of how to build a DLL in CVI for use in an RT system. There is a tool you can use to check to see if the DLL can run on the RT system as well:

 

 

http://digital.ni.com/public.nsf/websearch/0BF52E6FAC0BF9C286256EDB00015230?OpenDocument

 

Hopefully these documents are helpful and provide some insight into how the requirements for accessing code one real time systems. 

 

Best Regards,

 

-KP

Kurt P
Automated Test Software R&D
0 Kudos
Message 2 of 4
(3,360 Views)

Kurt is correct, you'd have to make a DLL call into a DLL that appropriately includes the necessary definitions.  The MSVC Win32 compatibility layer provided for DLLs does have support for _ftime() as defined by the following page:

 

http://msdn.microsoft.com/en-us/library/z54t9z5f(v=vs.80).aspx

 

It does not have, though, support for _ftime32() or _ftime64().  

 

-Danny

0 Kudos
Message 3 of 4
(3,343 Views)

Thanks much for all the feedback.  I currently implemented a workaround using SYSTEMTIME structure supported under Windows.h, but will keep the use of DLLs in mind.

 

Best,

 

Matt

0 Kudos
Message 4 of 4
(3,331 Views)