File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed
Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 2727%
2828% *See also:* <matlab:doc('icdevice') |icdevice|> | <matlab:doc('instrument/invoke') |invoke|>
2929%
30- % *Copyright:* © 2020 Pico Technology Ltd. See LICENSE file for terms.
30+ % *Copyright:* © 2020-2021 Pico Technology Ltd. See LICENSE file for terms.
3131
3232%% Suggested Input Settings
3333
8383disp(' Device Resolution set to 10 bits' )
8484
8585%% Enable Channel A + B
86+ % Disable other channels
87+ for i = (0 : 7 )
88+ try
89+ [status .setChannelOff ] = invoke(ps6000aDeviceObj , ' ps6000aSetChannelOff' , i );
90+ catch
91+
92+ end
93+ end
94+
95+ for j = (128 : 1 : 131 )
96+ try
97+ [status .turnDigitalPortOff ] = invoke(ps6000aDeviceObj , ' ps6000aDigitalPortOff' ,j );
98+ catch
99+ end
100+ end
101+
86102% Enable channels A + B with +-5 V range with DC coupling and full bandwidth
87103
88104channelA = ps6000aEnumInfo .enPicoChannel .PICO_CHANNEL_A ;
97113
98114disp(' Channels A and B set' )
99115
100- % Disable all other channels
101- for i = (2 : 7 )
102- try
103- [status .setChannelOff ] = invoke(ps6000aDeviceObj , ' ps6000aSetChannelOff' , i );
104- catch
105-
106- end
107- end
108-
109- disp(' Remaining Channels disabled' )
110-
111116%% Set Simple Trigger
112117
113118enable = 1 ;
You can’t perform that action at this time.
0 commit comments