Appendix A: GenICam Commands
•
77
CLHS File Transfer Protocol
If you are not using CamExpert to perform file transfers, pseudo-code for the CLHS File Transfer
Protocol is as follows.
Upload File
1.
Select the file by setting the FileSelector feature
2.
Set the FileOpenMode to Read
3.
Set the FileOperationSelector to Open
4.
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
5.
Read FileOperationStatus to confirm that the file opened correctly
A return value of 0 is success. Error codes are listed in the XML.
6.
Read FileSize to get the number of bytes in the file
7.
From FileAccessBuffer.Length you will know that maximum number of bytes that can be
read through FileAccessBuffer is 988.
8.
For Offset = 0 While ((Offset < FileSize) and (Status = 0)) Do
a.
Set FileAccessOffset to Offset
b.
Set FileAccessLength to min(FileSize - Offset, FileAccessBuffer.Length), the number
of bytes to read
c.
Set the FileOperationSelector to Read
d.
Read the file by setting FileOperationExecute to 1 and poll until 0 and complete
e.
Read FileOperationStatus to confirm the read worked
f.
Read FileOperationResult to confirm the number of bytes read
g.
Read the bytes from FileAccessBuffer
h.
Write bytes read to host file.
9.
Next Offset = number of bytes read
10.
Set the FileOperationSelector to Close
11.
Close the file by setting FileOperationExecute to 1 and poll until 0 and complete
12.
Read FileOperationStatus to confirm the close worked
Содержание ML-FM-16K07A
Страница 17: ...Linea ML Multiline Monochrome HDR CMOS Cameras 17 Figure 8 Linea ML FM 16K Camera Mechanical ...
Страница 18: ...18 Linea ML Multiline Monochrome HDR CMOS Cameras Figure 9 Linea ML HM 16K Camera Mechanical ...
Страница 19: ...Linea ML Multiline Monochrome HDR CMOS Cameras 19 Figure 10 ML HM 08K camera mechanical ...