--- title: "Code sample in C++" slug: "code-sample-in-c" updated: 2026-06-02T07:44:09Z published: 2026-06-02T07:44:09Z canonical: "docs-linescan.alliedvision.com/code-sample-in-c" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs-linescan.alliedvision.com/llms.txt > Use this file to discover all available pages before exploring further. # Code sample in C++ Allied Visionprovides code samples in C++, which show how to operate the XLC4 control unit. > [!NOTE] > NOTE > > Troubleshooting is not described in the code samples. The following code samples are available: [C++ code sample RS232](https://chromasens.de/sites/default/files/download-media/XLC4-RS232-Sample.zip) [C# code sample RS232](https://chromasens.de/sites/default/files/download-media/XLC4-CSharp.zip) [C++ code sample Network/Telnet](https://chromasens.de/sites/default/files/download-media/XLC4-IP-Demo.zip)