Hello Friends.
Please help me out. I have Agillent E4438C instrument and try to programm it.
This is code snippet in matlab lang.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[status, status_description] = agt_sendcommand(io,'SOURce1:DATA:VOLatile:CLEar');
[status, status_description] = agt_sendcommand(io, 'SOURce:FREQuency 9978600');
[status, status_description] = agt_sendcommand(io, 'POWer -20');
[status, status_description] = agt_waveformload(io, IQData, 'agtsample', 96000, 'play', 'no_normscale', Markers);
[ status, status_description ] = agt_sendcommand( io, 'OUTPut:STATe ON' );
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
But after this , instrument begin to play waveform indefinitely , by circle.
My question is -> How I can play waveform once????????? How I can tell to the instrument that after playing waveform it must STOP?????
Edited by: gopyan on May 19, 2013 4:04 AM
Please help me out. I have Agillent E4438C instrument and try to programm it.
This is code snippet in matlab lang.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
[status, status_description] = agt_sendcommand(io,'SOURce1:DATA:VOLatile:CLEar');
[status, status_description] = agt_sendcommand(io, 'SOURce:FREQuency 9978600');
[status, status_description] = agt_sendcommand(io, 'POWer -20');
[status, status_description] = agt_waveformload(io, IQData, 'agtsample', 96000, 'play', 'no_normscale', Markers);
[ status, status_description ] = agt_sendcommand( io, 'OUTPut:STATe ON' );
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
But after this , instrument begin to play waveform indefinitely , by circle.
My question is -> How I can play waveform once????????? How I can tell to the instrument that after playing waveform it must STOP?????
Edited by: gopyan on May 19, 2013 4:04 AM
This can be done by setting:
Trigger Type to Single
Trigger Source to Key, Ext or Bus
Key – use front panel trigger key
Ext – apply an external TTL/CMOS trigger signal
Bus – send SCPI command “*TRG”
Setting the trigger type to Single will play the waveform once per trigger – when triggered the waveform plays once then awaits another trigger.
The default is continuous - which means once the ARB is turned on the waveform plays indefinitely.
Once Trigger Type is set to Single, you must choose a Trigger Source – from one of the above three.
Here is an example of setting it up for Single Bus trigger:
Status, status_description = agt_sendcommand(io,’SOURce:RADio:ARB:TRIGger:TYPE SINGle’);
Status, status_description = agt_sendcommand(io,’SOURce:RADio::ARB:TRIGger:SOURce BUS’);
Status, status_description = agt_sendcommand(io,’SOURce1:DATA:VOLatile:CLEar’);
Status, status_description = agt_sendcommand(io,’SOURce:FREQuency 9978600’);
Status, status_description = agt_sendcommand(io,’POWer -20’);
Status, status_description = agt_waveformload(io,IQData,’agtsample’,96000,’play’,’no_normscale’,Markers);
Status, status_description = agt_sendcommand(io,’OUTput:STATe ON’);
Status, status_description = agt_sendcommand(io,’*TRG’);
The above will cause the waveform to play through once. Another *TRG command would be needed to play again.
More information on ARB triggering can be found at the following:
http://cp.literature.agilent.com/litweb/pdf/N5180-90004.pdf
Regards -