01-26-2005 02:04 PM
01-26-2005 04:39 PM
01-27-2005 11:34 AM
01-31-2005
10:32 AM
- last edited on
07-16-2025
09:27 AM
by
Content Cleaner
John -
There is a problem that has existed in TestStand 3.x that is fixed in a patch for 3.1. The problem is described as
"Fixed an issue with the C/C++ DLL and LabWindows™/CVI™ adapters when passing a custom data type within a structure which contains a 1-D array of numbers stored as an pointer to array. TestStand 3.1 incorrectly limited the array size to the number of elements specified by the custom data type instead of the number of elements in the instance of the type. TestStand 3.1f1 correctly uses the number of elements in the variable or property that the adapter passes to the code module.
Assuming that you have your C struct packing correct in the TestStand type that you are passing to the DLL, the simple fix to this problem is to make the array size in the type to be the max size that you will ever pass to the function.
The patch is available on NI website at the below link:
TestStand Version 3.1f1 for Windows 2000/NT/XP
I have attached a TestStand 3.1 sequence with the correct struct passing if needed. Sorry for any inconvience that this caused for you and your customer.
01-31-2005 10:44 AM
01-31-2005 11:06 AM
01-31-2005 11:41 AM
02-01-2005 12:05 PM