IMAQ.CameraController.Stream C# (CSharp) Method

Stream() public method

public Stream ( string cameraAttributesFilePath ) : bool
cameraAttributesFilePath string
return bool
        public bool Stream(string cameraAttributesFilePath)
        {
            SetCameraAttributes(cameraAttributesFilePath);
            imageWindow.WriteToConsole("Applied camera attributes from " + cameraAttributesFilePath);
            imageWindow.WriteToConsole("Streaming from camera");
            if (state == CameraState.FREE)
            {
                state = CameraState.STREAMING;
                Thread streamThread = new Thread(new ThreadStart(stream));
                streamThread.Start();
                return true;
            }
            else
            {
                return false;
            }
        }

Usage Example

示例#1
0
 private void StreamButton_Click(object sender, EventArgs e)
 {
     IM.Stream((string)Environs.FileSystem.Paths["UntriggeredCameraAttributesPath"]);
 }