From b2df59d7a6de9ed618b5b314cfca728df6a1a486 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 11 Aug 2015 16:40:21 -0400 Subject: Refer to SA as it is done in gpib.conf --- E440a_take_data.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'E440a_take_data.m') 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;'); -- cgit v1.2.3