Specifications

StopTransfer
Declaration:
STATUS StopTransfer (MDR_TRANSFER_ID * TransferId = NULL);
Description: Stop a transfer.
This function requests the MDR server to stop the transfer specified by
TransferId.
Returned value:
OK or ERROR.
If
ERROR is returned then the errno variable will be set accordingly. See MdrDefs.h for
MDR
errno values.
The end of the recording data may contain garbage data. The user has the
responsibility to determine which part of the recording data is valid or not.
WaitTransfer
Declaration:
STATUS WaitTransfer (MDR_TRANSFER_ID * TransferId = NULL);
Description: Wait for a transfer to finish.
This function waits for the transfer specified by
TransferId to finish. This function
should be called after
StartTransfer if the program needs to wait for the end of the
transfer.
Returned value:
OK or ERROR.
If
ERROR is returned then the errno variable will be set accordingly. See MdrDefs.h for
MDR
errno values.
WriteRecorderBlock
Declaration:
STATUS WriteRecorderBlock (UINT FirstRecorderBlockToWrite,
void * DataBuffer,
UINT DataBufferSize);
Description: Write recorder block(s) to the storage device.
This function writes one or more recorder blocks to the storage device. If the recording
data (located in the recorder blocks) contains tags then these tags are overwritten
according to the data contained inside the data buffer.
The
FirstRecorderBlockToWrite parameter specifies the first recorder block to be
written.
Returned value:
OK or ERROR.
If
ERROR is returned then the errno variable will be set accordingly. See MdrDefs.h for
MDR
errno values.
Using the WriteRecorderBlock
function while making a recording affects the recording
performance. The MDR Server may stop recording due to this.
60 MDR User Guide
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










