/// <summary> /// Writes a serial command to the camera and returns the number of characters written /// </summary> /// <param name="command">The serial command to write including the appropriate termination char</param> /// <returns>The number of characters written to the interface</returns> public uint SerialWrite(string command) { uint written = (uint)command.Length; NIImaq.CheckError(NIImaq.imgSessionSerialWrite(_sid, command, ref written, 1000)); return(written); }