Re: data import via USB interface

Sergei Steshenko via Help-octave <[email protected]> Mon, 4 Mar 2024 12:46:37 +0200
Newsgroups gmane.comp.gnu.octave.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============8673609661218058595==
Content-Type: multipart/alternative;
 boundary="------------rZRmiNRJmkDJ0uhj8205Zk07"
Content-Language: en-US
Content-Length: 11023

This is a multi-part message in MIME format.
--------------rZRmiNRJmkDJ0uhj8205Zk07
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit


On 04/03/2024 10:56, Kathrin Kerschberger wrote:
> Hello,
>
> I am sorry, but I am still a little bit confused. This means, there is 
> no way to use usbtmc in Windows (or any other way to read data from an 
> USB interface) and I should use a serial port interface instead of an 
> USB Interface? Or did I understand something wrong?
> Thanks a lot for your help!
>
> Best regards,
> Kathrin
>
> Am 29.02.24 an 12:50, schrieb John Donoghue [email protected]
>
> On Thu, Feb 29, 2024 at 3:18 AM <[email protected]> wrote:
>
>
>     Message: 1
>     Date: Thu, 29 Feb 2024 09:16:53 +0100
>     From: Kathrin Kerschberger <[email protected]>
>     To: Andreas Weber <[email protected]>
>     Cc: [email protected]
>     Subject: Re: data import via USB interface
>     Message-ID:
>            
>     <[email protected]>
>     Content-Type: text/plain; charset="utf-8"; Format="flowed";
>             DelSp="Yes"
>
>     Hi Andy,
>
>     I tried these steps, but unfortunately it did not work.
>     I attached a screenshot of the error. Also, when I use the
>     instrhwinfo
>     function, USB is not listed. Is there anything else I can do?
>
>     Best regards,
>     Kathrin
>
>     Zitat von Andreas Weber <[email protected]>:
>
>     > Hi Kathrin,
>     >
>     > Am 28.02.24 um 11:58 schrieb Kathrin Kerschberger:
>     >> I installed and loaded the instrument-control package (version
>     >> 0.9.2). My OS is windows. If I try to use the function "usbtmc" I
>     >> get the following error: "error: usbtmc: Your system doesn't
>     >> support the USBTMC interface"
>     >
>     > The Windows Installer from https://octave.org/download#ms-windows
>     > comes with bundled instrument-control. You'll find usbtmc.oct in
>     >
>     octave-8.4.0-w64/mingw64/lib/octave/packages/instrument-control-0.9.1/x86_64-w64-mingw32-api-v58/
>     >
>     > and the only thing you have to do is "pkg load instrument-control"
>     > before using it.
>     >
>     > I just can guess, that you've overwriten the build with your manual
>     > installation. Can you try to remove GNU Octave, reinstall it using
>     > the installer and then "pkg load instrument-control" and use usbtmc?
>     >
>     > -- Andy
>
>
>
>
>
>  Per the wiki for instrument-control [1], the usbtmc interface is not 
> available in windows. You can also run 'instrhwinfo' from octave to 
> see which interfaces have been built..
>
> It you are doing basic serial type commands, you can just use the 
> serialport object instead.to <http://instead.to> read and write to a 
> usb serial port.
>
>
> [1] https://wiki.octave.org/Instrument_control_package#Compatibility
>
>
> ----------
> We are transitioning to a web based forum
> for community help discussions at
> https://octave.discourse.group/c/help

"This means, there is no way to use usbtmc in Windows (or any other way 
to read data from an USB interface)" - in my reply to your original 
Email among other things I said: "Quick web search yields 
https://github.com/python-ivi/python-usbtmc"; pay special attention to 
https://github.com/python-ivi/python-usbtmc#windows-setup there.

--Sergei.

--------------rZRmiNRJmkDJ0uhj8205Zk07
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 04/03/2024 10:56, Kathrin
      Kerschberger wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:e823792d-e127-49a9-a52b-2a9d9564eb82@iPhone-von-Kathrin-3">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Hello,<br>
      <br>
      I am sorry, but I am still a little bit confused. This means,
      there is no way to use usbtmc in Windows (or any other way to read
      data from an USB interface) and I should use a serial port
      interface instead of an USB Interface? Or did I understand
      something wrong?<br>
      Thanks a lot for your help!<br>
      <br>
      Best regards,<br>
      Kathrin <br>
      <br>
      Am 29.02.24 an 12:50, schrieb John Donoghue
      <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br>
      <br>
      <div>
        <title></title>
        <div dir="ltr">
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Thu, Feb 29, 2024 at
              3:18 AM
              &lt;<a href="mailto:[email protected]"
                moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>&gt;
              wrote:<br>
            </div>
            <blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <br>
              Message: 1<br>
              Date: Thu, 29 Feb 2024 09:16:53 +0100<br>
              From: Kathrin Kerschberger &lt;<a
                href="mailto:[email protected]"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">[email protected]</a>&gt;<br>
              To: Andreas Weber &lt;<a href="mailto:[email protected]"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">[email protected]</a>&gt;<br>
              Cc: <a href="mailto:[email protected]" target="_blank"
                moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a><br>
              Subject: Re: data import via USB interface<br>
              Message-ID:<br>
                      &lt;<a
href="mailto:[email protected]"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">[email protected]</a>&gt;<br>
              Content-Type: text/plain; charset="utf-8";
              Format="flowed";<br>
                      DelSp="Yes"<br>
              <br>
              Hi Andy,<br>
              <br>
              I tried these steps, but unfortunately it did not work.<br>
              I attached a screenshot of the error. Also, when I use the
              instrhwinfo <br>
              function, USB is not listed. Is there anything else I can
              do?<br>
              <br>
              Best regards,<br>
              Kathrin<br>
              <br>
              Zitat von Andreas Weber &lt;<a
                href="mailto:[email protected]" target="_blank"
                moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>&gt;:<br>
              <br>
              &gt; Hi Kathrin,<br>
              &gt;<br>
              &gt; Am 28.02.24 um 11:58 schrieb Kathrin Kerschberger:<br>
              &gt;&gt; I installed and loaded the instrument-control
              package
              (version <br>
              &gt;&gt; 0.9.2). My OS is windows. If I try to use the
              function
              "usbtmc" I <br>
              &gt;&gt; get the following error: "error: usbtmc: Your
              system
              doesn't <br>
              &gt;&gt; support the USBTMC interface"<br>
              &gt;<br>
              &gt; The Windows Installer from <a
                href="https://octave.org/download#ms-windows"
                rel="noreferrer" target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">https://octave.org/download#ms-windows</a> <br>
              &gt; comes with bundled instrument-control. You'll find
              usbtmc.oct
              in <br>
              &gt;
octave-8.4.0-w64/mingw64/lib/octave/packages/instrument-control-0.9.1/x86_64-w64-mingw32-api-v58/<br>
              &gt;<br>
              &gt; and the only thing you have to do is "pkg load
              instrument-control" <br>
              &gt; before using it.<br>
              &gt;<br>
              &gt; I just can guess, that you've overwriten the build
              with your
              manual <br>
              &gt; installation. Can you try to remove GNU Octave,
              reinstall it
              using <br>
              &gt; the installer and then "pkg load instrument-control"
              and use
              usbtmc?<br>
              &gt;<br>
              &gt; -- Andy<br>
              <br>
              <br>
            </blockquote>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div> Per the wiki for instrument-control [1], the usbtmc
              interface is not available in windows. You can also run
              'instrhwinfo' from octave to see which interfaces have
              been
              built..</div>
            <div dir="ltr">
              <div><br>
              </div>
              <div>It you are doing basic serial type commands, you can
                just use
                the serialport object <a href="http://instead.to"
                  moz-do-not-send="true">instead.to</a>
                read and write to a usb serial port.<br>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>[1] <a
href="https://wiki.octave.org/Instrument_control_package#Compatibility"
                    moz-do-not-send="true" class="moz-txt-link-freetext">https://wiki.octave.org/Instrument_control_package#Compatibility</a><br>
                </div>
              </div>
            </div>
            <br>
            <div class="gmail_quote">
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">
----------
We are transitioning to a web based forum
for community help discussions at
<a class="moz-txt-link-freetext" href="https://octave.discourse.group/c/help">https://octave.discourse.group/c/help</a>
</pre>
    </blockquote>
    <p>"This means, there is no way to use usbtmc in Windows (or any
      other way to read data from an USB interface)" - in my reply to
      your original Email among other things I said: "Quick web search
      yields <a class="moz-txt-link-freetext"
        href="https://github.com/python-ivi/python-usbtmc">https://github.com/python-ivi/python-usbtmc</a>";
      pay special attention to
      <a class="moz-txt-link-freetext" href="https://github.com/python-ivi/python-usbtmc#windows-setup">https://github.com/python-ivi/python-usbtmc#windows-setup</a> there.</p>
    <p>--Sergei.<br>
    </p>
  </body>
</html>

--------------rZRmiNRJmkDJ0uhj8205Zk07--


--===============8673609661218058595==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

Ci0tLS0tLS0tLS0KV2UgYXJlIHRyYW5zaXRpb25pbmcgdG8gYSB3ZWIgYmFzZWQgZm9ydW0KZm9y
IGNvbW11bml0eSBoZWxwIGRpc2N1c3Npb25zIGF0Cmh0dHBzOi8vb2N0YXZlLmRpc2NvdXJzZS5n
cm91cC9jL2hlbHAK

--===============8673609661218058595==--