Sf minimal

  • 3 Replies
  • 3155 Views
Sf minimal
« on: March 26, 2020, 10:23:59 PM »
I would like to write a minimal sf demo. Native python3 with possibly a single c/c++ file and no deps besides libusb... Really really basic. It would only support config + capture and maybe awg. But for that I would like to start with something that compiles. Neither gitlab GitHub nor sf homepage have code that builds out of the box on my Debian system.

The deb installs and works, but the GUI has a few bugs id like to fix. One is simple. The Trace is never adjusted to where the trigger is placed. If the trigger is placed further left on the screen then the waveform is stretched as if the timescale was changing. If the trigger is moved to the right it changes nothing.

The hardware looks good though! Clean, and practical. One note: it is not galvanically isolated. Makes sense for technical reasons... Getting that amount of data across an isolation barrier is non trivial. But it was not mentioned anywhere not even the manual. So heads up.
« Last Edit: March 26, 2020, 10:33:15 PM by maxwaldo »

*

Dejan

  • *****
  • 150
    • View Profile
Re: Sf minimal
« Reply #1 on: March 26, 2020, 11:26:07 PM »
What kind of build problem are you experiencing? Please check the following link for build instructions: https://gitlab.com/scopefun/scopefun-software/-/blob/master/doc/build/build.pdf

Trigger position can be changed with slider (Pre-Trigger), it should work.

Regarding the isolation, as you already mentioned it's not possible due to bandwidth limitations. It should also not be required if you follow the manual and observe the maximum input voltage ratings.

Re: Sf minimal
« Reply #2 on: March 28, 2020, 08:49:45 AM »
The build instructions require codeblocks ide... some of us don't like IDEs.
The project is based on cmake... good.
I guess the problem is that I expected it to build without the IDE.

I tried the following:


git clone https://gitlab.com/scopefun/scopefun-software.git
cd scopefun-software
mkdir build
cd build
cmake ..
make
...
scopefun-software/lib/libusb-1.0.22/missing: line 81: aclocal-1.15: command not found


apt says automake is already the newest version (1:1.16.1-4).

Perhaps the trigger position can be changed with Pre-Trigger I have not tried it.
But there is a definite bug with the way the signal is displayed and how the interface for the time axis works.

*

Dejan

  • *****
  • 150
    • View Profile
Re: Sf minimal
« Reply #3 on: March 28, 2020, 08:55:08 PM »
You can also build without Codeblocks. First you need to set file permissions and set cmake variables.

Please try the following:

git clone https://gitlab.com/scopefun/scopefun-software.git
cd scopefun-software
mkdir build
cd build
chmod +x ../lib/wxWidgets-3.0.4/src/stc/gen_iface.py
cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE="Release" -D CPACK_BINARY_DEB="true" -D CPACK_BINARY_TZ="false" -D CPACK_BINARY_TGZ="false" -D CPACK_BINARY_STGZ="false" ..
make


Build instructions in the GitLab repository have been also modified.