Download digivex motion

Transcript
PME Tool Kit
PxGetFirmLoadProgress
Function
Further to a request to transfer firmware to a Digivex Motion family positioner drive
(PxWriteFirmWareFile) this function implements a waiting period and displays the state of
progress of the transfer.
Synopsis
DELPHI
function PxGetFirmLoadProgress( iStream:Integer ): Integer; stdcall;
C
int _stdcall PxGetFirmLoadProgress( int iStream );
VISUAL BASIC
Private Declare Function PxGetFirmLoadProgress Lib "pxcomm.dll"
(ByVal iStream As Long) As Long
Parameters
iStream
Integer type, indicates the identifier of the stream to be used
(returned previously by the PxOpenStream function)
the stream identifier is the same as that used for starting firmware
transfer (PxWriteFirmWareFile function)
Feedback
Integer type
The value returned (integer value from 0 to 100) shows what percentage of the Firmware
transfer function underway has been completed. The default value (no loading in progress)
is 100%.
Comments
The monitoring code using the PxGetFirmLoadProgress must be implanted in a different
thread to the one that started the firmware transfer function.
19
PVD 3528 GB 11/2003