Author Topic: Function generator frequency sync with an optical pulse  (Read 543 times)

0 Members and 1 Guest are viewing this topic.

Offline ash1204Topic starter

  • Newbie
  • Posts: 1
  • Country: gb
Function generator frequency sync with an optical pulse
« on: June 10, 2024, 12:35:13 pm »
Hello everyone,

I am quite new to using function generators. I am hoping someone can help me with this:

I am looking to give an external trigger of a pulse operating at 30 KHz to my function generator (Agilent 33250A). I want the function generator to provide an output of the same frequency as the external trigger.

So, I want the function generator's frequency to change automatically to match the input trigger's frequency.

I have two of the Agilent 33250A function generators. The output of one is connected to the trigger of the second. So, if I were to change the frequency of the first, this should automatically change the frequency of the second, and that should reflect on the oscilloscope.

Is this possible?
I have attempted this on several occasions, but cannot find a way to do this.
Can someone please help me with this?

Best regards,
Ash
 

Offline DTJ

  • Super Contributor
  • ***
  • Posts: 1006
  • Country: au
Re: Function generator frequency sync with an optical pulse
« Reply #1 on: June 10, 2024, 01:36:09 pm »
Get a freq counter and read the signal freq out via '232 then instruct your sig gen to output that frequ using '232?


 

Online joeqsmith

  • Super Contributor
  • ***
  • Posts: 11768
  • Country: us
Re: Function generator frequency sync with an optical pulse
« Reply #2 on: June 10, 2024, 01:46:46 pm »
I have not looked at the specs for your generator but would think it would be simple.  At 30kHz, I would set the generator for a single sweep (burst?) on the external trigger and output a 16.67us pulse.   You don't care about the duty cycle, which would obviously change but the frequency would match.   

Offline ConKbot

  • Super Contributor
  • ***
  • Posts: 1397
Re: Function generator frequency sync with an optical pulse
« Reply #3 on: June 10, 2024, 03:15:51 pm »
Set it up to do a "burst" of a single pulse, and trigger off the external trigger. Obviously this won't be a constant duty cycle, as the pulse width will be constant as the frequency varies, but if that's ok, it's all you need.
 

Offline Kleinstein

  • Super Contributor
  • ***
  • Posts: 14569
  • Country: de
Re: Function generator frequency sync with an optical pulse
« Reply #4 on: June 10, 2024, 04:51:11 pm »
Following an external function would be a kind of PLL function. This is not a functionality regularly found with function generators - more like an oddity. One may have a slight chance to find this with some old instruments, but not sure about that.

One may be able to create that function with an external PLL and a function generator that allows for a VCO mode. The VCO function is found with some older analog FGens from the 1980-1990s.
The external part would be a phase/frequency comparator (e.g. 74HC4046) and some loop filter. 
 

Offline 2N3055

  • Super Contributor
  • ***
  • Posts: 7032
  • Country: hr
Re: Function generator frequency sync with an optical pulse
« Reply #5 on: June 10, 2024, 06:11:31 pm »
Let's also not forget that any trigger input on general purpose AWG will have certain time delay from trigger to pulse emit.

Explaining better what is going on here would be useful.

This is classical case of having a problem, devising a plan with theoretical components ("what I need is some kind of tool that can do that and that") and then asking for help to solve newly created problem of fitting the solution into way of thinking that might not be optimum way of doing things.

Better way is to ask for help to solve the original problem by asking for help to devise solution to original problem itself.
Brainstorming, if you will. It always amazes me how different people come with simple but great solutions sometimes, all while completely different than what I myself would do..
 
So do you have optical pulses that you need to trigger a burst or a pattern of data from a signal source?
What are you doing with such triggered signal?
Those optical pulses repeat at roughly 30kHz. Optical pulses change repetition frequency, any you want to keep being locked to pulses. Do they change repetition interval from pulse to pulse and you want to follow the timing closely? Or optical pulses come at relatively steady 30kHz but you want to stay locked (synchronized) and what you really need is synchronised bursts but some continuous waveshape that is locked to source pulses?
How fast pulses change timing? How much timing is changed?

Etc etc...
 

Offline Njk

  • Frequent Contributor
  • **
  • Posts: 266
  • Country: ru
Re: Function generator frequency sync with an optical pulse
« Reply #6 on: June 10, 2024, 10:14:59 pm »
The VCO function is found with some older analog FGens from the 1980-1990s.
Although Agilent 33250A is not that old, perhaps it uses DC coupling on external input for FM (not clear from the manual)
 

Offline Lomax

  • Frequent Contributor
  • **
  • Posts: 582
  • Country: eu
  • Minimalist
Re: Function generator frequency sync with an optical pulse
« Reply #7 on: June 10, 2024, 10:51:26 pm »
What are you doing with such triggered signal?
I'm curious about this too.

I want the function generator to provide an output of the same frequency as the external trigger.
It doesn't sound like you need a function generator at all, since you already have the signal. If, for example, you want to convert the waveform, say from a square wave to a sine wave, there are simpler ways to do this using basic filters. Using a comparator (op-amp) much more can be done, such as modifying the duty cycle. Or if you really must generate a completely new signal, look at PLL circuits. Also, since the signal is just 30 kHz you could easily sample the frequency with a microcontroller which opens up a wealth of options.

P.S. You've surely thought of my suggestions above already, or you wouldn't be using kit that costs several times more than my entire lab to do what £5 of parts could do...
« Last Edit: June 10, 2024, 10:59:47 pm by Lomax »
 

Online PCB.Wiz

  • Super Contributor
  • ***
  • Posts: 1734
  • Country: au
Re: Function generator frequency sync with an optical pulse
« Reply #8 on: June 11, 2024, 03:57:53 am »
I am quite new to using function generators. I am hoping someone can help me with this:

I am looking to give an external trigger of a pulse operating at 30 KHz to my function generator (Agilent 33250A). I want the function generator to provide an output of the same frequency as the external trigger.
So, I want the function generator's frequency to change automatically to match the input trigger's frequency.

Over what range and to what precision ?  What output waveform do you need ?

Function generators/waveform generators expect to play back their memory at a certain defined speed.
The trigger can start that playback, but it cannot easily stretch it to fit the trigger speed.

An auto-stretch-to-fit feature would need a dedicated MCU design, or as someone hinted above, you could capture Fin, and then generate a new waveform dump on a PC host for each frequency change. That SW+ update would have a slew/tracking limit.

 

Offline Henrik_V

  • Regular Contributor
  • *
  • Posts: 158
  • Country: de
  • “ground” is a convenient fantasy
Re: Function generator frequency sync with an optical pulse
« Reply #9 on: June 13, 2024, 01:25:09 pm »
Your two Agilent 33250A generators have the ability to sync.
First choose one to be the master clock and use a 50 Ohm BNC cable from 10 MHz Ref out of your master to the 10 MHz Ref in of your slave.
Now the clocks run synchronised so if you change the frequncy on both to the same value (by 488 or 232)  and use the sync of one to trigger the second they generate synchronised. 
 
Greetings from Germany
Henrik

The number you have dialed is imaginary, please turn your phone 90° and dial again!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf