Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Dejan

Pages: [1] 2 3 ... 10
1
Firmware / Re: Firmware features ?
« on: April 26, 2024, 09:54:16 AM »
Hi!

Yes, you could modify FPGA firmware (image) to implement a digital filter. For example, take a look on how the signal averaging  is implemented in the 'mavg' component and integrated in the firmware. If the filter will always be enabled, then this would be all that is required to make it work. Vivado can be used for compiling the FPGA image.

If you want the ability for this filter to be switched on or off through the software GUI, then you would need to add a new setting option to the hardware control registers . These registers are modified through the GUI software (or Python API) and transferred from software to the hardware. After choosing a reserved (unused) register, you woud need to write a new C function in the software to control this register (again, for example, take a look at the  sfSetAverage and sfGetAverage) functions in scopefunapi.c . Then a new wxwidgets check-box would be added to the GUI and it would be used to call these hardware register modifying functions through wxWidgets.

Another option is to implement this digital filter on the host (PC), after samples are retrieved from the board. This could most  trivially be implemented in Python, using scopefun Python API to connect to the board and read the samples.

2
Software / New software version was released, v2.3.0
« on: August 07, 2023, 06:54:05 AM »
Changes from v2.2.0:

- new feature: AWG phase adjustment
- added option to change AWG frequency by step
- upgrade libraries in repository
- API upgraded to Python 3.10

Download: https://www.scopefun.com/download

https://gitlab.com/scopefun/scopefun-software/-/releases/Release_v2.3.0

3
Software / Re: Compilation Failure Ubuntu 23.04
« on: August 02, 2023, 08:20:15 AM »
Regarding the Python module, it will be found in the "build/source" folder after successful compilation of the software. The name of the module indicates the Python version for which it was built for. For example: scopefun.cpython-310-x86_64-linux-gnu.so is for Python version 3.10. The module must be located in the same folder from which the python script will be run.

More information about using the API is available in Python API Wiki.

4
Software / Re: Compilation Failure Ubuntu 23.04
« on: August 01, 2023, 05:29:35 PM »
Hi.

Please follow instructions from the wiki: https://gitlab.com/scopefun/scopefun-software/-/wikis/Developers-Guide/Building-software-from-source

These instructions are for building the latest software version (GUI and Python API).

5
Software / Re: Compilation Failure Ubuntu 23.04
« on: July 31, 2023, 08:55:12 AM »
Hi,

it seems the issue is related to the Ubuntu 23.04 and SDL2-2.0.12, however I'm not sure about the exact reason.

I am currently working on updating the scopefun repository with newer libraries, including SDL2. The latest version from the repository should already compile fine on Ubuntu. Could you try to compile the latest scopefun version by cloning from the current develop branch from GitLab?
git clone --branch develop https://gitlab.com/scopefun/scopefun-software.git
 
If you want to change only the SDL2 sources in Release_v2.2.0, you should download SDL2 latest release-2.28.1  and replace the SDL2 files in the "scopefun-software/lib/SDL2-2.0.12" folder.

Let me know any of the above helps.

6
Software / Re: Running CodeBlocks Project
« on: May 11, 2023, 09:20:54 AM »
Hi

You need to change the running directory for the ScopeFun target in codeblocks.

Go to Project -> Properties, select Build targets tab and in this tab search for ScopeFun Build target on the left. Then change the following entries for this target:
- Ouput filename: ..\bin\scopefun.exe (if release binary)
- Execution working dir: ..\bin

7
Software / Re: Compiler errors involving Python
« on: May 03, 2023, 09:10:40 AM »
I'm still not sure why you are  getting these errors... Maybe something is broken with your Python installation and you would need to re-install Python.

Another option you can try is to use Python which is provided with MSYS2. To verify which Python version is provided with MSYS2, enter the following command in the MSYS2 MINGW64 terminal:

Code: [Select]
$ pacman -Sl | grep "python " | grep "installed"
mingw64 mingw-w64-x86_64-python 3.10.11-1 [installed]

Uninstall Python 3.9.5 from Windows completely, leaving only Python which is provided with MSYS2.

For the cmake configure step, instead of using cmake-GUI Windows application, use cmake provided with MSYS2:

cd scopefun-software/
mkdir build && cd build
cmake -G "MinGW Makefiles" -D SCOPEFUN_VERSION_MAJOR="2" -D SCOPEFUN_VERSION_MINOR="2" -D SCOPEFUN_VERSION_MICRO="0" -D SCOPEFUN_BUILD_TYPE="Release" ..


Note: cmake can be installed with pacman -S mingw-w64-x86_64-cmake

In the cmake log output you should see the following:
Code: [Select]
...
-- pybind11 v2.9.0 dev1
-- Found PythonInterp: C:/msys64/mingw64/bin/python3.10.exe (found version "3.10.11")
-- Found PythonLibs: C:/msys64/mingw64/lib/libpython3.10.dll.a
-- pybind11::lto disabled (problems with undefined symbols for MinGW for now)
-- pybind11::thin_lto disabled (problems with undefined symbols for MinGW for now)
-- Found Python: C:/msys64/mingw64/bin/python3.10.exe (found suitable version "3.10.11", minimum required is "3.9") found components: Interpreter Development Development.Module Development.Embed
-- Configuring done (123.6s)
-- Generating done (0.8s)

After that you can build ScopeFun with:
mingw32-make package

8
Software / Re: Compiler errors involving Python
« on: April 21, 2023, 02:07:06 PM »
I have tried to compile in Windows 11, but I was unable to duplicate the problem with SHGetKnownFolderPath declaration.

However, I did encounter another problem initially during the cmake configure step. The problem was related to SDL2 requirement for DirectX SDK. After installing [Windows SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/) and adding DXSDK_DIR to Windows Environment Variables, the compilation was successful.

I have added additional comment about the DXSDK_DIR variable in the [ScopeFun compilation instructions](https://gitlab.com/scopefun/scopefun-software/-/wikis/Developers-Guide/Building-software-from-source).

If you are still having problems after the Windows SDK installtion, try to delete cmake cache and re-run cmake configure, before compiling. In cmake, go to File -> Delete Cache.

9
Software / Re: Compiler errors involving Python
« on: April 12, 2023, 10:36:34 PM »
Double check that you have the following entries in your Windows Path (in this order):
C:\Users\<your_windows_username>\AppData\Local\Programs\Python\Python39\Scripts\
C:\Users\<your_windows_username>\AppData\Local\Programs\Python\Python39\
C:\msys64\mingw64\bin


Double check that you installed all the required programs in "MSYS2 MinGW 64-bit":

pacman -Su
pacman -S mingw-w64-x86_64-gcc
pacman -S git
pacman -S make
pacman -S mingw-w64-x86_64-make
pacman -S msys/automake-wrapper
pacman -S msys/autoconf
pacman -S mingw-w64-x86_64-nsis


When performing the cmake configure step (before generate step), please check if you get the following output (note the Found Python... log entries):

Code: [Select]
...
pybind11 v2.9.0 dev1
Found PythonInterp: C:/Users/Win10/AppData/Local/Programs/Python/Python39/python.exe (found version "3.9.5")
Found PythonLibs: C:/Users/Win10/AppData/Local/Programs/Python/Python39/libs/python39.lib
pybind11::lto disabled (problems with undefined symbols for MinGW for now)
pybind11::thin_lto disabled (problems with undefined symbols for MinGW for now)
Found Python: C:/Users/Win10/AppData/Local/Programs/Python/Python39/python.exe (found suitable version "3.9.5", minimum required is "3.9.5") found components: Interpreter Development Development.Module Development.Embed
Configuring done

10
Software / Re: Compiler errors involving Python
« on: April 07, 2023, 08:33:17 PM »
Did you try to re-run the cmake configure step? This is where the include paths are set.

11
Software / Re: Compiler errors involving Python
« on: April 07, 2023, 02:13:08 PM »
You should install 64-bit program versions.

I'm not sure why you are getting errors at linking stage. Do you have multiple Python versions installed? If so, remove other versions. Check if Python lib folder is added to the Windows PATH variable and try to build again from a clean build folder.

If you are still getting errors, please provide complete build log.

12
Software / Re: Compiler errors involving Python
« on: April 04, 2023, 11:31:35 AM »
Hi episense,

Thanks for reporting the problem.

Python API compilation was tested working with Python version is 3.9.5. I have not tested compilation with later Python versions.

A similar problem with Python 3.11 and pybind11 was reported here: https://github.com/pybind/pybind11/discussions/4333.  According to this report, It looks like some changes were introduced in Python version 3.11 that prevent successful compilation. I will need to update the version of pybind11 included in the ScopeFun source code.

Meanwhile, could you try to use the Python version 3.9.5 for compiling? If you require Python version 3.11.2 for some specific reason, please also let me know.

13
ScopeFun Q&A / Re: Tutorial on Custom File with Hardware Generator
« on: November 28, 2022, 07:51:44 AM »
Hi,

are you asking for tutorial regarding the digital pattern generator or AWG generator? What specifically do you mean by burst option? Both analog and digital generators always repeat the pattern at the chosen frequency.

Example files for analog/digital generator are provided in the <install_dir>/data/signal folder.

14
Firmware / Re: AWG Trigger not working
« on: June 22, 2022, 10:45:13 PM »
What do you mean by not triggered properly? Could you provide instructions on how to reproduce the problem?

15
Software / Re: Compiling on Ubuntu 20.04 Armv8
« on: April 20, 2022, 07:56:27 AM »
I haven't tried to compile for ARM, I'm not sure what needs to be changed to make it work.

What is the output of configure step after you replaced the config.guess file?

Pages: [1] 2 3 ... 10