octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #58252] [octave forge] (instrument-control) us


From: Walter Sjursen
Subject: [Octave-bug-tracker] [bug #58252] [octave forge] (instrument-control) ustmc_read() does not read all the waveform data from oscilloscope
Date: Fri, 1 May 2020 10:07:15 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Follow-up Comment #13, bug #58252 (project octave):

[1] usbtmc function print out CAPS: F7
[2] I tried to set a timeout but received an error message (see below). But
the scope returns data very fast (I will post a new comment on that).
[3] I tried multiple reads. It took 15 reads to get all the scope's data (see
output of whos command below). Variables data_raw* is the data if each
sequential read. Note there is not a consistent size. Variable data_raw
stiches together all the data. that is data_raw = [data_raw1 data_raw2 ...
data_raw15]. The stitched-together data looks correct.


>> scope = usbtmc(', bu/dev/usbtmc0')
CAPS: F7
scope = 36
>> usbtmc_timeout
error: Invalid call to usbtmc_timeout.  Correct usage is:

 -- Loadable Function: TIMEOUT = usbtmc_timeout(USBTMC)
 -- Loadable Function: RETCODE = usbtmc_timeout(USBTMC, TIMEOUT)

Additional help for built-in functions and operators is
available in the online version of the manual.  Use the command
'doc <topic>' to search the manual index.

Help and information about Octave is also available on the WWW
at http://www.octave.org and via the address@hidden
mailing list.
>> timeout = usbtmc_timeout(scope)
warning: timeout not implemented
timeout = 0
>> retcode = usbtmc_timeout(scope,10000)
warning: timeout not implemented
retcode = -1
>> retcode = usbtmc_timeout(scope,10)
warning: timeout not implemented
retcode = -1


>> whos
Variables in the current scope:

   Attr Name             Size                     Bytes  Class
   ==== ====             ====                     =====  =====
        Xtime            1x7680                   61440  double
        Xtrigger         1x1                          8  double
        Ydata            1x7680                   61440  double
        ans              1x1                          8  double
        chan             1x1                          8  double
        cmd              1x15                        15  char
        count            1x1                          8  double
        dataFormat       1x10                        80  double
        data_raw         1x107530                107530  uint8
        data_raw1        1x3804                    3804  uint8
        data_raw10       1x8204                    8204  uint8
        data_raw11       1x8204                    8204  uint8
        data_raw12       1x8204                    8204  uint8
        data_raw13       1x8204                    8204  uint8
        data_raw14       1x8204                    8204  uint8
        data_raw15       1x8204                    8204  uint8
        data_raw16       1x5096                    5096  uint8
        data_raw2        1x2                          2  uint8
        data_raw3        1x8286                    8286  uint8
        data_raw4        1x2                          2  uint8
        data_raw5        1x8300                    8300  uint8
        data_raw6        1x8204                    8204  uint8
        data_raw7        1x8204                    8204  uint8
        data_raw8        1x8204                    8204  uint8
        data_raw9        1x8204                    8204  uint8
        data_str         1x107520                107520  char

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58252>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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