13.07.2015 Views

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Interface</strong> descriptionphControl[out] Pointer to a variable of type HANDLE. If run successfully, the functionreturns the handle of the opened <strong>CAN</strong> controller in this variable. In theevent of an error, the variable is set to ZERO.Return value:If run successfully, the function returns the value <strong>VCI</strong>_OK, otherwise an errorcode not equal to <strong>VCI</strong>_OK. Further information on the error code is providedby the function vciFormatError.Comments:If the value 0xFFFFFFFF is specified in the parameter dwCanNo, the functiondisplays a dialog window to select a <strong>CAN</strong> interface board and a <strong>CAN</strong> connectionon the screen. In this case the function expects the handle of a higher orderwindow, or the value ZERO if no higher order window is available, in theparameter hDevice and not the handle of the <strong>CAN</strong> interface board.4.3.1.2 canControlCloseThe function closes an opened <strong>CAN</strong> controller. The complete syntax of the functionis:HRESULT canControlClose( HANDLE hControl )Parameter:hControl[in] Handle of the <strong>CAN</strong> controller to be closed. The handle specified heremust come from a call of the function canControlOpen.Return value:If run successfully, the function returns the value <strong>VCI</strong>_OK, otherwise an errorcode not equal to <strong>VCI</strong>_OK. Further information on the error code is providedby the function vciFormatError.Comments:After the function is called, the handle specified in hControl is no longer validand must no longer be used.50Copyright IXXAT Automation GmbH C-API Programming Manual, Version 1.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!