Sine wave generator resets at random times

Placement, modules, components and accessories; the ones that exist and the the nice-to-be's
Post Reply
barrowes
Posts: 4
Joined: Thu Feb 27, 2020 2:29 pm

Sine wave generator resets at random times

Post by barrowes » Fri Mar 03, 2023 6:58 pm

When I set the red pitayas output to be a sine wave at around 260 kHz, it seems to work, but when I sample that sinewave with channel 1, for example, I get the sine wave but every now and then the sine wave output seems to reset itself in a glitch that ruins the phase right in the middle of the 16 K buffer that I acquire. Please see the attached Matlab plots, and pic of matlab code. Tried to attach pictures but it says the board attachment quota has been reached.

https://drive.google.com/file/d/1w_O5nK ... sp=sharing

https://drive.google.com/file/d/1w_HFr_ ... sp=sharing

https://drive.google.com/file/d/1wlUKfX ... sp=sharing

Is there a way I can set the sine wave output or do something to get around this glitch?

User avatar
redpitaya
Site Admin
Posts: 880
Joined: Wed Mar 26, 2014 7:04 pm

Re: Sine wave generator resets at random times

Post by redpitaya » Mon Mar 06, 2023 11:37 am

Dear Barrowes,

You may not have enough time between ACQ:START and ACQ:TRIG commands (Red Pitaya needs time to acquire a full buffer, which might cause issues when requesting data too quickly, especially on higher decimations - you might get old data values).

Also, keep in mind that the triggering moment is at sample number 8192. Maybe use ACQ:TRIG CH1_PE or CH1_NE together with an ACQ:TRIG:LEV 0.2 (0.2 Volts or similar).

barrowes
Posts: 4
Joined: Thu Feb 27, 2020 2:29 pm

Re: Sine wave generator resets at random times

Post by barrowes » Fri Mar 10, 2023 1:22 pm

It looks like this issue has gone away with a different red pitaya. We do need a little bit of time in between start and trigger, but that does not seem to be the problem with this data-transfer glitch.

For now, it looks like the problem is solved with a different red pitaya, but if it crops back up I will post again.

User avatar
redpitaya
Site Admin
Posts: 880
Joined: Wed Mar 26, 2014 7:04 pm

Re: Sine wave generator resets at random times

Post by redpitaya » Mon Mar 20, 2023 10:01 am

This should nt be happening, Try using the same card as before and after that, the same power supply as before to identify the source. The same for the Ethernet cable..

lozano
Posts: 1
Joined: Thu Mar 23, 2023 7:39 pm

Re: Sine wave generator resets at random times

Post by lozano » Thu Mar 23, 2023 9:52 pm

Hi Red Pitaya, I work with Barrowes on the project where we are getting this glitch issue. After some time, this issue has come back again. It might have never been resolved in the first place. I might have not noticed if it occurred less at that time. I have tried the suggestions noted about adding more time and changing the trigger level but doesn't seem to work. I also have tried other test in this order.
  • Switched Red Pitaya boards
  • Switched from a wireless to an ethernet connection
  • One by one took out other electrical components in our system, mainly amplifiers for our coils. Until there was just 2 coils and the board
  • Switch from input 1 to input 2, for the sampling
  • Connected "out 1" directly to both "input 1" and "input 2" respectively
  • Changed the power source from a USB powerbank to the supplied wall outlet power source
I still get the glitch issue even after trying all these tests. It varies from only seeing it after every couple shots to almost every shot. Also, sometimes the glitch can only happen one time during the waveform to multiple/several times. I'm stumped on what may be causing it. My next steps are to try other red pitaya boards that we have, to see if it occurs multiple boards. I will also try communicating to the board with Python instead of Matlab, which I've been using this whole time. Very perplexed that this issue is still occurring even when I connected the outputs directly to the inputs. Is there any more insight that you may have on why we are getting this issue?

Note, I do have the boards updated to the newest version of "1.04-28". The OS specifically for the STEMlab 125-14 & STEMlab 125-10 boards.

User avatar
redpitaya
Site Admin
Posts: 880
Joined: Wed Mar 26, 2014 7:04 pm

Re: Sine wave generator resets at random times

Post by redpitaya » Fri Mar 24, 2023 9:49 am

lozano wrote:
Thu Mar 23, 2023 9:52 pm
Hi Red Pitaya, I work with Barrowes on the project where we are getting this glitch issue. After some time, this issue has come back again. It might have never been resolved in the first place. I might have not noticed if it occurred less at that time. I have tried the suggestions noted about adding more time and changing the trigger level but doesn't seem to work. I also have tried other test in this order.
  • Switched Red Pitaya boards
  • Switched from a wireless to an ethernet connection
  • One by one took out other electrical components in our system, mainly amplifiers for our coils. Until there was just 2 coils and the board
  • Switch from input 1 to input 2, for the sampling
  • Connected "out 1" directly to both "input 1" and "input 2" respectively
  • Changed the power source from a USB powerbank to the supplied wall outlet power source
I still get the glitch issue even after trying all these tests. It varies from only seeing it after every couple shots to almost every shot. Also, sometimes the glitch can only happen one time during the waveform to multiple/several times. I'm stumped on what may be causing it. My next steps are to try other red pitaya boards that we have, to see if it occurs multiple boards. I will also try communicating to the board with Python instead of Matlab, which I've been using this whole time. Very perplexed that this issue is still occurring even when I connected the outputs directly to the inputs. Is there any more insight that you may have on why we are getting this issue?

Note, I do have the boards updated to the newest version of "1.04-28". The OS specifically for the STEMlab 125-14 & STEMlab 125-10 boards.
Thank you for this additional information, please contact our support email and mention this thread.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 12 guests