[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get serial data from USB using instrument control
From: |
Juan Pablo Carbajal |
Subject: |
Re: How to get serial data from USB using instrument control |
Date: |
Sun, 21 Oct 2012 23:56:24 +0200 |
On Sun, Oct 21, 2012 at 9:37 PM, jd <address@hidden> wrote:
> I'm trying to use the Instrument Control package
> http://wiki.octave.org/Instrument_control_package) to read in serial data
> through the USB port. Right now I'm just sending test data through the the
> USB from a microcontroller set to 9600. The test data I'm sending is just
> alternating 0 and 1.
>
> I'm getting correct data through the USB when I use Screen:
>
> screen /dev/ttyUSB1
>
> I get strange data when I try to use octave though. I think I'm doing
> something wrong. Here's an example. I think I should be getting 0 or 1 from
> srl_read
>
> pkg load all
>
> s1 = serial("/dev/ttyUSB1", 9600)
>
> s1 = 3
>
> srl_read(s1,1)
>
> ans = 49
>
>
>
> --
> View this message in context:
> http://octave.1599824.n4.nabble.com/How-to-get-serial-data-from-USB-using-instrument-control-tp4645575.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
Hi,
Please use the version from the repository
https://sourceforge.net/p/octave/code/11324/tree/trunk/octave-forge/main/instrument-control/
(let us know if you need help installing)
There have been mayor bug fixes and the new version is not released yet.
- How to get serial data from USB using instrument control, jd, 2012/10/21
- Re: How to get serial data from USB using instrument control,
Juan Pablo Carbajal <=
- Re: How to get serial data from USB using instrument control, jd, 2012/10/22
- Re: How to get serial data from USB using instrument control, Juan Pablo Carbajal, 2012/10/23
- Re: How to get serial data from USB using instrument control, jd, 2012/10/23
- Re: How to get serial data from USB using instrument control, Juan Pablo Carbajal, 2012/10/24
- Re: How to get serial data from USB using instrument control, Juan Pablo Carbajal, 2012/10/24
- Re: How to get serial data from USB using instrument control, Andrius Sutas, 2012/10/24
- Re: How to get serial data from USB using instrument control, jd, 2012/10/24
- Re: How to get serial data from USB using instrument control, Andrius Sutas, 2012/10/24
- Re: How to get serial data from USB using instrument control, jd, 2012/10/24
- Re: How to get serial data from USB using instrument control, Juan Pablo Carbajal, 2012/10/25