Component: PicoScope (PS2000) (Test Equipment): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 70: | Line 70: | ||
''<span style="color:red;">No additional examples</span>'' | |||
==Macro reference== | ==Macro reference== | ||
===ps2000_close_unit=== | ===ps2000_close_unit=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_close_unit''' | ||
|- | |- | ||
| colspan="2" | This function shuts down an oscilloscope. | | colspan="2" | This function shuts down an oscilloscope. | ||
| Line 113: | Line 94: | ||
===ps2000_flash_led=== | ===ps2000_flash_led=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_flash_led''' | ||
|- | |- | ||
| colspan="2" | This function flashes the LED on the front of the scope without blocking the calling thread. | | colspan="2" | This function flashes the LED on the front of the scope without blocking the calling thread. | ||
| Line 132: | Line 113: | ||
===ps2000_get_timebase=== | ===ps2000_get_timebase=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_get_timebase''' | ||
|- | |- | ||
| colspan="2" | Returns details associated with the selected timebase index | | colspan="2" | Returns details associated with the selected timebase index | ||
| Line 181: | Line 162: | ||
===ps2000_get_times_and_values=== | ===ps2000_get_times_and_values=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_get_times_and_values''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 240: | Line 221: | ||
===ps2000_get_unit_info=== | ===ps2000_get_unit_info=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_get_unit_info''' | ||
|- | |- | ||
| colspan="2" | This function retrieves information about the specified oscilloscope. | | colspan="2" | This function retrieves information about the specified oscilloscope. | ||
| Line 274: | Line 255: | ||
===ps2000_get_values=== | ===ps2000_get_values=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_get_values''' | ||
|- | |- | ||
| colspan="2" | This function returns block-mode data, with or without downsampling. | | colspan="2" | This function returns block-mode data, with or without downsampling. | ||
| Line 323: | Line 304: | ||
===ps2000_open_unit=== | ===ps2000_open_unit=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_open_unit''' | ||
|- | |- | ||
| colspan="2" | Returns a handle to the opened unit Returns 0 if no unit found Returns -1 if unit failed to open | | colspan="2" | Returns a handle to the opened unit Returns 0 if no unit found Returns -1 if unit failed to open | ||
| Line 337: | Line 318: | ||
===ps2000_open_unit_async=== | ===ps2000_open_unit_async=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_open_unit_async''' | ||
|- | |- | ||
| colspan="2" | This function opens a scope without blocking the calling thread. | | colspan="2" | This function opens a scope without blocking the calling thread. | ||
| Line 351: | Line 332: | ||
===ps2000_open_unit_progress=== | ===ps2000_open_unit_progress=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_open_unit_progress''' | ||
|- | |- | ||
| colspan="2" | This function checks on the progress of a request made to ps2000aOpenUnitAsync to open a scope. | | colspan="2" | This function checks on the progress of a request made to ps2000aOpenUnitAsync to open a scope. | ||
| Line 375: | Line 356: | ||
===ps2000_ready=== | ===ps2000_ready=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_ready''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 394: | Line 375: | ||
===ps2000_run_block=== | ===ps2000_run_block=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_run_block''' | ||
|- | |- | ||
| colspan="2" | This function starts collecting data in block mode. | | colspan="2" | This function starts collecting data in block mode. | ||
| Line 433: | Line 414: | ||
===ps2000_set_channel=== | ===ps2000_set_channel=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_set_channel''' | ||
|- | |- | ||
| colspan="2" | This function specifies whether an input channel is to be enabled, its input coupling type, voltage range, analog offset and bandwidth limit. | | colspan="2" | This function specifies whether an input channel is to be enabled, its input coupling type, voltage range, analog offset and bandwidth limit. | ||
| Line 472: | Line 453: | ||
===ps2000_set_sig_gen_built_in=== | ===ps2000_set_sig_gen_built_in=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_set_sig_gen_built_in''' | ||
|- | |- | ||
| colspan="2" | sets up the signal generator to produce a signal from a list of built-in waveforms | | colspan="2" | sets up the signal generator to produce a signal from a list of built-in waveforms | ||
| Line 536: | Line 517: | ||
===ps2000_set_trigger=== | ===ps2000_set_trigger=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_set_trigger''' | ||
|- | |- | ||
| colspan="2" | | | colspan="2" | | ||
| Line 580: | Line 561: | ||
===ps2000_stop=== | ===ps2000_stop=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ps2000_stop''' | ||
|- | |- | ||
| colspan="2" | This function stops the scope device from sampling data. If this function is called before a trigger event occurs, the oscilloscope may not contain valid data. | | colspan="2" | This function stops the scope device from sampling data. If this function is called before a trigger event occurs, the oscilloscope may not contain valid data. | ||
| Line 600: | Line 581: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.0 |
| Category | Test Equipment |
PicoScope component
A set of functions designed for interacting with a 2000 series Pico scope via simulation.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_PS2000.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_PS2000.fcsx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ps2000_close_unit
| ps2000_close_unit | |
| This function shuts down an oscilloscope. | |
| Handle | |
| The handle of the scope device to be closed | |
| Return | |
ps2000_flash_led
| ps2000_flash_led | |
| This function flashes the LED on the front of the scope without blocking the calling thread. | |
| handle | |
| handle of the scope device | |
| Return | |
ps2000_get_timebase
ps2000_get_times_and_values
| ps2000_get_times_and_values | |
| Handle | |
| times | |
| buffer_a | |
| buffer_b | |
| buffer_c | |
| buffer_d | |
| overflow | |
| time_units | |
| no_of_samples | |
| Return | |
ps2000_get_unit_info
ps2000_get_values
ps2000_open_unit
| ps2000_open_unit | |
| Returns a handle to the opened unit Returns 0 if no unit found Returns -1 if unit failed to open | |
| Return | |
ps2000_open_unit_async
| ps2000_open_unit_async | |
| This function opens a scope without blocking the calling thread. | |
| Return | |
ps2000_open_unit_progress
| ps2000_open_unit_progress | |
| This function checks on the progress of a request made to ps2000aOpenUnitAsync to open a scope. | |
| handle | |
| Progress | |
| Return | |
ps2000_ready
| ps2000_ready | |
| Handle | |
| Return | |
ps2000_run_block
| ps2000_run_block | |
| This function starts collecting data in block mode. | |
| handle | |
| no_of_samples | |
| timebase | |
| oversample | |
| time_indisposed_ms | |
| Return | |
ps2000_set_channel
ps2000_set_sig_gen_built_in
ps2000_set_trigger
| ps2000_set_trigger | |
| handle | |
| source | |
| threshold | |
| direction | |
| delay | |
| auto_trigger_ms | |
| Return | |
ps2000_stop
| ps2000_stop | |
| This function stops the scope device from sampling data. If this function is called before a trigger event occurs, the oscilloscope may not contain valid data. | |
| Handle | |
| Return | |
Property reference
| Properties |