<< 点击显示目录 >> 主页 mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 编程 > 库 > 核心库 > ViBase > 用例 > 使用案例:备份、显示或提供摄像机图像 > 用例 3:通过网络服务提供图像 |
图数据缓冲区和相关功能块
可通过功能块 httpService 在 AR 网络服务器上以 1:1 的比例提供图像数据。更多详情,请参阅示例程序LibAsHttp1_ST。
•IF ViBaseGetImage.Done, THEN
•httpService.pResponseData := ADR(BufferForBinaryImageData);
•httpService.responseDataLen := ViBaseGetImage.BufferLen;
•为了保证数据的一致性,必须使用 2 个缓冲区,或者
•IF ViBaseGetImage.Busy, THEN
•httpInstance 不应传输任何数据。
•如果 httpService 提供了响应,则
•反之,功能块 ViBaseGetImage 就不应处于活动状态。
Fig.: Data buffers and function blocks involved
The image data can be made available 1:1 on the AR web server via function block httpService. For additional details, see sample program LibAsHttp1_ST.
•IF ViBaseGetImage.Done, THEN
•httpService.pResponseData := ADR(BufferForBinaryImageData);
•httpService.responseDataLen := ViBaseGetImage.BufferLen;
•For data consistency, it is important to note that either 2 buffers are used, or
•IF ViBaseGetImage.Busy, THEN
•httpInstance should not deliver any data.
•IF httpService delivers a response, THEN
•Vice versa, function block ViBaseGetImage should not be active.