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: Thu, 30 Apr 2020 17:01:12 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

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

One more experiment...
from the linux command line:

$echo ":WAV:DATA?" > /dev/usbtmc0
$head -c 107530 /dev/usbtmc0 > scope.data
ls -l scope.data
-rw-rw-r-- 1 ......  107530 Apr 30 16:28 scope.data
$head -c 37 scope.data
#800107519-6.28141e-002,-8.79397e-002

107530 characters were read into scope.data
the first 10 characters show: "#800107519" indicating there are 107519
waveform data points following. The above head command showed the header and
the first two data points (14 characters per data point including the ","
separator).

10 characters for header,
107519 characters for data (7680 data pts x 14 char/pt)
-1 character (the last data point is not followed by a delimiter
+1 "\n" character at the end of the data
+1 end-of-file character
==============================
1077530 bytes (all the scope data was read in)

figure3.png is a plot of the 10Vpk, 3kHz sine-wave:

This demonstrates the scope, computer hardware, linux and usbtmc.ko all seem
to be working okay.





(file #48979)
    _______________________________________________________

Additional Item Attachment:

File name: figure3.png                    Size:42 KB
    <https://savannah.gnu.org/file/figure3.png?file_id=48979>



    _______________________________________________________

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]