07-15-2010 12:02 PM
I'm trying to use TestStand 4.1.1 to call functions to a DC Power Supply driver DLL which passes VISA data types. The following is a select list of the type definitions required to be passed by these DLL functions:
ViSession
ViBoolean
ViReal64
ViInt16
ViChar
ViChar_VI_FAR
When I try to call these DLL functions in the TestStand sequence, I receive a message telling me TestStand does not recognize these data types. The power supply DLL was generated using LabWindows CVI 8.1 from source, header, and function panel files provided by the power supply vendor. How do I get TestStand to recognize the data types required of the source functions so I can cal them directly from a TestStand sequence file?
07-16-2010 03:37 PM
Hi Brent4518,
This seems odd - it sounds like there's a type library associated with your DLL, but it's not properly resolving the types to their standard ANSI C counterparts. In LabWindows/CVI, there's an option to include the Type Library in the DLL when you build it. This can be found in the Target Settings dialog under the Type Library button. You might want to check to be sure it's calling the right function panel file for your project. We've built numerous DLLs that use the VISA type library, and never seen a problem like this - TestStand has always been able to map the VISA type to it's ANSI C typedef keyword type appropriately.
-Jack