National Instruments 320682C Musical Toy Instrument User Manual


 
X Property Library Chapter 9
LabWindows/CVI Standard Libraries 9-16 © National Instruments Corporation
Warning: The propertyName pointer points to memory allocated by CreateXProperty.
You must not attempt to free this pointer or to change its contents.
Return Values
The return value indicates the success or failure status of the function call. A negative value
indicates an error. The following table shows status values.
NoXErr
0 The function was successful.
InvalidParamXErr
-1 NULL was passed to the name parameter.
InvalidPropertyXErr
-4
The property argument is not a valid property handle. This
argument must be the value returned by
CreateXProperty.
_____________________________________________________________________________
GetXPropertyType
PropLibXErrType status = GetXPropertyType (PropertyHandleX property,
PropTypeHandleX *propertyType);
Purpose
Gets the type of a property.
This function returns a pointer to the type associated with the property handle.
Parameters
Input
property
PropertyHandleX
Property handle for which the name is to
be obtained. This value must have been
obtained from CreateXProperty.
Output
propertyType
PropTypeHandleX
(passed by reference)
The property type. Use the functions
GetXPropTypeName,
GetXPropTypeSize, and
GetXPropTypeUnit to get more
information about the property type.