matlab - Indexing issue in instrument-control library -


I am currently trying to get the readings from an ez430 Chronos clock with Accelerometer via a USB dongle. I am using the Device Control Library in Octave to achieve this, but I'm running into issues when accessing members of the returned octave_serial object in the serial () function. My code is now as follows:

  Clear% SETUP of the USB accesspoint port_number = '/ dev / ttyacM0'; % Port_number = '/ dev / ttyS101'; s = serial (port_number, 115200) s.InputBufferSize s.InputBufferSize = 1024; S.FlowControl = 'none'; s.Timeout = 1; S.ReadAsyncMode = 'Continuous'; % !!!!!!! Important if s.Status (1: 4) == 'open' disp ('pre-opened harbor'); fclose (s); End; S.ErrorFcn=@mycallback; % Is not important - you can specify your own error callback   

This is going on when I'm getting the error error: octave_serial type trace only This file specifies, so there is no problem in the libraries, but I am getting frustrated because I am not getting any documents, which type of octave_sirial object is

this problem Not is where If I run the program incorrectly typed the full filename with the extension; if this happens I would still get it thanks to thousands of hits on Google to deal with that issue;)

Any help greatly appreciated Will. Thanks guys!

The function / class that you are using is part of the Octave Forge instrument control package, they are not part of the Octave Core, although most packages are matlab syntax Compatible with, but this package is not. Syntax which you are trying to use only for Matlab.

However, there is a great documentation on the OctaV wiki in the device control package. I would like to take a look at you there Besides, you mention that this is a USB dongle, should not you use usbtmc instead of serial ?

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -