Skip to content

Commit 4cdf45e

Browse files
author
neil.hamilton
committed
Initial parts of PS6000A_ID_Streaming_Example.m
1 parent 348e215 commit 4cdf45e

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

examples/PS6000A_ID_Block_Example.m

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
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

@@ -83,6 +83,22 @@
8383
disp('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

88104
channelA = ps6000aEnumInfo.enPicoChannel.PICO_CHANNEL_A;
@@ -97,17 +113,6 @@
97113

98114
disp('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

113118
enable = 1;

0 commit comments

Comments
 (0)