<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[CANNY logic forum — Floating numbers]]></title>
	<link rel="self" href="https://forum.cannylogic.com/extern.php?action=feed&amp;tid=76&amp;type=atom" />
	<updated>2023-11-14T16:51:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.cannylogic.com/viewtopic.php?id=76</id>
		<entry>
			<title type="html"><![CDATA[Re: Floating numbers]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1043#p1043" />
			<content type="html"><![CDATA[<p>The diagram actual run time is much shorter than 7.5 sec:<br /><a href="https://cannylogic.com/docs/c7/resources/#sec--c7-resources-diagram_actual_runtime" target="_blank">https://cannylogic.com/docs/c7/resource … al_runtime</a></p><p>So you can to implement almost any algorithm you want to control your own software PWM module instead of using system drivers.</p>]]></content>
			<author>
				<name><![CDATA[Konstantin, CANNY logic]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=2</uri>
			</author>
			<updated>2023-11-14T16:51:34Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1043#p1043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Floating numbers]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1042#p1042" />
			<content type="html"><![CDATA[<p>Thank you Konstantin. <br />Now a conceptual question. I am not fully aware of the device cycles.<br />Say the canbus sends messages every 10 ms on that address. Based on your calculation the PWM period = 7500 ms.<br />The first message comes, the device starts to execute the calculations and generate pulses. After 10 ms another message comes, what device will do? It will drop the first execution and go for new one? And on and on? Or the code is blocking and it have to wait 7500 ms to complete the task?</p>]]></content>
			<author>
				<name><![CDATA[altingoxhe]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=303</uri>
			</author>
			<updated>2023-11-13T12:54:44Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1042#p1042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Floating numbers]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1041#p1041" />
			<content type="html"><![CDATA[<p>You can calculate it in milliseconds (ms):</p><p>Frequency = RPM / 60000</p><p>So the Period in = 60000 / RPM</p><p>Thus for RPM = 8 the Period = 60000 / 8 = 7500 ms</p>]]></content>
			<author>
				<name><![CDATA[Konstantin, CANNY logic]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=2</uri>
			</author>
			<updated>2023-11-13T11:31:26Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1041#p1041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Floating numbers]]></title>
			<link rel="alternate" href="https://forum.cannylogic.com/viewtopic.php?pid=1040#p1040" />
			<content type="html"><![CDATA[<p>I want to calculate PWM period based on a given RPM. <br />Frequency = RPM / 60.<br />Say I have 8 RMP / 60 Sec = 0.13333 Hz.<br />Period = 1 / Freq.<br />So the Period = 1 / 0.13333 = 7.5 Sec. <br />How to represent these calculations in CannyLab ide?</p>]]></content>
			<author>
				<name><![CDATA[altingoxhe]]></name>
				<uri>https://forum.cannylogic.com/profile.php?id=303</uri>
			</author>
			<updated>2023-11-11T16:08:07Z</updated>
			<id>https://forum.cannylogic.com/viewtopic.php?pid=1040#p1040</id>
		</entry>
</feed>
