<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.advacam.cz/index.php?action=history&amp;feed=atom&amp;title=C-sharp_windows_example</id>
	<title>C-sharp windows example - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.advacam.cz/index.php?action=history&amp;feed=atom&amp;title=C-sharp_windows_example"/>
	<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;action=history"/>
	<updated>2026-05-09T12:13:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=657&amp;oldid=prev</id>
		<title>HudecekP: /* Related */</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=657&amp;oldid=prev"/>
		<updated>2023-10-31T16:31:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Related&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:31, 31 October 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l296&quot;&gt;Line 296:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 296:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Binary core API]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Binary core API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Pixet SDK]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Pixet SDK]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[Binary_core_API#Simple_C#_commandline_example|Simple C# commandline example]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HudecekP</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=270&amp;oldid=prev</id>
		<title>HudecekP: /* Overview &amp; notes */</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=270&amp;oldid=prev"/>
		<updated>2023-06-23T14:40:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Overview &amp;amp; notes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:40, 23 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Notes:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Notes:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Use the release/64 bit configuration&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Use the release/64 bit configuration&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The working directory is directory with the exe file. Typically project\bin\Release. Copy pixet.ini and other auxilliary files here.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The working directory is directory with the exe file. Typically &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;project\bin\Release&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;. Copy pixet.ini and other auxilliary files here.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* In the MS Visual studio 2019, project first not working. You must click Properties, change .NET version to old, save it, change .NET version back to actual and save. Now project can work.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* In the MS Visual studio 2019, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;project first not working&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;. You must click Properties, change .NET version to old, save it, change .NET version back to actual and save. Now project can work.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Window =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Window =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HudecekP</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=269&amp;oldid=prev</id>
		<title>HudecekP at 14:40, 23 June 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=269&amp;oldid=prev"/>
		<updated>2023-06-23T14:40:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:40, 23 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Overview &amp;amp; notes =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Overview &amp;amp; notes =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is C# example of the Windows program with list devices, simple measurement and view of the output data. &amp;#039;&amp;#039;&amp;#039;Timepix3 only.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is C# example of the Windows program with list devices, simple measurement and view of the output data. &amp;#039;&amp;#039;&amp;#039;Timepix3 only.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Notes:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Notes:&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Use the release/64 bit configuration&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Use the release/64 bit configuration&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HudecekP</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=268&amp;oldid=prev</id>
		<title>HudecekP: /* C-sharp windows example */</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=268&amp;oldid=prev"/>
		<updated>2023-06-23T14:37:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;C-sharp windows example&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:37, 23 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C-sharp windows example &lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Overview &amp;amp; notes &lt;/ins&gt;=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is C# example of the Windows program with list devices, simple measurement and view of the output data. &amp;#039;&amp;#039;&amp;#039;Timepix3 only.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is C# example of the Windows program with list devices, simple measurement and view of the output data. &amp;#039;&amp;#039;&amp;#039;Timepix3 only.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notes:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;Notes:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#039;&amp;#039;&amp;#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Use the release/64 bit configuration&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Use the release/64 bit configuration&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The working directory is directory with the exe file. Typically project\bin\Release. Copy pixet.ini and other auxilliary files here.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The working directory is directory with the exe file. Typically project\bin\Release. Copy pixet.ini and other auxilliary files here.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* In the MS Visual studio 2019, project first not working. You must click Properties, change .NET version to old, save it, change .NET version back to actual and save. Now project can work.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* In the MS Visual studio 2019, project first not working. You must click Properties, change .NET version to old, save it, change .NET version back to actual and save. Now project can work.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;= Window &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Window =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Create window with components:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Create window with components:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# lstMsg - Listbox for messages&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# lstMsg - Listbox for messages&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:C-sharp windows example - window edit screenshot.png|frame|none|alt=C-sharp windows example - window edit screenshot|C-sharp windows example - window edit screenshot]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:C-sharp windows example - window edit screenshot.png|frame|none|alt=C-sharp windows example - window edit screenshot|C-sharp windows example - window edit screenshot]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;= Code &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Code =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;using System;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;using System;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l292&quot;&gt;Line 292:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 292:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;= Related &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/del&gt;=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Related =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Binary core API]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Binary core API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Pixet SDK]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[Pixet SDK]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HudecekP</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=267&amp;oldid=prev</id>
		<title>HudecekP at 14:35, 23 June 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=267&amp;oldid=prev"/>
		<updated>2023-06-23T14:35:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:35, 23 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l293&quot;&gt;Line 293:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 293:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Related ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Related ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Binary core API]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;[[Binary core API]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Pixet SDK]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;[[Pixet SDK]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HudecekP</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=266&amp;oldid=prev</id>
		<title>HudecekP at 14:32, 23 June 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=266&amp;oldid=prev"/>
		<updated>2023-06-23T14:32:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:32, 23 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l291&quot;&gt;Line 291:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 291:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Related ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Binary core API]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Pixet SDK]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>HudecekP</name></author>
	</entry>
	<entry>
		<id>https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=265&amp;oldid=prev</id>
		<title>HudecekP: Created page with &quot;= C-sharp windows example = This is C# example of the Windows program with list devices, simple measurement and view of the output data. &#039;&#039;&#039;Timepix3 only.&#039;&#039;&#039;&lt;br&gt; Notes: * Use the release/64 bit configuration * The working directory is directory with the exe file. Typically project\bin\Release. Copy pixet.ini and other auxilliary files here. * In the MS Visual studio 2019, project first not working. You must click Properties, change .NET version to old, save it, change .N...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.advacam.cz/index.php?title=C-sharp_windows_example&amp;diff=265&amp;oldid=prev"/>
		<updated>2023-06-23T14:29:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= C-sharp windows example = This is C# example of the Windows program with list devices, simple measurement and view of the output data. &amp;#039;&amp;#039;&amp;#039;Timepix3 only.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt; Notes: * Use the release/64 bit configuration * The working directory is directory with the exe file. Typically project\bin\Release. Copy pixet.ini and other auxilliary files here. * In the MS Visual studio 2019, project first not working. You must click Properties, change .NET version to old, save it, change .N...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= C-sharp windows example =&lt;br /&gt;
This is C# example of the Windows program with list devices, simple measurement and view of the output data. &amp;#039;&amp;#039;&amp;#039;Timepix3 only.&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
Notes:&lt;br /&gt;
* Use the release/64 bit configuration&lt;br /&gt;
* The working directory is directory with the exe file. Typically project\bin\Release. Copy pixet.ini and other auxilliary files here.&lt;br /&gt;
* In the MS Visual studio 2019, project first not working. You must click Properties, change .NET version to old, save it, change .NET version back to actual and save. Now project can work.&lt;br /&gt;
&lt;br /&gt;
== Window ==&lt;br /&gt;
Create window with components:&lt;br /&gt;
# lstMsg - Listbox for messages&lt;br /&gt;
# lstDevs - Listbox for devices list&lt;br /&gt;
# btnInit - Button for init the Pixet core&lt;br /&gt;
# btnClearMsg - Button for clear lstMsg&lt;br /&gt;
# btnExit - Button for exit the Pixet Core&lt;br /&gt;
# pbFrame1 - Picturebox for first output subframe, sixe equal 256x256 inside, Border Fixed3D&lt;br /&gt;
# pbFrame2 - Picturebox for second output subframe, sixe equal 256x256 inside, Border Fixed3D&lt;br /&gt;
# txtMeasTime - Textbox for measure time input, default text &amp;quot;1&amp;quot;&lt;br /&gt;
# rbOPM0 - Radiobutton for operation mode 0&lt;br /&gt;
# rbOPM2 - Radiobutton for operation mode 2&lt;br /&gt;
# checkLogView - Checkbox to enable logaritmized view&lt;br /&gt;
# checkColView - Checkbox to enable colorized view&lt;br /&gt;
# btnMeasSinTpx3 - Button to run the pxcMeasureSingleFrameTpx3 example measuring&lt;br /&gt;
# labImgInfo - Label for informations about measured images&lt;br /&gt;
&lt;br /&gt;
[[File:C-sharp windows example - window edit screenshot.png|frame|none|alt=C-sharp windows example - window edit screenshot|C-sharp windows example - window edit screenshot]]&lt;br /&gt;
&lt;br /&gt;
== Code ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Runtime.InteropServices;&lt;br /&gt;
&lt;br /&gt;
namespace WindowsFormsApp1 {&lt;br /&gt;
    public partial class Form1 : Form {&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcInitialize(Int32 a, UInt64 b);&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcExit();&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcGetDevicesCount();&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcGetDeviceChipID(UInt32 deviceIndex, UInt32 chipIndex, StringBuilder chipIDBuffer, UInt32 size);&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcGetDeviceName(UInt32 deviceIndex, StringBuilder nameBuffer, UInt32 size);&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcGetDeviceChipCount(UInt32 deviceIndex);&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcGetDeviceInfo(UInt32 deviceIndex, UInt64 devInfo); // devInfo is struct, but not used here&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcMeasureSingleFrameTpx3(UInt32 deviceIndex, double frameTime, [Out] double[] frameToaITot, [Out] UInt16[] frameTotEvent, ref UInt32 size, UInt32 trgStg = 0);&lt;br /&gt;
        &lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcGetDeviceDimensions(UInt32 deviceIndex, ref UInt32 width, ref UInt32 height);&lt;br /&gt;
&lt;br /&gt;
        [DllImport(&amp;quot;pxcore.dll&amp;quot;, CallingConvention = CallingConvention.Cdecl)]&lt;br /&gt;
        public static extern int pxcSetTimepix3Mode(UInt32 deviceIndex, int mode);&lt;br /&gt;
&lt;br /&gt;
        int devicesCout = 0;&lt;br /&gt;
        int[] devTypesN = Enumerable.Repeat(-1, 1000).ToArray();&lt;br /&gt;
        UInt32 deviceIdx = uint.MaxValue;&lt;br /&gt;
        UInt32 devXsize = 256, devYsize =256;&lt;br /&gt;
        UInt32 devPixels = 65536;&lt;br /&gt;
&lt;br /&gt;
        public Form1() {&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        void msgToList(String msg) { // ===========================================================&lt;br /&gt;
            lstMsg.Items.Add(msg);&lt;br /&gt;
        }&lt;br /&gt;
        void msgToList(String msg, int rc) {&lt;br /&gt;
            lstMsg.Items.Add($&amp;quot;{msg:S} rc={rc:D} (0 is OK)&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        void msgToList(String msg1, int n, String msg2) {&lt;br /&gt;
            lstMsg.Items.Add($&amp;quot;{msg1:S} {n:D} {msg2:S}&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        void msgToList(String msg1, UInt32 n, String msg2) {&lt;br /&gt;
            lstMsg.Items.Add($&amp;quot;{msg1:S} {n:D} {msg2:S}&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        int setPixelRGB(int r, int g, int b) { // =================================================&lt;br /&gt;
            return b + (g &amp;lt;&amp;lt; 8) + (r &amp;lt;&amp;lt; 16);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        // value 0-1280 to RGB color or 0-255 to grayscale&lt;br /&gt;
        int valToRGB(double val) { // =============================================================&lt;br /&gt;
            int v = (int)val;&lt;br /&gt;
&lt;br /&gt;
            if (!checkColView.Checked) return setPixelRGB(v, v, v);&lt;br /&gt;
&lt;br /&gt;
            if (v &amp;lt; 256) return setPixelRGB(0, 0, v);     // 0   black to blue&lt;br /&gt;
            v -= 256;&lt;br /&gt;
            if (v &amp;lt; 256) return setPixelRGB(0, v, 255); // 256   blue to blue-green&lt;br /&gt;
            v -= 256;&lt;br /&gt;
            if (v &amp;lt; 256) return setPixelRGB(0, 255, 255 - v); // 512   blue-green to green&lt;br /&gt;
            v -= 256;&lt;br /&gt;
            if (v &amp;lt; 256) return setPixelRGB(v, 255, 0); // 768   green to yellow&lt;br /&gt;
            v -= 256;&lt;br /&gt;
            if (v &amp;lt; 256) return setPixelRGB(255, 255 - v, 0); // 1024   yellow to red&lt;br /&gt;
            v -= 256;&lt;br /&gt;
            if (v &amp;lt; 256) return setPixelRGB(255, 0, v); // 1280   red to violet&lt;br /&gt;
            v -= 256;&lt;br /&gt;
            if (v &amp;lt; 256) return setPixelRGB(255, v, 255);   // 1536  violet to white&lt;br /&gt;
            else return setPixelRGB(255, 255, 255);     // over 1792&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        const double cColorizeIniMin = 1e30, cColorizeIniMax = -1e30;&lt;br /&gt;
        double colorizeMin = cColorizeIniMin, colorizeMax = cColorizeIniMax;&lt;br /&gt;
        int colorizePixCount = 0;&lt;br /&gt;
        // normalize data (, logaritmize), convert to color RGB (or grayscale), count non-zero, count values&lt;br /&gt;
        // note: logaritmize not usable if data&amp;lt;=0&lt;br /&gt;
        void colorizeData(double[] dataIn, int[] dataOut) { // ====================================&lt;br /&gt;
            double colMin=0, colMax=0, pixVal, p;&lt;br /&gt;
            colorizeMin = cColorizeIniMin;&lt;br /&gt;
            colorizeMax = cColorizeIniMax;&lt;br /&gt;
            colorizePixCount = 0;&lt;br /&gt;
&lt;br /&gt;
            for (int n = 0, i = 0; n &amp;lt; devPixels; n++) { // find min, max&lt;br /&gt;
                if (dataIn[n] != 0) {&lt;br /&gt;
                    if (checkLogView.Checked) pixVal = Math.Log(dataIn[n]); else pixVal = dataIn[n];&lt;br /&gt;
                    if (dataIn[n] &amp;gt; colorizeMax) { colorizeMax = dataIn[n]; colMax = pixVal; };&lt;br /&gt;
                    if (dataIn[n] &amp;lt; colorizeMin) { colorizeMin = dataIn[n]; colMin = pixVal; };&lt;br /&gt;
                    colorizePixCount++;&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
            if (checkColView.Checked) p = 1792.0 / (colMax - colMin);&lt;br /&gt;
            else p = 255.0 / (colMax - colMin);&lt;br /&gt;
            if (p &amp;lt; 0) p = -p;&lt;br /&gt;
&lt;br /&gt;
            for (int n = 0; n &amp;lt; devPixels; n++) { // colorize data&lt;br /&gt;
                if (dataIn[n] != 0) {&lt;br /&gt;
                    if (checkLogView.Checked) pixVal = Math.Log(dataIn[n]); else pixVal = dataIn[n];&lt;br /&gt;
                    dataOut[n] = valToRGB((pixVal - colMin) * p);&lt;br /&gt;
                } else {&lt;br /&gt;
                    dataOut[n] = setPixelRGB(128, 128, 128);&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        void colorizeData(UInt16[] dataIn, int[] dataOut) { // ====================================&lt;br /&gt;
            double[] tmpColData = new double[devPixels];&lt;br /&gt;
            &lt;br /&gt;
            for (int n = 0; n &amp;lt; devPixels; n++) tmpColData[n] = (double)dataIn[n];&lt;br /&gt;
            colorizeData(tmpColData, dataOut);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void btnInit_Click(object sender, EventArgs e) { // ===============================&lt;br /&gt;
            btnInit.Enabled = false;&lt;br /&gt;
            int rc = pxcInitialize(0, 0);&lt;br /&gt;
            msgToList(&amp;quot;pxcInitialize&amp;quot;, rc);&lt;br /&gt;
            rc = pxcGetDevicesCount();&lt;br /&gt;
            msgToList(&amp;quot;pxcGetDevicesCount&amp;quot;, rc, &amp;quot;(&amp;gt;=0 devCnt, &amp;lt;0 error)&amp;quot;);&lt;br /&gt;
            lstDevs.Items.Clear();&lt;br /&gt;
            if (rc&amp;gt;0) {&lt;br /&gt;
                devicesCout = rc;&lt;br /&gt;
                for (UInt32 n=0; n&amp;lt;devicesCout; n++) {&lt;br /&gt;
                    UInt32 bufLen = 100;&lt;br /&gt;
                    StringBuilder buff = new StringBuilder((int)bufLen);&lt;br /&gt;
&lt;br /&gt;
                    rc = pxcGetDeviceName(n, buff, bufLen);&lt;br /&gt;
                    String devName;&lt;br /&gt;
                    if (rc == 0) { devName = buff.ToString(); }&lt;br /&gt;
                    else { devName = &amp;quot;(failed)&amp;quot;; }&lt;br /&gt;
&lt;br /&gt;
                    rc = pxcGetDeviceChipID(n, 0, buff, bufLen);&lt;br /&gt;
                    String chipID;&lt;br /&gt;
                    if (rc == 0) { chipID = buff.ToString(); }&lt;br /&gt;
                    else { chipID = &amp;quot;(failed)&amp;quot;; }&lt;br /&gt;
&lt;br /&gt;
                    int chipCnt = pxcGetDeviceChipCount(n);&lt;br /&gt;
&lt;br /&gt;
                    String[] devTypes = { &amp;quot;unknown&amp;quot;, &amp;quot;TPX&amp;quot;, &amp;quot;MPX3&amp;quot;, &amp;quot;TPX3&amp;quot;, &amp;quot;TPX2&amp;quot; };&lt;br /&gt;
                    rc = pxcGetDeviceInfo(n, 0);&lt;br /&gt;
                    String dt;&lt;br /&gt;
                    if (rc &amp;gt;= 0 &amp;amp;&amp;amp; rc &amp;lt; devTypes.Length) {&lt;br /&gt;
                        dt = devTypes[rc];&lt;br /&gt;
                        devTypesN[n] = rc;&lt;br /&gt;
                    } else { dt = &amp;quot;(failed)&amp;quot;; }&lt;br /&gt;
&lt;br /&gt;
                    lstDevs.Items.Add($&amp;quot;{n:D}: ID:{devName:S}, ID0:{chipID:S}, chipCnt:{chipCnt:D}, type:{dt:S}&amp;quot;);&lt;br /&gt;
                }&lt;br /&gt;
                btnExit.Enabled = true;&lt;br /&gt;
            } else {&lt;br /&gt;
                msgToList(&amp;quot;No devs found&amp;quot;);&lt;br /&gt;
                btnInit.Enabled = true;&lt;br /&gt;
                btnExit.Enabled = false;&lt;br /&gt;
                btnMeasSinTpx3.Enabled = false;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void btnClearMsg_Click(object sender, EventArgs e) { // ===========================&lt;br /&gt;
            lstMsg.Items.Clear();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void Form1_Load(object sender, EventArgs e) {&lt;br /&gt;
            lstMsg.Items.Add(&amp;quot;Messages&amp;quot;);&lt;br /&gt;
            lstDevs.Items.Add(&amp;quot;Devices list - click the &amp;#039;Init core&amp;#039; button&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void Form1_FormClosing(object sender, FormClosingEventArgs e) {&lt;br /&gt;
            pxcExit();&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void btnExit_Click(object sender, EventArgs e) { // ===============================&lt;br /&gt;
            int rc = pxcExit();&lt;br /&gt;
            msgToList(&amp;quot;pxcExit&amp;quot;, rc);&lt;br /&gt;
            lstDevs.Items.Clear();&lt;br /&gt;
            deviceIdx = uint.MaxValue;&lt;br /&gt;
            devicesCout = 0;&lt;br /&gt;
&lt;br /&gt;
            btnInit.Enabled = true;&lt;br /&gt;
            btnExit.Enabled = false;&lt;br /&gt;
            btnMeasSinTpx3.Enabled = false;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void lstDevs_SelectedIndexChanged(object sender, EventArgs e) { // ================&lt;br /&gt;
            UInt32 i = (UInt32)lstDevs.SelectedIndex;&lt;br /&gt;
            if (devTypesN[i]==3) {&lt;br /&gt;
                deviceIdx = i;&lt;br /&gt;
                msgToList(&amp;quot;Selected device:&amp;quot;, deviceIdx, &amp;quot;&amp;quot;);&lt;br /&gt;
                UInt32 width = 256, height = 256;&lt;br /&gt;
                int rc = pxcGetDeviceDimensions(deviceIdx, ref width, ref height);&lt;br /&gt;
                if (rc==0) {&lt;br /&gt;
                    devXsize = width; devYsize = height;&lt;br /&gt;
                    devPixels = devXsize * devYsize;&lt;br /&gt;
                    msgToList($&amp;quot;Dev dimm: w:{devXsize:D}, h:{devYsize:D}&amp;quot;);&lt;br /&gt;
                } else {&lt;br /&gt;
                    msgToList(&amp;quot;pxcGetDeviceDimensions&amp;quot;, rc);&lt;br /&gt;
                }&lt;br /&gt;
                btnMeasSinTpx3.Enabled = true;&lt;br /&gt;
            } else {&lt;br /&gt;
                deviceIdx = uint.MaxValue;&lt;br /&gt;
                btnMeasSinTpx3.Enabled = false;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
        private void btnMeasSinTpx3_Click(object sender, EventArgs e) { // ========================&lt;br /&gt;
            btnMeasSinTpx3.Enabled = false;&lt;br /&gt;
&lt;br /&gt;
            int opm;&lt;br /&gt;
            if (rbOPM0.Checked) opm = 0; else opm = 2;&lt;br /&gt;
            int rc = pxcSetTimepix3Mode(deviceIdx, opm);&lt;br /&gt;
            msgToList(&amp;quot;pxcSetTimepix3Mode&amp;quot;, rc);&lt;br /&gt;
&lt;br /&gt;
            &lt;br /&gt;
            double[] frameToaITot = new double[devPixels];&lt;br /&gt;
            UInt16[] frameTotEvent = new UInt16[devPixels];&lt;br /&gt;
            UInt32 size = devPixels;&lt;br /&gt;
            double t = Convert.ToDouble(txtMeasTime.Text);&lt;br /&gt;
&lt;br /&gt;
            rc = pxcMeasureSingleFrameTpx3(deviceIdx, t, frameToaITot, frameTotEvent, ref size, 0);&lt;br /&gt;
            msgToList(&amp;quot;pxcMeasureSingleFrameTpx3&amp;quot;, rc);&lt;br /&gt;
&lt;br /&gt;
            btnMeasSinTpx3.Enabled = true;&lt;br /&gt;
&lt;br /&gt;
            int[] imgData1 = new int[devPixels];&lt;br /&gt;
            int[] imgData2 = new int[devPixels];&lt;br /&gt;
            colorizeData(frameToaITot, imgData1);&lt;br /&gt;
            String colInfo1 = $&amp;quot;min:{colorizeMin:F}, max:{colorizeMax:F}, hit pixels:{colorizePixCount:D}&amp;quot;;&lt;br /&gt;
            colorizeData(frameTotEvent, imgData2);&lt;br /&gt;
            String colInfo2 = $&amp;quot;min:{colorizeMin:F}, max:{colorizeMax:F}, hit pixels:{colorizePixCount:D}&amp;quot;;&lt;br /&gt;
            &lt;br /&gt;
            pbFrame1.SizeMode = PictureBoxSizeMode.StretchImage;&lt;br /&gt;
            pbFrame2.SizeMode = PictureBoxSizeMode.StretchImage;&lt;br /&gt;
&lt;br /&gt;
            IntPtr imgDataPtr1 = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(int)) * (int)devPixels);&lt;br /&gt;
            Marshal.Copy(imgData1, 0, imgDataPtr1, (int)devPixels);&lt;br /&gt;
            IntPtr imgDataPtr2 = Marshal.AllocHGlobal(Marshal.SizeOf(typeof(int)) * (int)devPixels);&lt;br /&gt;
            Marshal.Copy(imgData1, 0, imgDataPtr2, (int)devPixels);&lt;br /&gt;
&lt;br /&gt;
            Bitmap bmp1 = new Bitmap((int)devXsize, (int)devYsize, (int)devXsize * 4, System.Drawing.Imaging.PixelFormat.Format32bppRgb, imgDataPtr1);&lt;br /&gt;
            Bitmap bmp2 = new Bitmap((int)devXsize, (int)devYsize, (int)devXsize * 4, System.Drawing.Imaging.PixelFormat.Format32bppRgb, imgDataPtr2);&lt;br /&gt;
&lt;br /&gt;
            pbFrame1.Image = bmp1;&lt;br /&gt;
            pbFrame2.Image = bmp2;&lt;br /&gt;
&lt;br /&gt;
            labImgInfo.Text = $&amp;quot;Frame1 - ToA/IToT:\n{colInfo1:S}\n\nFrame2 - ToT/Event:\n{colInfo2:S}&amp;quot;;&lt;br /&gt;
       }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>HudecekP</name></author>
	</entry>
</feed>