Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

CVI localtime to get the Day of the Year

$
0
0

I have a vendor supplied driver that needs the day of the year (0-365), minutes, hours, seconds for their board so that it updates itself to the correct time. I am looking at the LabWindows/CVI functions time and localtime to get this information. Those calls are documented in   ...\CVI2010\include\ansi\time.h   with the code contained within  C:\windows\system32\cvirte.dll

 

when I set up the module within TestStand, I get a message that states:

 

This function either does not have parameter information in the DLL or user types not recognized by TestStand.

 

Not a problem. I used the information within time.h to setup the parameters for the function time. That function works fine. The function localtime returns a structure with the individual time elements. I created a Custom Data Type to define the structure. I cannot seem to determine how to define the module for this action so that it will work.

 

I am including the sequence file, .h file, and the dll to help you understand what I am attempting to acomplish. Perhaps I am not using the correct dll or there is a better option. Any help would be appreciated.

 

NOTE: I could not attach a DLL so I renamed the extension to LLB. You will need to rename it back to DLL.


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>