I am looking at buying a budget O-Scope. I asked on chipkit.net if anyone had any experience with any of these products(Rigol or Owon). One poster recommended looking at the Digilent Inc. Analog Discovery USB O-Scope/Logic Analyser.

This looks like a nice product, but the GUI is only supported on Windows, while I am an Ubuntu user. There is an SDK available for Linux provided as a header file and a shared library. Several non-GUI Python examples are also provided along with a .py file of the constants defined in the header file.

Before I spend the $279 USD for this device, I'd like a feel for what it would take to wrap this shared library for use in a Perl/wxPerl GUI application. I have seen references to h2xs and Inline::C. The Inline::C::Cookbook shows this example:

use IO::All; use Inline::C => sub { io('allheaders.h')->all =~ s/LEPT_DLL extrn/gr }, enable => "autowrap", libs => '-lleptonica';

Is it really that simple? Just substitute my library and header files? Are the constants within the header file also wrapped? Is any kind of xs source file produced that can be reviewed?

Thanks in advance.

James

There's never enough time to do it right, but always enough time to do it over...


In reply to Digilent Inc. Analog Discovery by jmlynesjr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.