How to Use Hook Pointers in LabWindows/CVI Test Executive FunctionsPrimary Software: LabWindows/CVI Add-ons>>Test ExecutivePrimary Software Version: 1.1 Primary Software Fixed Version: N/A Secondary Software:
Problem: How do I use the hook pointer in LabWindows/CVI Test Executive functions? Solution: All of the test functions in CVI use two common structures: tTestData and tTestError. Within the TestData structure is a member called hook. You can use hook as a pointer to user-defined data. This can be used to pass data from one test function to another without making the data global. From within the function which has the data to pass, you can type: You access this value in the target function through: You can print it: ***This cannot be used in pre-sequence tests as these have some clean-up which will lose the data contained in hook.**** Related Links: Attachments:
Report Date: 01/09/1997 Last Updated: 08/30/2001 Document ID: 0T8BS252 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
