help-octave
[Top][All Lists]
Advanced

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

Re: How to Store Data Detected by Octave


From: Ron . Simonson
Subject: Re: How to Store Data Detected by Octave
Date: Thu, 9 Mar 2017 09:24:28 -0800
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0


On 03/09/2017 04:04 AM, GuiCintraAlves wrote:
I used the code, but .... I think don't know if  apply the Code

clear;
pkg load instrument-control
s1 = serial("/dev/ttyACM0",9600 );
data = srl_read(s1,100);
s1 = char(data)
[t,p,a,ar,100]= sscanf("temperatura = " ,"Pressao = ","Altitude", "Altirude
real = ")
..................................................................................................................
leitura_BPM085
parse error near line 9 of file /home/gui/octave/leitura_BPM085.m

   invalid left hand side of assignment

[t,p,a,ar,100]= sscanf("temperatura = " ,"Pressao = ","Altitude",
"Altirude real = ")
* OR*


leitura_BPM085
error: unterminated character string constant
parse error near line 11 of file /home/gui/octave/leitura_BPM085.m

   syntax error






--
View this message in context: 
http://octave.1599824.n4.nabble.com/How-to-Store-Data-Detected-by-Octave-tp4682233p4682255.html
Sent from the Octave - General mailing list archive at Nabble.com.

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave

It appears that the sscanf() invocation was broken. Let's see if the call survives
as an attachment.

Best of luck.  Ron.

Attachment: datascan.m
Description: Text Data


reply via email to

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