64
Appendix A: GenICam Commands
o
A return value of 0 is success. Error codes are listed in the XML.
Read FileSize to get the number of bytes in the file
From FileAccessBuffer.Length you will know that maximum number of bytes that can be read
through FileAccessBuffer is 988.
For Offset = 0 While ((Offset < FileSize) and (Status = 0)) Do
o
Set FileAccessOffset to Offset
o
Set FileAccessLength to min(FileSize - Offset, FileAccessBuffer.Length), the number of bytes
to read
o
Set the FileOperationSelector to Read
o
Read the file by setting FileOperationExecute to 1 and poll until 0 and complete
o
Read FileOperationStatus to confirm the read worked
o
Read FileOperationResult to confirm the number of bytes read
o
Read the bytes from FileAccessBuffer
o
Write bytes read to host file.
Next Offset = number of bytes read
Set the FileOperationSelector to Close
Close the file by setting FileOperationExecute to 1 and poll until 0 and complete
Read FileOperationStatus to confirm the close worked
Upload File to Camera
Select the file by setting the FileSelector feature
Set the FileOpenMode to Write
Set the FileOperationSelector to Open
Open the file by setting FileOperationExecute to 1
This is a read-write feature - poll it every 100 ms until it returns 0 to indicate it has completed
Read FileOperationStatus to confirm that the file opened correctly
A return value of 0 is success. Error codes are listed in the XML.
Read FileSize to get the maximum number of bytes allowed in the file
o
Abort and jump to Close if this is less the file size on the host
From FileAccessBuffer.Length you will know that maximum number of bytes that can be written
through FileAccessBuffer is 988.
For Offset = 0 While ((Offset < Host File Size) and (Status = 0)) Do
o
Set FileAccessOffset to Offset
o
Set FileAccessLength to min(Host File Size - Offset, FileAccessBuffer.Length), the number of
bytes to write
o
Read next FileAccessLength bytes from host file.
o
Write the bytes to FileAccessBuffer
o
Set the FileOperationSelector to Write
o
Write to the file by setting FileOperationExecute to 1 and poll until 0 and complete
o
Read FileOperationStatus to confirm the write worked
o
Read FileOperationResult to confirm the number of bytes written
Next Offset = number of bytes written
Set the FileOperationSelector to Close
Close the file by setting FileOperationExecute to 1 and poll until 0 and complete
Содержание Linea HS Series
Страница 5: ...The Linea HS Monochrome Cameras 5 DECLARATION OF CONFORMITY 73 DOCUMENT REVISION HISTORY 74...
Страница 13: ...The Linea HS Monochrome Cameras 13 Responsivity QE Plots Note values measured using 8 bit 1x gain main array...
Страница 14: ...14 The Linea HS Monochrome Cameras Mechanical Drawings Figure 3 HL FM 08K30H 00 R Mechanical Drawing...
Страница 15: ...The Linea HS Monochrome Cameras 15 Figure 4 HL HM 16K30H 00 R Mechanical Drawing...
Страница 26: ...26 Camera Performance and Features Figure 7 Image with incorrect scan direction...
Страница 73: ...Declaration of Conformity 73 Declaration of Conformity...