Skip to content

Commit 4256f82

Browse files
author
neil.hamilton
committed
Add additional functions to picotech_ps6000a_generic.mdd for block capture
1 parent 3d4df22 commit 4256f82

File tree

1 file changed

+51
-4
lines changed

1 file changed

+51
-4
lines changed

picotech_ps6000a_generic.mdd

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,28 @@
326326
</Property>
327327
</PropertyInfo>
328328
<MethodInfo>
329+
<Method>
330+
<Name>ps6000aGetAdcLimits</Name>
331+
<Location>parent</Location>
332+
<CapabilityGroup>Base</CapabilityGroup>
333+
<Type>MCode</Type>
334+
<Code>
335+
<MCode>function status = ps6000aGetAdcLimits(obj, resolution, minValue, maxValue)
336+
% For group functions, OBJ is the group object. For
337+
% base device functions, OBJ is the device object.
338+
339+
status = calllib('ps6000a','ps6000aGetAdcLimits', obj.DriverData.unitHandle, resolution, minValue, maxValue);
340+
341+
if (status == PicoStatus.PICO_OK)
342+
343+
else
344+
345+
error('ps6000aGetAdcLimits: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
346+
347+
end</MCode>
348+
</Code>
349+
<Description/>
350+
</Method>
329351
<Method>
330352
<Name>ps6000aGetMinimumTimebaseStateless</Name>
331353
<Location>parent</Location>
@@ -359,14 +381,16 @@
359381
% For group functions, OBJ is the group object. For
360382
% base device functions, OBJ is the device object.
361383

362-
status = calllib('ps6000a','ps6000aGetValues',obj.DriverData.unitHandle,...
363-
startIndex, noOfSamples, downSampleRatio, downSampleRatioMode, segmentIndex, overflow)
364-
384+
385+
[status] = calllib('ps6000a','ps6000aGetValues',obj.DriverData.unitHandle,...
386+
startIndex, noOfSamples, downSampleRatio, downSampleRatioMode, segmentIndex, overflow);
387+
388+
365389
if (status == PicoStatus.PICO_OK)
366390

367391
else
368392

369-
error('ps6000aGetMinimumTimebaseStateless: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
393+
error('ps6000aGetValues: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
370394

371395
end</MCode>
372396
</Code>
@@ -488,6 +512,29 @@
488512

489513
error('ps6000aSetDataBuffer: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
490514

515+
end</MCode>
516+
</Code>
517+
<Description/>
518+
</Method>
519+
<Method>
520+
<Name>ps6000aSetDataBuffers</Name>
521+
<Location>parent</Location>
522+
<CapabilityGroup>Base</CapabilityGroup>
523+
<Type>MCode</Type>
524+
<Code>
525+
<MCode>function status = ps6000aSetDataBuffers(obj, channel, bufferMax, bufferMin, nSamples, dataType, waveform, downSampleRatioMode, action)
526+
% For group functions, OBJ is the group object. For
527+
% base device functions, OBJ is the device object.
528+
529+
status = calllib('ps6000a', 'ps6000aSetDataBuffers', obj.DriverData.unitHandle, channel, bufferMax,...
530+
bufferMin, nSamples, dataType, waveform, downSampleRatioMode, action);
531+
532+
if (status == PicoStatus.PICO_OK)
533+
534+
else
535+
536+
error('ps6000aSetDataBuffers: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
537+
491538
end</MCode>
492539
</Code>
493540
<Description/>

0 commit comments

Comments
 (0)