AnsweredAssumed Answered

Using a Variable To Set a Amplitude (33120A with MATLAB)

Question asked by dieciduej on Mar 1, 2011
Latest reply on Mar 2, 2011 by dieciduej
I am trying to program a 33120A, with MATLAB, function generator to output a sine wave at different amplitudes as a test routine.  I am able to do it in a brute force method:
"
fprintf(funct_gen1, 'SOURCE:APPLY:SIN 10000, 0.6'); % Set the output to a Sine, 10kHz, 600mVpk-pk
"

Then I repeat the same line with a different amplitude and so on.

Is it possible to replace the manual entry, aka the 0.6, with a variable, let’s say volt_set, that refers to a table of all the amplitude setting?  That would make the code easier.  Thanks for any help.
JoeD  

Outcomes