[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: low level I/O (GPIB, USBTMC, VXI11)
From: |
Hugo Coolens |
Subject: |
Re: low level I/O (GPIB, USBTMC, VXI11) |
Date: |
Tue, 27 Nov 2012 08:27:52 +0100 |
2012/11/25, Stefan Mahr <address@hidden>:
> Hi Hugo,
>
> Be sure to have mkoctfile installed on your system
> (ubuntu: apt-get install liboctave-dev)
>
> Get the source of octave instrument control toolbox from github and put
> it to any directory.
>
> Execute build.sh from ./usbtmc_tb directory.
>
> Start octave from ./usbtmc_tb.
>
I proceeded as follows
1. apt-get install octave3.2-headers
2. git clone https://github.com/dac922/octave-instrument-control-toolbox.git
3. cd ~/octave-instrument-control-toolbox/usbtmc_tb
4. chmod +x build.sh
5. ./build.sh
Unfortunately an error pops up as can be seen here below:
address@hidden:/home/student/octave-instrument-control-toolbox/usbtmc_tb#
./build.sh
usbtmc_tb.cc: In function ‘octave_value_list Fusbtmc_read(const
octave_value_list&, int)’:
usbtmc_tb.cc:122: error: call of overloaded ‘append(int&)’ is ambiguous
/usr/include/octave-3.2.4/octave/oct-obj.h:119: note: candidates are:
octave_value_list& octave_value_list::append(const octave_value&)
/usr/include/octave-3.2.4/octave/oct-obj.h:121: note:
octave_value_list& octave_value_list::append(const octave_value_list&)
Any idea how to work around this?
thanks
hugo
>
> BR,
> Stefan
>
>
> -------- Original-Nachricht --------
> Betreff: Re: low level I/O (GPIB, USBTMC, VXI11)
> Von: Hugo Coolens <address@hidden>
> An: Stefan Mahr <address@hidden>
> Datum: So 25 Nov 2012 16:57:18 CET
>
>> 2012/11/24, Stefan Mahr <address@hidden>:
>>> Hi Hugo,
>>>
>>> if using my toolbox within octave try:
>>>
>>> readbytes = 10000;
>>> fd = usbtmc_open("/dev/usbtmc1");
>>> usbtmc_write(fd,"ID?");
>>> result = usbtmc_read(fd,readbytes);
>>> usbtmc_close(fd);
>>
>> thanks for the reply, I will try this tomorrow; Could you also tell me
>> how to install
>> your octave-instrument-control-toolbox?
>> (I'm using GNU Octave, version 3.2.4)
>>
>> thanks,
>> hugo
>>
>>>
>>> Using octave forge instrument control i2c for USBTMC should work as
>>> well, but I haven't test it yet.
>>>
>>> Stefan
>>>
>>>
>>> -------- Original-Nachricht --------
>>> Betreff: Re: low level I/O (GPIB, USBTMC, VXI11)
>>> Von: Hugo Coolens <address@hidden>
>>> An: Stefan Mahr <address@hidden>
>>> Datum: Sa 24 Nov 2012 14:25:08 CET
>>>
>>>> Dear Stefan,
>>>> Could you give a simple example showing how to use a usbtmc device
>>>> (/dev/usbtmc1)?
>>>> I compiled a usbtmc kernel module which I can load and use from within
>>>> python.
>>>>
>>>> thanks
>>>> hugo
>>>>
>>>> 2012/11/23, Stefan Mahr <address@hidden>:
>>>>> Hi,
>>>>>
>>>>> I just noticed that there were Summer of Code Project Ideas for low
>>>>> level
>>>>> I/O.
>>>>>
>>>>> Some years ago I already posted my toolbox for serial, tcp, gpib (and
>>>>> visa)
>>>>> to this list. Meanwhile I have added VXI11 and USBTMC. National
>>>>> Instruments
>>>>> GPIBENET-100 support is started, but even more incomplete than the
>>>>> rest
>>>>> of
>>>>> the toolbox. However, basic I/O is working and I'm able to talk with
>>>>> all
>>>>> of
>>>>> my instruments.
>>>>>
>>>>> I put the code to
>>>>> https://github.com/dac922/octave-instrument-control-toolbox
>>>>>
>>>>> Hope someone find it useful.
>>>>>
>>>>> Best regards,
>>>>> Stefan
>>>>> _______________________________________________
>>>>> Help-octave mailing list
>>>>> address@hidden
>>>>> https://mailman.cae.wisc.edu/listinfo/help-octave
>>>>>
>>>>
>>>
>>
>
- Re: low level I/O (GPIB, USBTMC, VXI11), (continued)
- Re: low level I/O (GPIB, USBTMC, VXI11), Julien Salort, 2012/11/25
- Re: low level I/O (GPIB, USBTMC, VXI11), Juan Pablo Carbajal, 2012/11/25
- Message not available
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), Jordi Gutiérrez Hermoso, 2012/11/25
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), Julien Salort, 2012/11/25
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), Sergei Steshenko, 2012/11/25
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), James Sherman Jr., 2012/11/25
- Message not available
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), Juan Pablo Carbajal, 2012/11/25
- Message not available
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), Jordi Gutiérrez Hermoso, 2012/11/25
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), Francesco Potortì, 2012/11/26
- Re: [OctDev] low level I/O (GPIB, USBTMC, VXI11), Jordi Gutiérrez Hermoso, 2012/11/26
- Message not available
- Message not available
- Message not available
- Message not available
- Re: low level I/O (GPIB, USBTMC, VXI11),
Hugo Coolens <=