diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2015-08-11 16:40:21 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2015-08-11 16:40:21 -0400 |
commit | b2df59d7a6de9ed618b5b314cfca728df6a1a486 (patch) | |
tree | f368df328165e284719e3446e120ed6ee2d6e17c /E440a_take_data.m | |
parent | 9c44d3bd16d68c28347532689494140c4c27adcf (diff) | |
download | linux-matlab-gpib-b2df59d7a6de9ed618b5b314cfca728df6a1a486.tar.gz linux-matlab-gpib-b2df59d7a6de9ed618b5b314cfca728df6a1a486.zip |
Refer to SA as it is done in gpib.conf
Diffstat (limited to 'E440a_take_data.m')
-rw-r--r-- | E440a_take_data.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/E440a_take_data.m b/E440a_take_data.m index 9ba94d8..e963222 100644 --- a/E440a_take_data.m +++ b/E440a_take_data.m @@ -50,7 +50,7 @@ run_number_file = 'Z:\qol_comp_data\data\autofile\runnum.dat'; %obj1.InputBufferSize = bufSize;
%obj1.OutputBufferSize = bufSize;
-obj1=lgpib('SAagilent')
+obj1=lgpib('Agilent_E4405b')
%% Connect to instrument object, obj1.
%fopen(obj1);
disp('--------------------')
@@ -66,6 +66,8 @@ disp(horzcat('Connected to ', device_string)); % _data_ = query(obj1, '_command_');
disp('Reading traces...');
%% Read traces
+% switch to ASCII trace transfer
+write(obj1, ':FORMAT:TRACE:DATA ASCII');
tr1_string = query(obj1, ':TRACE:DATA? TRACE1;');
tr2_string = query(obj1, ':TRACE:DATA? TRACE2;');
tr3_string = query(obj1, ':TRACE:DATA? TRACE3;');
|