<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Changing Block Parameter based on variable within source code]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=316&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=316"/>
	<updated>2017-01-10T10:24:54Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=316</id>
	<entry>
		<title type="html"><![CDATA[Re: Changing Block Parameter based on variable within source code]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1387#p1387"/>
		<content type="html"><![CDATA[<p>Hi Peter,</p><p>thank you for your question. You pointed out really useful feature.</p><p>It is possible to change parameters inside function blocks using block SETP* (A - array, B - boolean, I - integer, R - real, S - string) - see docs <a href="https://www.rexcontrols.com/media/2.50.1/doc/PDF/ENGLISH/BRef_ENG.pdf#page=313" rel="nofollow">https://www.rexcontrols.com/media/2.50. … f#page=313</a></p><p>These blocks can be triggered by pulse or can work in continuous mode.</p><p>For parameter change detection (SELQUAD output in your case) you can use difference function block &quot;DIF_&quot; followed by&#160; relation operator &quot;REL&quot; set to be active when inequal to zero.</p><p>It is also possible to Read and Write parameters within Rexlang code - look for GetExt*() and SetExt() functions.</p><p>Hope it helps!</p><p>Cheers, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2017-01-10T10:24:54Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1387#p1387</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Changing Block Parameter based on variable within source code]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1384#p1384"/>
		<content type="html"><![CDATA[<p>Hi,</p><p>I&#039;m wondering how I can change a block parameter based on a variable within the source code?<br />Block parameters easily can be changed using the web interface, but how to do that based on a variable of another block?</p><p>I would like to change the y2 parameter (currently 1) based on the SNI_selector_y2_LIN_RTD10 selection. So it either will become 1, 10, 100 or 1000.</p><br /><p>Screenshot enclosed for further clarification.</p><p>Thanks in advance for your help.</p><p>Regards,<br />Peter</p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/100/Block_parameter_change_within_source_code.jpg" alt="FluxBB bbcode test" /></span></p>]]></content>
		<author>
			<name><![CDATA[rexpeter]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=100</uri>
		</author>
		<updated>2017-01-09T14:34:05Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1384#p1384</id>
	</entry>
</feed>
