<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Analog inputs via SPI bus?]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=49&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=49"/>
	<updated>2016-03-26T01:54:09Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=49</id>
	<entry>
		<title type="html"><![CDATA[Re: Analog inputs via SPI bus?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=354#p354"/>
		<content type="html"><![CDATA[<p>Thanks Jaroslav, that seems to have helped and I can now see the signals operatin as I vary the voltages to the ADC inputs.</p><p>Cheers,</p><p>Brian H.</p>]]></content>
		<author>
			<name><![CDATA[uxhamby]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=48</uri>
		</author>
		<updated>2016-03-26T01:54:09Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=354#p354</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Analog inputs via SPI bus?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=352#p352"/>
		<content type="html"><![CDATA[<p>Hello Brian,<br />thanks for reporting this! Here is the <a href="https://www.rexcontrols.cz/forum/img/members/3/MCP3008_ADC.zip" rel="nofollow">MCP3008 example</a> in a zip file. It is ready to use, no errors or warnings should appear. Open the mcp3008_exec.mdl file, the mcp3008_task should open automatically. Please compare it to the files which you have from GitHub so that we can find the source of the problem. Thanks!</p><p>As for the SPI, use the command below to list the available SPI bus.</p><div class="codebox"><pre><code>ls /dev/spi*</code></pre></div><p>In the example I use /dev/spidev0.0 in the fname parameter of the REXLANG function block.</p><p>Hope this helps!</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-03-25T22:16:07Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=352#p352</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Analog inputs via SPI bus?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=351#p351"/>
		<content type="html"><![CDATA[<p>Thanks Tomas,</p><p>I am running version 2.10.7.5386 of RexDraw on Win XP.</p><p>I opened the mcp3008_exec.mdl file just as it came from the GitHub download. When I got the error message I wondered if I was supposed to rename it to just exec.mdl so I created a copy and renamed it but still got the error message. I boggled at that point.</p><p>Thanks again,</p><p>Brian H.</p>]]></content>
		<author>
			<name><![CDATA[uxhamby]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=48</uri>
		</author>
		<updated>2016-03-25T21:42:14Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=351#p351</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Analog inputs via SPI bus?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=349#p349"/>
		<content type="html"><![CDATA[<p>Hello Brian,</p><p>hope you wouldn&#039;t mind if I will try to answer your questions instead of Jaroslav <img src="http://www.rexygen.com/oldforum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Please, can you tell me which version of RexDraw do you use at the moment?<br />I&#039;m also wondering if you haven&#039;t renamed the exec or task .mdl file. If so, you can get an error message about the file name because those two file are internally &quot;connected&quot;. This error will be fixed in new release, however those two files needs to stay &quot;connected&quot; <img src="http://www.rexygen.com/oldforum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>According to your last question: you are right - you should change Rexlang &quot;fname&quot; parameter to &quot;/dev/spi0.0&quot; (or the correct SPI bus device found in your RPI).</p><p>Regards, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-03-25T17:31:17Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=349#p349</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Analog inputs via SPI bus?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=348#p348"/>
		<content type="html"><![CDATA[<p>Sorry Jaroslav but as a new user to RexControls, I am going to need a bit more hand holding here.</p><p>For example when I attempt to load mcp3008_exec.mdl into RexDraw, I get an error code 27 dialogue box about file name / module name being different. Is that important or can it be ignored?</p><p>Once mcp3008_exec.mdl is loaded by clicking past the error code notification window, I get a blank window with no coding apparent. Is that normal or is that due to the error?</p><p>If I load the mcp3008_exec.mdl (again by clicking past the code 27 error) and then call for a rexLang object from the library am I correct in my understanding that &quot;Specify the SPI bus by the fname parameter of the REXLANG function block.&quot; means that I should change its fname parameter to &quot;/dev/spi0.0&quot; ?</p><p>I am looking forward to seeing this work.</p><p>Thanks,</p><p>Brian H.</p>]]></content>
		<author>
			<name><![CDATA[uxhamby]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=48</uri>
		</author>
		<updated>2016-03-25T16:52:15Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=348#p348</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: Analog inputs via SPI bus?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=219#p219"/>
		<content type="html"><![CDATA[<p>Hi,<br />yes you can. Please have a look at our GitHub examples repository, namely the \Integrating_external_devices\SPI folder. The MCP3008 is probably the most popular ADC.</p><p>Links to the examples repository can be found here:<br /><a href="https://www.rexcontrols.com/documentation-and-support" rel="nofollow">https://www.rexcontrols.com/documentation-and-support</a></p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2016-01-30T22:57:39Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=219#p219</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Analog inputs via SPI bus?]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=218#p218"/>
		<content type="html"><![CDATA[<p>Can I take analog inputs to REX, from real world devices via the Rasp pi&#039;s SPI bus ?</p><p>Thanks!</p>]]></content>
		<author>
			<name><![CDATA[contactform]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=11</uri>
		</author>
		<updated>2016-01-30T22:51:58Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=218#p218</id>
	</entry>
</feed>
