<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Typecast</id>
	<title>Typecast - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://labviewwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Typecast"/>
	<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Typecast&amp;action=history"/>
	<updated>2026-05-08T10:13:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=3056&amp;oldid=prev</id>
		<title>Michael_Aivaliotis at 10:38, 8 October 2007</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=3056&amp;oldid=prev"/>
		<updated>2007-10-08T10:38:11Z</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 10:38, 8 October 2007&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;== [[Enum]] Typecast ==&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;== [[Enum]] Typecast ==&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an [[enum]] type then a problem observed in that the type cast doesn&amp;#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&amp;#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an [[enum]] type then a problem observed in that the type cast doesn&amp;#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&amp;#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&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;[[category:numeric data manipulation]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Michael_Aivaliotis</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=2539&amp;oldid=prev</id>
		<title>Michael_Aivaliotis at 09:00, 1 October 2007</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=2539&amp;oldid=prev"/>
		<updated>2007-10-01T09:00:50Z</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 09:00, 1 October 2007&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;== [[Enum]] Typecast ==&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;== [[Enum]] Typecast ==&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an [[enum]] type then a problem observed in that the type cast doesn&amp;#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&amp;#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an [[enum]] type then a problem observed in that the type cast doesn&amp;#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&amp;#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;[[Category:Uncategorized]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Michael_Aivaliotis</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=663&amp;oldid=prev</id>
		<title>MichaelAivaliotis at 10:05, 3 April 2007</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=663&amp;oldid=prev"/>
		<updated>2007-04-03T10:05:45Z</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 10:05, 3 April 2007&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;== [[Enum]] Typecast ==&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;== [[Enum]] Typecast ==&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an [[enum]] type then a problem observed in that the type cast doesn&amp;#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&amp;#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an [[enum]] type then a problem observed in that the type cast doesn&amp;#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&amp;#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&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;[[Category:Uncategorized]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MichaelAivaliotis</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=331&amp;oldid=prev</id>
		<title>MichaelAivaliotis: /* Enum Typecast */</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=331&amp;oldid=prev"/>
		<updated>2007-03-18T05:15:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;&lt;a href=&quot;/wiki/Enum&quot; class=&quot;mw-redirect&quot; title=&quot;Enum&quot;&gt;Enum&lt;/a&gt; &lt;a href=&quot;/wiki/Typecast&quot; title=&quot;Typecast&quot;&gt;Typecast&lt;/a&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 05:15, 18 March 2007&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;/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;== [[Enum]] Typecast ==&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;== [[Enum]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/del&gt;Typecast&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;enum&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;type then a problem observed in that the type cast doesn&#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&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;If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an enum type then a problem observed in that the type cast doesn&#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MichaelAivaliotis</name></author>
	</entry>
	<entry>
		<id>https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=330&amp;oldid=prev</id>
		<title>MichaelAivaliotis: New page:  == Enum Typecast == If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an enum type then a problem observed...</title>
		<link rel="alternate" type="text/html" href="https://labviewwiki.org/w/index.php?title=Typecast&amp;diff=330&amp;oldid=prev"/>
		<updated>2007-03-18T05:14:02Z</updated>

		<summary type="html">&lt;p&gt;New page:  == &lt;a href=&quot;/wiki/Enum&quot; class=&quot;mw-redirect&quot; title=&quot;Enum&quot;&gt;Enum&lt;/a&gt; &lt;a href=&quot;/wiki/Typecast&quot; title=&quot;Typecast&quot;&gt;Typecast&lt;/a&gt; == If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an enum type then a problem observed...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== [[Enum]] [[Typecast]] ==&lt;br /&gt;
If a typecast function is used to convert a number related, for example, to the button pressed (in an array of buttons) to an enum type then a problem observed in that the type cast doesn&amp;#039;t seem to work. The button press is changing the number on the input, but the enum output does not change. The answer is that most likely the two inputs to the typecast function have different representations, probably I32 and U16. The type cast is reading the high order bits of the I32 (which aren&amp;#039;t changing) and casting them into the U16 enum output. The solution is to convert both to representations having the same length (signed and unsigned mix fine), either by changing the representation of the controls themselves or by using a convert function at the input to the type cast.&lt;/div&gt;</summary>
		<author><name>MichaelAivaliotis</name></author>
	</entry>
</feed>