AnsweredAssumed Answered

reg feeding arbitary waveform data to a 33250A

Question asked by LokeshSavadi on Jul 14, 2010
Latest reply on Jul 14, 2010 by LokeshSavadi
Dear All,
Could someone please explain the correct way to feed a arbitrary waveform data to the 33250A. To explain vividly, I have given a sample matlab code here through which I dumped a waveform data to a Text file and then fed it to the generator using Agilent waveform editor.
"%%%%%%%
x=linspace(0,2*pi,4*1024);
a = cos(50e3*x);
m=max(a);

a = a/m;
plot(a);
grid on;
fp = fopen('C:\Documents and Settings\Administrator\Desktop\lokesh\feedInput.txt','w');
fprintf(fp,'%f \n',a(1:4*1024-1));
fclose(fp);

"
Question:
1)As you see in the above program, I'm planning to feed a 4K point waveform data to the waveform generator. Is the way in which I have broken the points in X-axis correct?.(x=linspace(0,2*pi,4*1024+1))
2)Do note that when dumping the points to a text file, I'm taking only "0 to n-1 points" instead of "0 to n". Is it correct?

Regards,
lokesh  

Outcomes