How To define a sine wave of different amplitude and frequency over a specific period of time
2 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone, I'm new to MATLAB and I need to produce a sine wave of different amplitude and frequency as follows. On the other hand I need my code to be readable by Agilent Waveform generator 33220A connected through VISA-USB. So, please guide me how can I write the correct form of the code compatible with this instrument
For 2 minues: A= 0.2 V and v= 10Hz, followed immediately by A=2V and v=5Hz for 2 hours the followed by A=0.5V and v=0.5Hz again for 5 minutes.
0 件のコメント
回答 (1 件)
Vinod
2016 年 1 月 16 日
Have a look here:
https://www.mathworks.com/company/newsletters/articles/downloading-a-custom-waveform-to-an-arbitrary-waveform-generator.html
One way you could modify this code to have loops that delay the next waveform based on tic/toc or cputime.
A more efficient way would be to use timers and callbacks to generate the different signal profiles.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Waveform Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!