03-16-2007 04:12 PM
03-16-2007 05:27 PM
Michelle,
I'm assuming you are using DAQmx (?).
If you are not changing the waveform shape, just the speed, there is a DAQmx Timing property node. One of the properties is SampClk.Rate. I have limited experience with it, but you might be able to use it to change the time between samples so that the waveform appears faster/slower. Let me know if this doesn't work.
03-19-2007 03:14 PM
Michelle,
Since you want to be able to vary the amplitude and frequency independently, I assume you have two sets of controls or inputs?
Why not just use the boolean to control a case structure, the true case routes one pair of Freq. and Amp. to the square wave generator, and the false case routes the other pair to the generator? In the simplest case, you would have a constant of 100kHz in one case, and a constant of 10kHz in the other, easily selectable.
03-19-2007 07:02 PM
03-20-2007 08:19 AM
Thanks to the three of you for the suggestions. I started trying a few of them, and then realized that what I had already built will work pretty well to update the frequency. I didn't realize that it would update the waveform in "run" mode -- I thought it would only do that in "run continuously" -- so I've found that I can change the frequency of the waveform by doing that. This doesn't allow me to change the frequency and the amplitude simultaneously, but I'm not sure yet whether or not I will need to do that -- I so will probably go ahead with the experiments I need to do with this set-up, then modify it if I find that I need to control both frequency and amplitude simultaneously.
Thanks for your help!
M.