Specifying String Buffer Size in a Type Library
- Updated2025-07-23
- 1 minute(s) read
Complete the following steps to embed string buffer size information in a type library in LabWindows/CVI so that TestStand automatically specifies the correct string buffer size for a string parameter.
- In LabWindows/CVI, open a function panel (.fp) file.
- In the Function Tree Editor, select the function panel window that corresponds to the function you want to edit and select Edit»Edit Function Panel Window to launch the Function Panel Editor.
- Complete the following steps to create a data type for the parameter. You must complete these steps only once for each .fp file.
- Select Options»Data Types to launch the Edit Data Type List dialog box.
- Enter char [1024] in the Type control and click Add.
- Click Done to close the Edit Data Type List dialog box.
- On the function panel, select the control for the string parameter and select Edit»Edit Control to launch the Edit Input Control dialog box.
- Select char [1024] from the Data type control and click OK to close the Edit Input Control dialog box.
- Save the changes to the function panel file.
- Select Build»Create Debuggable Dynamic Link Library to rebuild the DLL. Click OK when LabWindows/CVI prompts you that the files are created.