<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Aceinna sensor integration with MATLAB]]></title><description><![CDATA[<p>I am trying to read sensor data directly through MATLAB code. When I use OpenIMU monitor to do the same, it reads data correctly.<br />
But with MATLAB, even after a successfuk serial connection establishment, it is unable to receive any bytes.<br />
I would like your advice about it, if I am doing something wrong.</p>
<pre><code>delete(instrfind({'Port'},{'COM3'}));

% Open serial connection to Aceinna sensor
s = serial('COM3');
set(s,'BaudRate',115200);
fopen(s);

% Read in binary data from sensor
% data = fread(s, s.BytesAvailable);

% Check the number of bytes available before reading
bytesAvailable = get(s, 'BytesAvailable');
if (bytesAvailable &gt; 0)
   data = fread(s, bytesAvailable);
else
   disp('No data available')
end
</code></pre>
]]></description><link>https://forum.aceinna.com//topic/382/aceinna-sensor-integration-with-matlab</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 00:12:13 GMT</lastBuildDate><atom:link href="https://forum.aceinna.com//topic/382.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Jan 2023 09:48:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Aceinna sensor integration with MATLAB on Tue, 24 Jan 2023 09:48:16 GMT]]></title><description><![CDATA[<p>I am trying to read sensor data directly through MATLAB code. When I use OpenIMU monitor to do the same, it reads data correctly.<br />
But with MATLAB, even after a successfuk serial connection establishment, it is unable to receive any bytes.<br />
I would like your advice about it, if I am doing something wrong.</p>
<pre><code>delete(instrfind({'Port'},{'COM3'}));

% Open serial connection to Aceinna sensor
s = serial('COM3');
set(s,'BaudRate',115200);
fopen(s);

% Read in binary data from sensor
% data = fread(s, s.BytesAvailable);

% Check the number of bytes available before reading
bytesAvailable = get(s, 'BytesAvailable');
if (bytesAvailable &gt; 0)
   data = fread(s, bytesAvailable);
else
   disp('No data available')
end
</code></pre>
]]></description><link>https://forum.aceinna.com//post/1516</link><guid isPermaLink="true">https://forum.aceinna.com//post/1516</guid><dc:creator><![CDATA[Leena]]></dc:creator><pubDate>Tue, 24 Jan 2023 09:48:16 GMT</pubDate></item></channel></rss>