Author Topic: how arbitray waveforms are generated  (Read 4180 times)

0 Members and 1 Guest are viewing this topic.

Online nfmax

  • Super Contributor
  • ***
  • Posts: 1598
  • Country: gb
Re: how arbitray waveforms are generated
« Reply #25 on: November 24, 2019, 05:41:13 pm »
AWGs produce periodic signals, at least the few I've played with did. The shape of a cycle is arbitrary but the cycle plays repeatedly as the selected frequency. I don't actually know what people typically use them for, other than playing around I never found a need for anything other than the usual sine, square and triangle waves.
Not necessarily. You can run in 'triggered burst' mode where an external pulse causes the waveform to play, either just once or for a programmed number of repeats. Recently, I have been using this to play shaped tone bursts, designed using Matlab to have a specified bandwidth, duration, and autocorrelation function, into an ultrasonic transducer. This is what ARBs really shine at.

The waveforms are only a few hundred points long. I'm using an Agilent 33522B which lets you set the waveform sample rate to whatever you want (50 Msps in my case) while interpolating up the actual, fixed DAC sample rate of 250 Msps using a digital filter in the internal FPGA.
 
The following users thanked this post: ant17

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9931
  • Country: us
Re: how arbitray waveforms are generated
« Reply #26 on: November 24, 2019, 06:12:28 pm »
At some point, generating the waveform is like a side issue to all of the surrounding features.  A true AWG can do a lot of really neat things.
On the low end, I built a Halloween animation that was simply a skeleton rocking in a chair while snoring.  The sound effect was derived from a .wav file that I ripped from somewhere and played by a PIC with an R-2R DAC.  It worked really well.  It's been a long time, I don't remember how I got from .wav to discrete samples but it was easy, whatever is was.
 
The following users thanked this post: ant17

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: how arbitray waveforms are generated
« Reply #27 on: November 24, 2019, 06:14:40 pm »
A .wav file is nothing more than discrete samples with a header so it's not hard to do.
 
The following users thanked this post: ant17

Offline joeqsmith

  • Super Contributor
  • ***
  • Posts: 11815
  • Country: us
Re: how arbitray waveforms are generated
« Reply #28 on: November 24, 2019, 06:39:24 pm »

Fun times.   I constructed an engine simulator and needed to have different waveforms for the various sensors.  I wanted to be able to control the frequency as well as AM and FM modulate so I used an FPGA to do everything.

I like analog computing and simulating the suspension of a vehicle (at least one front tire) is a classic problem since it is essentially a mass-spring-damper problem and those are well understood.  But what if the ground under the tire contains a chuck-hole?  I have toyed with the idea of using an AWG to generate the surface.  I could do this quite easily with the Analog Discovery 2.  I could even model those nefarious speed bumps!

Other than sheer laziness, I don't know why I haven't done it yet.

AWGs could be a lot of fun to play with but I'm just guessing that the frequency is going to be a whole lot less than 400 MHz.  For my suspension project, even the 12 MHz bandwidth of the Analog Discover 2 is FAR more than required.  Nothing on the chassis is working in microsecond time scales.  If it does, I guess we move to Euler's Method.

I need sub 1 MHz for the simulator.   I will collect data off the real setup and feed that into the simulator.   It was a fun and useful project.  Video showing the basics.   
https://youtu.be/q_89qoFMivg?list=PLZSS2ajxhiQBvWvqMVLdRQMjGofKpQUJr&t=2202 

It's common to think about repetitive waveforms but that doesn't have to be the case for an 'arbitrary' waveform.  The waveform will repeat but the experiment may be over before it does.

True.  Running a test right now doing just that.   

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9931
  • Country: us
Re: how arbitray waveforms are generated
« Reply #29 on: November 24, 2019, 09:09:48 pm »
A .wav file is nothing more than discrete samples with a header so it's not hard to do.

Something along the lines of 'dump the header' and 'keep the samples'.  It's been about 15 years and I'm getting old...
 
The following users thanked this post: ant17

Offline ant17Topic starter

  • Regular Contributor
  • *
  • Posts: 95
Re: how arbitray waveforms are generated
« Reply #30 on: November 24, 2019, 09:17:21 pm »
hi guys thanks so much for all input every body has contributed. i feel like i have  been flooded with information i am really going to have to take my time in reading all carefully so thanks so much to all who have contributed to this discussion thanks after i have read it and understood it i will post any questions i have thanks again
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9931
  • Country: us
Re: how arbitray waveforms are generated
« Reply #31 on: November 24, 2019, 09:37:14 pm »

I need sub 1 MHz for the simulator.   I will collect data off the real setup and feed that into the simulator.   It was a fun and useful project.  Video showing the basics.   
https://youtu.be/q_89qoFMivg?list=PLZSS2ajxhiQBvWvqMVLdRQMjGofKpQUJr&t=2202 


Interesting project and very well done!
 
The following users thanked this post: joeqsmith

Offline ant17Topic starter

  • Regular Contributor
  • *
  • Posts: 95
Re: how arbitray waveforms are generated
« Reply #32 on: November 25, 2019, 05:12:36 am »
hi guys thanks for all your input cany anyone suggest fpga development board to get experimenting i was thinking a zynq 7000 series fpga development board or other suggested developments with most room to experiment with arbitrary waves
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: how arbitray waveforms are generated
« Reply #33 on: November 25, 2019, 08:17:49 pm »
It doesn't really matter, any FPGA will get you started, you can go a long way before you start pushing the performance envelope.

How much experience do you have with FPGA development? To say the learning curve is steep would be an understatement.
 

Offline ant17Topic starter

  • Regular Contributor
  • *
  • Posts: 95
Re: how arbitray waveforms are generated
« Reply #34 on: November 25, 2019, 09:38:31 pm »
i have had experience with with a lattice semiconuductor PLD development board it was just a programmable logic device.programmed with hardware description language made at a basic electronics school, about 20 years ago not a fpga so i am a novice.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: how arbitray waveforms are generated
« Reply #35 on: November 25, 2019, 10:33:36 pm »
Well that's more than most. Either way first step is start learning either VHDL or Verilog, the FPGA choice isn't too important until you have a working prototype.
 
The following users thanked this post: ant17

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9931
  • Country: us
Re: how arbitray waveforms are generated
« Reply #36 on: November 25, 2019, 10:58:34 pm »
You might check in over at NandLand.com  The tutorials are excellent and he offers a reasonably priced FPGA board for his projects.
Notice that there are tutorials in both VHDL and Verilog.
 
The following users thanked this post: ant17

Offline ant17Topic starter

  • Regular Contributor
  • *
  • Posts: 95
Re: how arbitray waveforms are generated
« Reply #37 on: November 25, 2019, 11:43:25 pm »
thank you
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf