Skip to content

Commit ede366c

Browse files
author
neil.hamilton
committed
Update ps6000a examples for digitiser channel ranges
1 parent 3ecb487 commit ede366c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

examples/PS6000A_ID_Block_Example.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
channelA = ps6000aEnumInfo.enPicoChannel.PICO_CHANNEL_A;
105105
channelB = ps6000aEnumInfo.enPicoChannel.PICO_CHANNEL_B;
106106
couplingDC = ps6000aEnumInfo.enPicoCoupling.PICO_DC;
107-
range = ps6000aEnumInfo.enPicoConnectProbeRange.PICO_X1_PROBE_5V;
107+
range = ps6000aEnumInfo.enPicoConnectProbeRange.PICO_X1_PROBE_500MV;
108108
bandwidth = ps6000aEnumInfo.enPicoBandwidthLimiter.PICO_BW_FULL;
109109

110110

@@ -117,7 +117,7 @@
117117

118118
enable = 1;
119119
source = channelA;
120-
threshold = 1000; %mV
120+
threshold = 100; %mV
121121
direction = ps6000aEnumInfo.enPicoThresholdDirection.PICO_RISING;
122122
delay = 0;
123123
autoTriggerMicroSeconds = 1000000; %us
@@ -216,7 +216,7 @@
216216
minValue = pMinValue.Value;
217217
maxValue = pMaxValue.Value;
218218

219-
voltageRange = 5000; %mV
219+
voltageRange = 500; %mV
220220

221221
bufferAMax = adc2mv(bufferAMax,voltageRange,double(maxValue));
222222
bufferBMax = adc2mv(bufferBMax,voltageRange,double(maxValue));

examples/PS6000A_ID_Rapid_Block_Example.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
channelA = ps6000aEnumInfo.enPicoChannel.PICO_CHANNEL_A;
105105
channelB = ps6000aEnumInfo.enPicoChannel.PICO_CHANNEL_B;
106106
couplingDC = ps6000aEnumInfo.enPicoCoupling.PICO_DC;
107-
range = ps6000aEnumInfo.enPicoConnectProbeRange.PICO_X1_PROBE_5V;
107+
range = ps6000aEnumInfo.enPicoConnectProbeRange.PICO_X1_PROBE_500MV;
108108
bandwidth = ps6000aEnumInfo.enPicoBandwidthLimiter.PICO_BW_FULL;
109109

110110

@@ -117,7 +117,7 @@
117117

118118
enable = 1;
119119
source = channelA;
120-
threshold = 1000; %mV
120+
threshold = 100; %mV
121121
direction = ps6000aEnumInfo.enPicoThresholdDirection.PICO_RISING;
122122
delay = 0;
123123
autoTriggerMicroSeconds = 1000000; %us
@@ -274,7 +274,7 @@
274274
minValue = pMinValue.Value;
275275
maxValue = pMaxValue.Value;
276276

277-
voltageRange = 5000; %mV
277+
voltageRange = 100; %mV
278278

279279
bufferAMax={};
280280
bufferBMax={};

examples/PS6000A_ID_Streaming_Example.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104
channelA = ps6000aEnumInfo.enPicoChannel.PICO_CHANNEL_A;
105105
couplingDC = ps6000aEnumInfo.enPicoCoupling.PICO_DC;
106-
range = ps6000aEnumInfo.enPicoConnectProbeRange.PICO_X1_PROBE_5V;
106+
range = ps6000aEnumInfo.enPicoConnectProbeRange.PICO_X1_PROBE_500MV;
107107
bandwidth = ps6000aEnumInfo.enPicoBandwidthLimiter.PICO_BW_FULL;
108108

109109

@@ -115,7 +115,7 @@
115115

116116
enable = 1;
117117
source = channelA;
118-
threshold = 1000; %mV
118+
threshold = 100; %mV
119119
direction = ps6000aEnumInfo.enPicoThresholdDirection.PICO_RISING;
120120
delay = 0;
121121
autoTriggerMicroSeconds = 1000000; %us
@@ -218,7 +218,7 @@
218218
minValue = pMinValue.Value;
219219
maxValue = pMaxValue.Value;
220220

221-
voltageRange = 5000; %mV
221+
voltageRange = 500; %mV
222222

223223
bufferA = adc2mv(bufferA,voltageRange,double(maxValue));
224224

0 commit comments

Comments
 (0)