|
326 | 326 | </Property> |
327 | 327 | </PropertyInfo> |
328 | 328 | <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> |
329 | 351 | <Method> |
330 | 352 | <Name>ps6000aGetMinimumTimebaseStateless</Name> |
331 | 353 | <Location>parent</Location> |
|
359 | 381 | % For group functions, OBJ is the group object. For |
360 | 382 | % base device functions, OBJ is the device object. |
361 | 383 |
|
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 | + |
365 | 389 | if (status == PicoStatus.PICO_OK) |
366 | 390 |
|
367 | 391 | else |
368 | 392 |
|
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)); |
370 | 394 |
|
371 | 395 | end</MCode> |
372 | 396 | </Code> |
|
488 | 512 |
|
489 | 513 | error('ps6000aSetDataBuffer: status code %d, please refer to the PicoStatus.m file.', dec2hex(status)); |
490 | 514 |
|
| 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 | + |
491 | 538 | end</MCode> |
492 | 539 | </Code> |
493 | 540 | <Description/> |
|
0 commit comments