help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: serial communication


From: mmuetzel
Subject: Re: serial communication
Date: Wed, 21 Jun 2017 03:02:33 -0700 (PDT)

Octave language is not type sensitive. Write something like this to define
your array of hex values:
pkt = [0xBB, 0x00, 0x08, 0x00, 0x00, 0x7E, 0x0B, 0x96];

Also, indices start with 1 (not with 0).
I do not know srl_write but there is a good chance it can send character
vectors without a loop.

A good start for getting to know the basics of the language is reading (at
least) the first chapter of the manual:
https://www.gnu.org/software/octave/doc/interpreter/

Just as a side note: You might reach more people willing to help if you sent
your code and error messages as text instead of screenshots.



--
View this message in context: 
http://octave.1599824.n4.nabble.com/serial-communication-tp4683827p4683828.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]