berguenstein

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. Hi there, Until here, I've done quite a few things, with the magnificient help of attila. I've done a lot a threads that can use the AD2 to record the analog inputs, or the digital inputs, that can configure the analog outputs or the digital outputs. When I run all of those threads together, it works perfectly fine (except for the tick of my PC, that doesn't allow me to be really fast with the digital outputs, but it's not a big problem for the moment). And then, the UART appeared. I have to say, it works great. The problem is with the UART and the digital outputs. When both are asked (for example logic '1' to DIO 0 and send "This is just a simple test to know if everything works fine" on the Tx at the <<same>> time, the DIO will wait for the end of the UART Transmit). I've tested with with another configuration for the digital output (pulse at 1kHz), and the AD2 stops the pulse when the UART appears. Is it normal or do I do something wrong? Thanks for your help Marc
  2. Hi @attila Thanks a lot! It works well :D Have a nice day
  3. Hi, I'm trying to use the UART of my Analog Discovery 2 in python. I've had a look at the example and just ran it. At first, I thought it worked. But then I realized it was okay only for the first frame. After increasing the sleeping before the print (see the pics just under), the values are more often correct, but there's still a lot of unexpected results. (see the pics just under ). The thing is, when I use Waveforms, it works(see the pic just under). Also I thought of a problem with the SDK, even if I don't really think so. Could someone help me? Thanks, Marc
  4. Hi @attila Thank you, unfortunately that's what I thought :') Kind Regards
  5. Hi, I'd like to update my digital pins of the Analog Discovery 2 in quite a "fastest" time (1ms for example). The problem is, with a python script, the time let by the kernel is approximately 15 ms. That's why I ask it there, is there a way to programm it with a sort of a script that would be faster than 15 ms to adapt the output (in a non-regular way, a pulse wouldn't work)? Thanks for the time spent for help, Marc
  6. Hi @kilian987654321 I'm kind of doing this, but for all the GPIO (analog in, analog out, digital in and digital out). The way I did it is quite in the thinking of splitting your code in different parts (in your way, I'd see 3 parts): main code that will create 2 objects (1 analog in and 1 analog out) AnalogIn class, that will just acquire the datas AnalogOut class, that will play the imported signal Of course, the two classes must have the reference of your device, that could be define in the main code. I will upload in a few minutes the basic code I'd see for you, Hope it helped, Marc digilent_analyzer_tester.py thread_analog_out.py thread_analog_record.py