jmlynesjr has asked for the wisdom of the Perl Monks concerning the following question:
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Digilent Inc. Analog Discovery
by bitingduck (Deacon) on Jun 12, 2015 at 04:08 UTC | |
by jmlynesjr (Deacon) on Jun 12, 2015 at 15:53 UTC | |
|
Re: Digilent Inc. Analog Discovery
by cavac (Prior) on Jun 12, 2015 at 12:42 UTC | |
by jmlynesjr (Deacon) on Jun 12, 2015 at 16:09 UTC | |
by kovacslattila (Initiate) on Jun 12, 2015 at 20:28 UTC | |
by jmlynesjr (Deacon) on Jun 13, 2015 at 14:13 UTC | |
by cavac (Prior) on Jun 12, 2015 at 17:12 UTC |