05-15-2013 03:34 PM
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
05-16-2013 01:54 PM
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
05-17-2013 05:16 PM
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
05-20-2013 07:45 AM
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