ScanDeviceManager SendStreamData
Sends streaming data to a marking controller. Job execution by the controller starts as soon as the job data is received and continues for as long as job data is available. Large marking jobs often take more time to process and may introduce pauses in between marking. In such situations, very large jobs can be partitioned into logical chunks, such as at marking object boundaries, and streamed out to the device. Since the smaller partitions get processed quickly, and the execution of the job and the process of streaming the data of the job are asynchronous and overlapped, it is possible to maintain continuous job execution with no pauses.
public void SendStreamData(string deviceName, string strData, uint uiTimeout) |
Return value
void |
Parameters
string | deviceName | The unique name of the device. |
string | strData | |
uint | uiTimeout |
Exceptions
DeviceNotFoundException | Throws when the device with the given name is not found |
SendStreamDataFailedException |
Example
Copy
List<float> commandList = new List<float>();
//polyline
commandList.Add(0); //polyline
commandList.Add(4); //vertex count
commandList.Add(1); //closed flag
commandList.Add(-10);
commandList.Add(-10);
commandList.Add(10);
commandList.Add(-10);
commandList.Add(10);
commandList.Add(10);
commandList.Add(-10);
commandList.Add(10);
commandList.Add(1); //line
commandList.Add(-15);
commandList.Add(0);
commandList.Add(15);
commandList.Add(0);
commandList.Add(1); //line
commandList.Add(0);
commandList.Add(-15);
commandList.Add(0);
commandList.Add(15);
commandList.Add(-1);//end of buffer
float[] floatBuffer;
floatBuffer = commandList.ToArray();
scanDocument.SendStreamData(floatBuffer);