Difference between revisions of "Component: PicoScope (PS2000) (Test Equipment)"
From Flowcode Help
Jump to navigationJump to search| (7 intermediate revisions by one other user not shown) | |||
| Line 16: | Line 16: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_PS2000.fcsx FC_Comp_Source_PS2000.fcsx] | ||
| Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_PS2000.fcsx FC_Comp_Source_PS2000.fcsx] | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_PS2000.fcsx FC_Comp_Source_PS2000.fcsx] | ||
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 62: | Line 70: | ||
| − | + | ''<span style="color:red;">No additional examples</span>'' | |
| − | |||
| − | |||
| − | |||
| ==Macro reference== | ==Macro reference== | ||
| + | ===ps2000_close_unit=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_close_unit''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | This function shuts down an oscilloscope.  | 
| |- | |- | ||
| |- | |- | ||
| Line 80: | Line 86: | ||
| | width="90%" | Handle | | width="90%" | Handle | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | The handle of the scope device to be closed  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
| Line 140: | Line 93: | ||
| + | ===ps2000_flash_led=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 158: | Line 112: | ||
| + | ===ps2000_get_timebase=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_timebase''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | Returns details associated with the selected timebase index  | 
| |- | |- | ||
| |- | |- | ||
| Line 169: | Line 124: | ||
| | width="90%" | Handle | | width="90%" | Handle | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | the handle of the required device.  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | timebase | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | The ps2000a API allows you to select any of 2 32  different timebases based on a maximum sampling rate of 1 GS/s.  | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG | 
| − | | width="90%" |  | + | | width="90%" | no_of_samples | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | number of samples required  | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG | 
| − | | width="90%" |  | + | | width="90%" | time_interval | 
| |- | |- | ||
| − | | colspan="2" | the  | + | | colspan="2" | time interval between readings at the selected timebase. Use NULL if not required.  | 
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | time_units | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| + | | colspan="2" |   | ||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | oversample | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | not used.  | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG | 
| − | | width="90%" |  | + | | width="90%" | max_samples | 
| |- | |- | ||
| − | | colspan="2" | the  | + | | colspan="2" | on exit, the maximum number of samples available.  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
| Line 247: | Line 161: | ||
| + | ===ps2000_get_times_and_values=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 305: | Line 220: | ||
| + | ===ps2000_get_unit_info=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_unit_info''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | This function retrieves information about the specified oscilloscope.  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| |- | |- | ||
| Line 359: | Line 232: | ||
| | width="90%" | Handle | | width="90%" | Handle | ||
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | the handle of the device  | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | 
| − | | width="90%" |  | + | | width="90%" | info_string | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | unit information string  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | string_length | 
| |- | |- | ||
| − | | colspan="2" | the  | + | | colspan="2" | the maximum number of chars in the string  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | info_line | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | a number specifying what information is required. 0=DriverVersion / 1=USBVersion / 2=HardwareVersion / 3=VariantInfo / 4=BatchAndSerial / 5=CalDate / 6=KernelVersion / 7=DigHardwareVersion / 8=AnHardwareVersion  | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
| Line 467: | Line 254: | ||
| + | ===ps2000_get_values=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 515: | Line 303: | ||
| + | ===ps2000_open_unit=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_open_unit''' | 
| |- | |- | ||
| − | | colspan="2" |   | + | | colspan="2" | Returns a handle to the opened unit Returns 0 if no unit found Returns -1 if unit failed to open  | 
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| − | |||
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
| Line 533: | Line 317: | ||
| + | ===ps2000_open_unit_async=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 546: | Line 331: | ||
| − | + | ===ps2000_open_unit_progress=== | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 641: | Line 355: | ||
| + | ===ps2000_ready=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_ready''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| |- | |- | ||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | Handle | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
| Line 659: | Line 374: | ||
| + | ===ps2000_run_block=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_run_block''' | 
| |- | |- | ||
| − | | colspan="2" | This function  | + | | colspan="2" | This function starts collecting data in block mode.  | 
| |- | |- | ||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | handle | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG | 
| − | | width="90%"  | + | | width="90%" | no_of_samples | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| + | | colspan="2" |   | ||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | timebase | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | oversample | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG | 
| − | | width="90%" |  | + | | width="90%" | time_indisposed_ms | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
| Line 710: | Line 413: | ||
| + | ===ps2000_set_channel=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 748: | Line 452: | ||
| − | + | ===ps2000_set_sig_gen_built_in=== | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 912: | Line 516: | ||
| + | ===ps2000_set_trigger=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_set_trigger''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" |   | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| |- | |- | ||
| Line 943: | Line 530: | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" |  | + | | width="90%" | source | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | threshold | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | direction | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center" | [[File:Fc9- | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" |  | + | | width="90%" | delay | 
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | ||
| − | | width="90%" |  | + | | width="90%" | auto_trigger_ms | 
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |- | |- | ||
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9- | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | 
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| |} | |} | ||
| + | ===ps2000_stop=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_stop''' | 
| |- | |- | ||
| − | | colspan="2" |   | + | | 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 1,032: | Line 577: | ||
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| |} | |} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 08:01, 18 January 2024
| Author | Matrix Ltd | 
| Version | 1.0 | 
| Category | Test Equipment | 
Contents
- 1 PicoScope component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 ps2000_close_unit
- 5.2 ps2000_flash_led
- 5.3 ps2000_get_timebase
- 5.4 ps2000_get_times_and_values
- 5.5 ps2000_get_unit_info
- 5.6 ps2000_get_values
- 5.7 ps2000_open_unit
- 5.8 ps2000_open_unit_async
- 5.9 ps2000_open_unit_progress
- 5.10 ps2000_ready
- 5.11 ps2000_run_block
- 5.12 ps2000_set_channel
- 5.13 ps2000_set_sig_gen_built_in
- 5.14 ps2000_set_trigger
- 5.15 ps2000_stop
 
- 6 Property reference
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. | |
|  - INT | Handle | 
| The handle of the scope device to be closed | |
|  - INT | Return | 
ps2000_flash_led
|   | ps2000_flash_led | 
| This function flashes the LED on the front of the scope without blocking the calling thread. | |
|  - INT | handle | 
| handle of the scope device | |
|  - INT | Return | 
ps2000_get_timebase
ps2000_get_times_and_values
|   | ps2000_get_times_and_values | 
|  - INT | Handle | 
|  - LONG | times | 
|  - INT | buffer_a | 
|  - INT | buffer_b | 
|  - INT | buffer_c | 
|  - INT | buffer_d | 
|  - INT | overflow | 
|  - INT | time_units | 
|  - LONG | no_of_samples | 
|  - LONG | 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 | |
|  - INT | Return | 
ps2000_open_unit_async
|   | ps2000_open_unit_async | 
| This function opens a scope without blocking the calling thread. | |
|  - INT | 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. | |
|  - INT | handle | 
|  - INT | Progress | 
|  - INT | Return | 
ps2000_ready
|   | ps2000_ready | 
|  - INT | Handle | 
|  - INT | Return | 
ps2000_run_block
|   | ps2000_run_block | 
| This function starts collecting data in block mode. | |
|  - INT | handle | 
|  - LONG | no_of_samples | 
|  - INT | timebase | 
|  - INT | oversample | 
|  - LONG | time_indisposed_ms | 
|  - INT | Return | 
ps2000_set_channel
ps2000_set_sig_gen_built_in
ps2000_set_trigger
|   | ps2000_set_trigger | 
|  - INT | handle | 
|  - INT | source | 
|  - INT | threshold | 
|  - INT | direction | 
|  - INT | delay | 
|  - INT | auto_trigger_ms | 
|  - INT | 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. | |
|  - INT | Handle | 
|  - INT | Return | 
Property reference
|   | Properties | 



