Skip to content

Commit 348e215

Browse files
author
neil.hamilton
committed
Add more functions to picotech_ps6000a_generic.mdd ready for streaming
1 parent 20112d9 commit 348e215

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

picotech_ps6000a_generic.mdd

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,21 @@
371371
</Code>
372372
<Description/>
373373
</Method>
374+
<Method>
375+
<Name>ps6000aGetStreamingLatestValues</Name>
376+
<Location>parent</Location>
377+
<CapabilityGroup>Base</CapabilityGroup>
378+
<Type>MCode</Type>
379+
<Code>
380+
<MCode>function status = ps6000aGetStreamingLatestValues(obj, streamingDataInfo, nStreamingDataInfos, triggerInfo)
381+
% For group functions, OBJ is the group object. For
382+
% base device functions, OBJ is the device object.
383+
384+
status = calllib('ps6000a','ps6000aGetStreamingLatestValues',obj.DriverData.unitHandle,...
385+
streamingDataInfo, nStreamingDataInfos, triggerInfo);</MCode>
386+
</Code>
387+
<Description/>
388+
</Method>
374389
<Method>
375390
<Name>ps6000aGetValues</Name>
376391
<Location>parent</Location>
@@ -443,6 +458,30 @@
443458

444459
error('ps6000aRunBlock: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
445460

461+
end</MCode>
462+
</Code>
463+
<Description/>
464+
</Method>
465+
<Method>
466+
<Name>ps6000aRunStreaming</Name>
467+
<Location>parent</Location>
468+
<CapabilityGroup>Base</CapabilityGroup>
469+
<Type>MCode</Type>
470+
<Code>
471+
<MCode>function status = ps6000aRunStreaming(obj, sampleInterval, sampleIntervalTimeUnits, maxPreTriggerSamples, maxPostTriggerSamples, autoStop, downSampleRatio, downSampleRatioMode)
472+
% For group functions, OBJ is the group object. For
473+
% base device functions, OBJ is the device object.
474+
475+
status = calllib('ps6000a', 'ps6000aRunStreaming', obj.DriverData.unitHandle, sampleInterval,...
476+
sampleIntervalTimeUnits, maxPreTriggerSamples, maxPostTriggerSamples, autoStop,...
477+
downSampleRatio, downSampleRatioMode);
478+
479+
if (status == PicoStatus.PICO_OK)
480+
481+
else
482+
483+
error('ps6000aRunStreaming: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
484+
446485
end</MCode>
447486
</Code>
448487
<Description/>
@@ -563,6 +602,52 @@
563602
</Code>
564603
<Description/>
565604
</Method>
605+
<Method>
606+
<Name>ps6000aSetDigitalPortOff</Name>
607+
<Location>parent</Location>
608+
<CapabilityGroup>Base</CapabilityGroup>
609+
<Type>MCode</Type>
610+
<Code>
611+
<MCode>function status = ps6000aSetDigitalPortOff(obj, port)
612+
% For group functions, OBJ is the group object. For
613+
% base device functions, OBJ is the device object.
614+
615+
616+
status = calllib('ps6000a', 'ps6000aSetDigitalPortOff', obj.DriverData.unitHandle, port)
617+
618+
if (status == PicoStatus.PICO_OK)
619+
620+
else
621+
622+
error('ps6000aSetDigitalPortOff: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
623+
624+
end</MCode>
625+
</Code>
626+
<Description/>
627+
</Method>
628+
<Method>
629+
<Name>ps6000aSetDigitalPortOn</Name>
630+
<Location>parent</Location>
631+
<CapabilityGroup>Base</CapabilityGroup>
632+
<Type>MCode</Type>
633+
<Code>
634+
<MCode>function status = ps6000aSetDigitalPortOn(obj, port, logicThresholdLevel, logicThresholdLevelLength, hysteresis)
635+
% For group functions, OBJ is the group object. For
636+
% base device functions, OBJ is the device object.
637+
638+
status = calllib('ps6000a','ps6000aSetDigitalPortOn', obj.DriverData.unitHandle, port,...
639+
logicThresholdLevel, logicThresholdLevelLength, hysteresis);
640+
641+
if (status == PicoStatus.PICO_OK)
642+
643+
else
644+
645+
error('ps6000aSetDigitalPortOn: status code %d, please refer to the PicoStatus.m file.', dec2hex(status));
646+
647+
end</MCode>
648+
</Code>
649+
<Description/>
650+
</Method>
566651
<Method>
567652
<Name>ps6000aSetSimpleTrigger</Name>
568653
<Location>parent</Location>

0 commit comments

Comments
 (0)