FP_Write
IAStatus FP_Write | (IAHandle serverHandle, IAHandle IOPointHandle, IAByte buffer[], unsigned long bufferSize); |
Purpose
This function writes data from the buffer you specify to an I/O point. The operation is synchronous and therefore blocks client execution until the write operation completes.
Parameter List
Name | Type | Description |
---|---|---|
serverHandle | IAHandle | Handle to a specific server session. Create the handle with FP_Open. |
IOPointHandle | IAHandle | Used to reference an I/O point. You can create the handle with FP_CreateTagIOPoint. |
buffer | IAByte[ ] | Buffer containing data you want to write to the server. |
bufferSize | unsigned long | Size of the buffer that you created for the write operation. The buffer size should indicate the length (in bytes) of allocated memory pointed to by the buffer pointer. |
Return Value
The LabWindows/CVI manager or the server can return the following status codes. FP_ErrorMsg converts the status codes into descriptive strings.
LabWindows/CVI Manager-Level Error Codes | 0x8480 IA_MGR_ERROR 0x8484 IA_MGR_SERVER_NOT_LOADED 0x8487 IA_MGR_INVALID_SERVER_HND |
FieldPoint Server-Level Standard Error Codes | 0x8000 to 0x83FF |
Refer to the error section in your server help file for more information.