01-13-2010 02:43 PM
Hi,
I wonder, in TestStand, is there a way I can export a custom data type to C struct type definition?
I am using TestStand 4.2
Thanks.
Peggy
Solved! Go to Solution.
01-13-2010 07:26 PM
You will have to do a series of API calls, I think.
I assume that you have a container type with C struct passing enabled, otherwise you will have no correspondence of subproperties to C data types. Then the following API functions should help you:
I think that you will have to use standard Win32 file operations to actually write the information to a header file, since the built-in WriteFile functions of TestStand afaik write TestStand file formats.
Perhaps someone knows an easier way. Hope that helps, anyway.
Regards
Peter
02-08-2010 10:54 AM
I am using LabWindows/CVI and I can't finding any resemble methods for "GetStructMemberStringBufferSize", "GetStructMemberStorage", and "GetStructMemberArrayStorage". Do you know how to implement in LabWindows/CVI?
Thanks.
Peggy
02-08-2010 02:59 PM
To reply the access to Common C Adapter class methods, I found the answer.
I am using TS_PropertyGetTypeDefinition, TS_EngineGetAdapterByKeyName, and TS_CVIAdapterAsCommonCAdapter to get the CVI Adapter interface and the variable type interface. After that, I can call the Common C Adapter functions.
Thanks.
Peggy
02-08-2010 03:00 PM
And, Thank you Peter. It works.
Peggy