Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

AFG1022 ArbExpress Comunication

Post Reply
Kdenis
Posts: 7
Joined: November 16th, 2016, 1:15 am
Country: Israel

AFG1022 ArbExpress Comunication

Post by Kdenis » November 17th, 2016, 3:47 am

Hello,

I've recently began to work with AFG1022. I need to develop my own signal for project purposes. To do that I used ArbExpress version 3.1.
The code that was written in equation editor looks exactly like that:

range(0,10us) # 10us of 0 volts
int(0)

range(10us,160us) # 150us of 5 volts
int(5)

range(160us,310us) # 150us of 0 volts
int(0)

range(310us,460us) # 150us of -5 volts
int(-5)

range(460us,470us) # 10us of 0 volts
int(0)


Next steps were:
1. chose AFG3011
2. save
3. ok
4. the signal appears at WaveBook window of ArbExpress
5. save as AFG Tfw (*.tfw) on USB stick
6. connect USB stick to AFG1022
7. mod--burst--#cycles infinite
8. arb--file browse
9. choosing the siganl, save it, and then perform call out
10. but on the scope I see only one pulse that is not exactly what I expect, and one cycle only

So, can you help to figure out how can I get infinite number of cycles, or may be I can set deifned number of cycles in equation editor?

Will D
Tektronix Applications
Tektronix Applications
Posts: 40
Joined: August 3rd, 2016, 10:11 am
Country: United States

Re: AFG1022 ArbExpress Comunication

Post by Will D » November 17th, 2016, 1:14 pm

Hello,

Does the Arb waveform on the AFG screen look complete? It may be the case that the waveform you made with ArbExpress exceeds the record length or sample rate characteristics allowable by your AFG. In particular, 8k points, 125MS/s. If your AFG is not outputting the entire waveform, this is usually the case. Make sure that in the equation editor of ArbExpress the Number of Points and Sample Rate are less than or equal to the values stated above. The waveform that I made with your code has 5874 points at a sample rate of 12.5MS/s.

If this isn't your error, let me know and I'll look into the other settings on the AFG.

Kdenis
Posts: 7
Joined: November 16th, 2016, 1:15 am
Country: Israel

Re: AFG1022 ArbExpress Comunication

Post by Kdenis » November 20th, 2016, 1:33 am

Hello,

It works!
Thank you a lot!

Kdenis
Posts: 7
Joined: November 16th, 2016, 1:15 am
Country: Israel

Re: AFG1022 ArbExpress Comunication

Post by Kdenis » April 20th, 2017, 5:22 am

Hello,

I wrote the following code in equation editor:

range(0,90us) # 90us of 0.4 volts
int(0.4)

range(90us,180us) # 90us of -0.4 volts
int(-0.4)


Number of points: 50k
Equivalent sampling rate: 250MS/s

Compiled it, but I don't see the +/-0.4 volts on the plot. The plot looks like continuous zero line.
What should I do?

Kdenis
Posts: 7
Joined: November 16th, 2016, 1:15 am
Country: Israel

Re: AFG1022 ArbExpress Comunication

Post by Kdenis » April 20th, 2017, 8:09 am

Hi,
One more question.
My final code looks like this:

range(0,90us) # 90us of 0.4 volts
max(0.4)
range(90us,180us) # 90us of -0.4 volts
min(-0.4)
range(180us,270us) # 90us of 0.4 volts
max(0.8)
range(270us,360us) # 90us of -0.4 volts
min(-0.8)
range(360us,450us) # 90us of 0.4 volts
max(1.2)
range(450us,540us) # 90us of -0.4 volts
min(-1.2)
range(540us,630us) # 90us of 0.4 volts
max(1.6)
range(630us,720us) # 90us of -0.4 volts
min(-1.6)
range(720us,810us) # 90us of 0.4 volts
max(1.6)
range(810us,900us) # 90us of -0.4 volts
min(-1.6)
range(900us,990us) # 90us of 0.4 volts
max(1.6)
range(990us,1080us) # 90us of -0.4 volts
min(-1.6)
range(1080us,1170us) # 90us of 0.4 volts
max(1.6)
range(1170us,1260us) # 90us of -0.4 volts
min(-1.6)
range(1260us,1350us) # 90us of 0.4 volts
max(1.6)
range(1350us,1440us) # 90us of -0.4 volts
min(-1.6)
range(1440us,1530us) # 90us of 0.4 volts
max(1.6)
range(1530us,1620us) # 90us of -0.4 volts
min(-1.6)

#10th cycle
range(1620us,1710us) # 90us of 0.4 volts
max(1.6)

range(1710us,1800us) # 90us of -0.4 volts
min(-1.6)

#11th cycle
range(1800us,1890us) # 90us of 0.4 volts
max(1.6)

range(1890us,1980us) # 90us of -0.4 volts
min(-1.6)

#12th cycle
range(1980us,2070us) # 90us of 0.4 volts
max(1.6)

range(2070us,2160us) # 90us of -0.4 volts
min(-1.6)

#13th cycle
range(2160us,2250us) # 90us of 0.4 volts
max(1.6)

range(2250us,2340us) # 90us of -0.4 volts
min(-1.2)

#14th cycle
range(2340us,2430us) # 90us of 0.4 volts
max(1.2)

range(2430us,2520us) # 90us of -0.4 volts
min(-0.8)

#15th cycle
range(2520us,2610us) # 90us of 0.4 volts
max(0.8)

range(2610us,2700us) # 90us of -0.4 volts
min(-0.4)

#16th cycle
range(2700us,2790us) # 90us of 0.4 volts
max(0.4)

#17th cycle
range(2790us,4185us) # 90us of 0.4 volts
int(0)


At the equation editor I set:
Number of points: 100k
Equivalent sampling rate: 20MS/s

Next steps were:
1. chose AFG3011
2. save
3. ok
4. the signal appears at WaveBook window of ArbExpress
5. save as AFG Tfw (*.tfw) on USB stick
6. connect USB stick to AFG1022
7. mod--burst--#cycles infinite
8. arb--file browse
9. choosing the signal, save it, and then perform call out

However, function generator doesn't show required signal, but the previous one. I checked its output on scope, and as expected
the signal was wrong there too.

Can you help me with outputting the signal, please?

Will D
Tektronix Applications
Tektronix Applications
Posts: 40
Joined: August 3rd, 2016, 10:11 am
Country: United States

Re: AFG1022 ArbExpress Comunication

Post by Will D » April 20th, 2017, 11:14 am

Hello,

First, int(0.4) is indeed 0V since the closest Integer is 0. Instead, write your voltages as simple numbers so like:

Code: Select all

range(0,90us) # 90us of 0.4 volts
0.4

range(90us,180us) # 90us of -0.4 volts
-0.4
Second, note that your AFG1022 has a record length of 8k at maximum. Change your number of points and sample rate to give you the time needed at 8k samples or less (similiar to your initial problem). Let me know if that fixes things.

Kdenis
Posts: 7
Joined: November 16th, 2016, 1:15 am
Country: Israel

Re: AFG1022 ArbExpress Comunication

Post by Kdenis » April 21st, 2017, 7:44 am

Hi,
so the new code looks like that:
range(0,90us) # 90us of 0.4 volts
0.4
range(90us,180us) # 90us of -0.4 volts
-0.4
range(180us,270us)
0.8
range(270us,360us)
-0.8
range(360us,450us)
1.2
range(450us,540us)
-1.2
range(540us,630us)
1.6
range(630us,720us)
-1.6
range(720us,810us)
1.6
range(810us,900us)
-1.6
range(900us,990us)
1.6
range(990us,1080us)
-1.6
range(1080us,1170us)
1.6
range(1170us,1260us)
-1.6
range(1260us,1350us)
1.6
range(1350us,1440us)
-1.6
range(1440us,1530us)
1.6
range(1530us,1620us)
-1.6

#10th cycle
range(1620us,1710us)
1.6

range(1710us,1800us)
-1.6

#11th cycle
range(1800us,1890us)
1.6

range(1890us,1980us)
-1.6

#12th cycle
range(1980us,2070us)
1.6

range(2070us,2160us)
-1.6

#13th cycle
range(2160us,2250us)
1.6

range(2250us,2340us)
-1.2

#14th cycle
range(2340us,2430us)
1.2

range(2430us,2520us)
-0.8

#15th cycle
range(2520us,2610us)
0.8

range(2610us,2700us)
-0.4

#16th cycle
range(2700us,2790us)
0.4

#17th cycle
range(2790us,4185us)
0

At the equation editor I set:
Number of points: 7k
Equivalent sampling rate: 1.2MS/s

On the equation editor display the signal looks good, but when I upload it to function generator,
signal that appears on the screen looks different and remind a noise rather than coded signal

Will D
Tektronix Applications
Tektronix Applications
Posts: 40
Joined: August 3rd, 2016, 10:11 am
Country: United States

Re: AFG1022 ArbExpress Comunication

Post by Will D » April 21st, 2017, 9:31 am

Does it look off on just the AFG screen or does it look unexpected when actually being output and measured? The display on the AFG1022 tends to not represent high detail waveforms well, so I wouldn't be surprised if it is just a display artifact.

Kdenis
Posts: 7
Joined: November 16th, 2016, 1:15 am
Country: Israel

Re: AFG1022 ArbExpress Comunication

Post by Kdenis » April 22nd, 2017, 11:55 pm

The signal looks unexpected when it being measured on scope, and also on the AFG display. However on arbexpress signals looks exactly as expected.

Kdenis
Posts: 7
Joined: November 16th, 2016, 1:15 am
Country: Israel

Re: AFG1022 ArbExpress Comunication

Post by Kdenis » April 27th, 2017, 4:47 am

Hello Will,
One more question.
The previous signal works good. There was another issue, equation editor in ArbExpress limits me by lines of the code. So I need to understand if I can write some kind of a loop in editor to save memory for additional lines.
Is there any techniques to write a loop there?

rkumar12
Posts: 1
Joined: September 8th, 2019, 10:18 pm
Country: India

Re: AFG1022 ArbExpress Comunication

Post by rkumar12 » September 8th, 2019, 11:37 pm

I was using twf file to call out the signal but no file is able to be seen in usb storage .can u please help me what could be solution regarding this. Is there any other software

Post Reply

Return to “AFG1000/2000/3000 series”

Who is online

Users browsing this forum: No registered users and 4 guests