<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / SILO error help]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=417&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=417"/>
	<updated>2018-02-01T15:30:14Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=417</id>
	<entry>
		<title type="html"><![CDATA[Re: SILO error help]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1890#p1890"/>
		<content type="html"><![CDATA[<p>Dear Michael,<br />here is an example on using REST API as mentioned earlier: <a href="https://www.rexcontrols.cz/forum/img/members/3/0302-03_REST_API_Python_Bash_etc.zip" rel="nofollow">0302-03_REST_API_Python_Bash_etc.zip</a></p><p>A readme file with additional details is attached.</p><p>Let me know if this works for you.</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2018-02-01T15:30:14Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1890#p1890</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: SILO error help]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1886#p1886"/>
		<content type="html"><![CDATA[<p>Awesome, thanks Jaroslav, I&#039;ll give it a whirl tomorrow, when I&#039;m back at keyboard and let you know how it went.</p><p>Kind regards</p>]]></content>
		<author>
			<name><![CDATA[mcarroll]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=136</uri>
		</author>
		<updated>2018-01-31T21:37:16Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1886#p1886</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: SILO error help]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1884#p1884"/>
		<content type="html"><![CDATA[<p>Dear Michael,<br />the most probable reason is the conflict between read/write operations on a single file from multiple programs as you wrote.<br />I can imagine 2 solutions:</p><p>1) Ignore invalid data as shown in <a href="http://www.rexygen.com/oldforum/img/members/3/silo_ignore.mdl" rel="nofollow">this SILO block snippet</a> (save file as e.g. filename.mdl). The SHLD function block must be set to &quot;Hold last value&quot; mode.</p><p>2) Use the REST API of REX and instead of loading the value from a file using the SILO block, push the value directly from Python script to e.g. the CNR function block.</p><p>Hope this helps, let me know.</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2018-01-31T13:18:55Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1884#p1884</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[SILO error help]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1883#p1883"/>
		<content type="html"><![CDATA[<p>Hi Tomas and Jaroslav!</p><p>I&#039;m currently using the SILO block to read the output of a Python script - which is reading environmental monitoring sensors on the I2C bus. The readings are then archived and sent to a SQL database. </p><p>The issue I&#039;m having is when the SILO block throws an error, which defaults to 0, it&#039;s mucking up my sensor values.&#160; For example, when I want to monitor temperature over time, the odd 0 degree value really mucks up the data I&#039;m trying to collect.</p><p>I&#039;m seeing this happen fairly often, I&#039;m assuming it&#039;s probably when the script is writing to the text file, at the same time the SILO block is trying to read the same file, so it errors out.</p><p>Would you be able to confirm if this is true, or offer an alternative theory?&#160; </p><p>AND hopefully a solution <img src="http://www.rexygen.com/oldforum/img/smilies/smile.png" width="15" height="15" alt="smile" />?</p><p>Many thanks<br />Michael</p>]]></content>
		<author>
			<name><![CDATA[mcarroll]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=136</uri>
		</author>
		<updated>2018-01-30T21:38:44Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1883#p1883</id>
	</entry>
</feed>
