DRS4 Forum
  DRS4 Discussion Forum  Not logged in ELOG logo
Entry  Wed Jul 14 14:55:09 2021, Mehrpad Monajem, C code to read the 4 channel with external trigger 
    Reply  Mon Aug 9 12:50:31 2021, Stefan Ritt, C code to read the 4 channel with external trigger 
       Reply  Tue Aug 10 13:57:09 2021, Mehrpad Monajem, C code to read the 4 channel with external trigger 
Message ID: 829     Entry time: Wed Jul 14 14:55:09 2021     Reply to this: 830
Author: Mehrpad Monajem 
Subject: C code to read the 4 channel with external trigger 

Hi there,

Recently I bought a 5GSPS evaluation board with 2048 sampling points.
I want to read 4 inputs of the evaluation bord ar 5 GSPS or 2.5GSP and use an external trigger.
I've checked your website and download drs-5.0.5 which contains the source code in C. It seems that the file drs_exam.cpp can do what I am looking for.
So far I could make and compile the project in Linux Ubuntu, but I couldn't compile it in Windows 10.  I've used Cygwin64 to compile the project in windows 10.

I have the following questions:

1- Since I only need to compile the drs_exam.cpp file, could please help me with how can I compile it directly(without making the entire project). Or tell me which version of Wxwidget and libusb I have to install.

2- If you have any sample code that can read 4 inputs with an external trigger, please tell me where can I find it.

In the end, I want to write a wrapper on this C file(which returns digitized data) and run it from my python program. Thank you in advance.
Best regards,
Mehrpad

 

ELOG V3.1.4-80633ba