|  |     | 
| (6 intermediate revisions by one other user not shown) | 
| Line 17: | Line 17: | 
|  | ==Component Source Code== |  | ==Component Source Code== | 
|  |  |  |  | 
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wikicopy/componentsource/FC_Comp_Source_PS2000.fcsx FC_Comp_Source_PS2000.fcsx] | + | 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] | 
| Line 43: | Line 43: | 
|  |  |  |  | 
|  |  |  |  | 
| − | ''No detailed description exists yet for this component''
 |  | 
|  |  |  |  | 
| − | ==Examples==
 |  | 
|  |  |  |  | 
|  |  |  |  | 
|  |  |  |  | 
|  | + | ''No detailed description exists yet for this component'' | 
|  |  |  |  | 
|  | + | ==Examples== | 
|  |  |  |  | 
|  |  |  |  | 
| Line 69: | Line 69: | 
|  |  |  |  | 
|  |  |  |  | 
| − | An example project showing the capabilities of the Velleman K8055D board combined with a Pico Technology series 2 scope.
 |  | 
|  |  |  |  | 
| − | {{Fcfile|Velleman_and_Picoscope_v2.fcfx|Velleman and Picoscope Demo}}
 | + | ''<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;" | '''ps2000_get_timebase''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_close_unit''' | 
|  | |- |  | |- | 
| − | | colspan="2" | Returns details associated with the selected timebase index  | + | | colspan="2" | This function shuts down an oscilloscope.  | 
|  | |- |  | |- | 
|  | |- |  | |- | 
| Line 86: | Line 86: | 
|  | | width="90%" | Handle |  | | width="90%" | Handle | 
|  | |- |  | |- | 
| − | | colspan="2" | the handle of therequired device.  | + | | colspan="2" | The handle of the scope device to be closed  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | timebase
 |  | 
| − | |-
 |  | 
| − | | 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-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | number of samples required 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | time_interval
 |  | 
| − | |-
 |  | 
| − | | 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="90%" | time_units
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | oversample
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | not used. 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | max_samples
 |  | 
| − | |-
 |  | 
| − | | 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="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_open_unit_progress'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function checks on the progress of a request made to ps2000aOpenUnitAsync toopen a scope. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Progress
 |  | 
| − | |-
 |  | 
| − | | 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 146: | Line 93: | 
|  |  |  |  | 
|  |  |  |  | 
|  | + | ===ps2000_flash_led=== | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 164: | Line 112: | 
|  |  |  |  | 
|  |  |  |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 | + | ===ps2000_get_timebase=== | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_unit_info'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function retrieves information about the specified oscilloscope. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the handle of the device 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
 |  | 
| − | | width="90%" | info_string
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | unit information string 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | string_length
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the maximum number of chars in the string 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | info_line
 |  | 
| − | |-
 |  | 
| − | | 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="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Handle of the device 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | channel
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the channel to be configured.  The values are: 0=ChanA / 1=ChanB 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | enabled
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | whether or not to enable the channel.  The values are: 0=Disable / 1=Enable 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | dc
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the impedance and coupling type. Values: 0=AC / 1=DC 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | range
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the input voltage range: 0=50mV / 1=100mV / 2=200mV / 3=500mV / 4=1V / 5=2V / 6=5V / 7=10V / 8=20V 
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_times_and_values'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | times
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_a
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_b
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_c
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_d
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | overflow
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | time_units
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_set_trigger'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | source
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | threshold
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | direction
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | delay
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | auto_trigger_ms
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_set_sig_gen_built_in'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  sets up the signal generator to produce a signal from a list of built-in waveforms 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Handle to the device 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | Offset_uV
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the voltage offset, in microvolts, to be applied to the waveform 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 |  | 
| − | | width="90%" | pk2pk_uV
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the peak-to-peak voltage, in microvolts, of the waveform 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | waveType
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the type of waveform to be generated. 0=Sine / 1=Square / 2=Triangle / 3=RampUp / 4=RampDown / 5=Sinc / 6=Gaus / 7=HalfSine / 8=DC 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | startFrequency
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the frequency that the signal generator will initially produce 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | stopFrequency
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the frequency at which the sweep reverses direction or returns to initial 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | increment
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the amount of frequency increase or decrease in sweep mode 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | dwellTime
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the time for which the sweep stays at each frequency, in seconds 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | sweepType
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | whether the frequency will sweep from startFrequency to stopFrequency. 0=Up, 1=Down, 2=UpDown, 3=DownUp 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 |  | 
| − | | width="90%" | sweeps
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | produce number of cycles specified by shots 
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_close_unit'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function shuts down an oscilloscope. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | 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="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_run_block'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function starts collecting data in block mode. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | timebase
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | oversample
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | time_indisposed_ms
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_values'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function returns block-mode data, with or without downsampling. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the handle of the required device. 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_a
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Start point for data collection 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_b
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Number of samples 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_c
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Down sample ratio 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_d
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Down sample mode : 0=None / 1=Aggregate / 2=Decimate / 4=Average 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | overflow
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Flags to indicate if an overflow has occurred 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_ready'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_open_unit_async'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function opens a scope without blocking the calling thread. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − |   |  | 
| − |   |  | 
| − | ==Property reference==
 |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' 
 |  | 
| − | |-
 |  | 
| − | |}==Macro reference==
 |  | 
| − |   |  | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 624: | Line 161: | 
|  |  |  |  | 
|  |  |  |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 | + | ===ps2000_get_times_and_values=== | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_open_unit_progress'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function checks on the progress of a request made to ps2000aOpenUnitAsync to open a scope. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Progress
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_flash_led'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function flashes the LED on the front of the scope without blocking the calling thread.  
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | handle of the scope device 
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_unit_info'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function retrieves information about the specified oscilloscope. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the handle of the device 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
 |  | 
| − | | width="90%" | info_string
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | unit information string 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | string_length
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the maximum number of chars in the string 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | info_line
 |  | 
| − | |-
 |  | 
| − | | 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="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Handle of the device 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | channel
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the channel to be configured.  The values are: 0=ChanA / 1=ChanB 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | enabled
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | whether or not to enable the channel.  The values are: 0=Disable / 1=Enable 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | dc
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the impedance and coupling type. Values: 0=AC / 1=DC 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | range
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the input voltage range: 0=50mV / 1=100mV / 2=200mV / 3=500mV / 4=1V / 5=2V / 6=5V / 7=10V / 8=20V 
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 812: | 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;" | '''ps2000_set_trigger''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_unit_info''' | 
|  | |- |  | |- | 
| − | | colspan="2" |   | + | | colspan="2" | This function retrieves information about the specified oscilloscope.  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | source
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | threshold
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | direction
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | delay
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | auto_trigger_ms
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_set_sig_gen_built_in'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  sets up the signal generator to produce a signal from a list of built-in waveforms 
 |  | 
|  | |- |  | |- | 
|  | |- |  | |- | 
| Line 866: | Line 232: | 
|  | | width="90%" | Handle |  | | width="90%" | Handle | 
|  | |- |  | |- | 
| − | | colspan="2" | Handle to the device  | + | | colspan="2" | the handle of the device  | 
|  | |- |  | |- | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] -LONG | + | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING | 
| − | | width="90%" | Offset_uV | + | | width="90%" | info_string | 
|  | |- |  | |- | 
| − | | colspan="2" | the voltage offset, in microvolts, to be applied to the waveform  | + | | colspan="2" | unit information string  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG
 |  | 
| − | | width="90%" | pk2pk_uV
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the peak-to-peak voltage, in microvolts, of the waveform 
 |  | 
|  | |- |  | |- | 
|  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" | waveType | + | | width="90%" | string_length | 
|  | |- |  | |- | 
| − | | colspan="2" | the type ofwaveform to be generated. 0=Sine / 1=Square / 2=Triangle / 3=RampUp / 4=RampDown / 5=Sinc / 6=Gaus / 7=HalfSine / 8=DC  | + | | colspan="2" | the maximum number of chars in the string  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | startFrequency
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the frequency that the signal generator will initially produce 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | stopFrequency
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the frequency at which the sweep reverses direction or returns to initial 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | increment
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the amount of frequency increase or decrease insweep mode 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT
 |  | 
| − | | width="90%" | dwellTime
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the time for which thesweep stays at each frequency, in seconds 
 |  | 
|  | |- |  | |- | 
|  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" | sweepType | + | | width="90%" | info_line | 
|  | |- |  | |- | 
| − | | colspan="2" | whether the frequency will sweep from startFrequency to stopFrequency. 0=Up, 1=Down, 2=UpDown, 3=DownUp  | + | | 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" | [[File:Fc9-u32-icon.png]] - ULONG
 |  | 
| − | | width="90%" | sweeps
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | produce number of cycles specified by shots 
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_close_unit'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function shuts down an oscilloscope. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | 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="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_run_block'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function starts collecting data in block mode. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | timebase
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | oversample
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | time_indisposed_ms
 |  | 
| − | |-
 |  | 
| − | | 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 974: | Line 254: | 
|  |  |  |  | 
|  |  |  |  | 
|  | + | ===ps2000_get_values=== | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 1,022: | 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;" | '''ps2000_ready''' | + | | 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" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | 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 1,040: | Line 317: | 
|  |  |  |  | 
|  |  |  |  | 
|  | + | ===ps2000_open_unit_async=== | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 1,053: | Line 331: | 
|  |  |  |  | 
|  |  |  |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 | + | ===ps2000_open_unit_progress=== | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − |   |  | 
| − |   |  | 
| − | ==Property reference==
 |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' 
 |  | 
| − | |-
 |  | 
| − | |}==Macro reference==
 |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_timebase'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Returns details associated with the selected timebase index 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | the handle of the required device. 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | timebase
 |  | 
| − | |-
 |  | 
| − | | 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-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | number of samples required 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | time_interval
 |  | 
| − | |-
 |  | 
| − | | 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="90%" | time_units
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | oversample
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | not used. 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | max_samples
 |  | 
| − | |-
 |  | 
| − | | 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="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 1,148: | 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;" | '''ps2000_flash_led''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_ready''' | 
|  | |- |  | |- | 
| − | | colspan="2" | This function flashes the LED on the front of the scope without blocking the calling thread.   | + | | colspan="2" |   | 
|  | |- |  | |- | 
|  | |- |  | |- | 
|  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" | handle | + | | width="90%" | Handle | 
|  | |- |  | |- | 
| − | | colspan="2" | handle of the scope device  | + | | 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 1,166: | 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;" | '''ps2000_stop''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_run_block''' | 
|  | |- |  | |- | 
| − | | 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 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%" | Handle | + | | 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" | [[File:Fc9-s32-icon.png]] - LONG | 
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | + | | width="90%" | no_of_samples | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {|class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_unit_info'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function retrieves information about the specified oscilloscope. 
 |  | 
|  | |- |  | |- | 
|  | + | | colspan="2" |   | 
|  | |- |  | |- | 
|  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" | Handle | + | | width="90%" | timebase | 
|  | |- |  | |- | 
| − | | colspan="2" | the handle of the device  | + | | colspan="2" |   | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
 |  | 
| − | | width="90%" | info_string
 |  | 
| − | |-
 |  | 
| − | | 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%" | string_length | + | | width="90%" | oversample | 
|  | |- |  | |- | 
| − | | colspan="2" | the maximum number of chars in the string  | + | | colspan="2" |   | 
|  | |- |  | |- | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] -INT | + | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG | 
| − | | width="90%" | info_line | + | | width="90%" | time_indisposed_ms | 
|  | |- |  | |- | 
| − | | 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  | + | | 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 1,217: | Line 413: | 
|  |  |  |  | 
|  |  |  |  | 
|  | + | ===ps2000_set_channel=== | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 1,255: | Line 452: | 
|  |  |  |  | 
|  |  |  |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 | + | ===ps2000_set_sig_gen_built_in=== | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_times_and_values'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | times
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_a
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_b
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_c
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_d
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | overflow
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | time_units
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_set_trigger'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | handle
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | source
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | threshold
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | direction
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | delay
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | auto_trigger_ms
 |  | 
| − | |-
 |  | 
| − | | colspan="2" |  
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
|  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |  | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
|  | |- |  | |- | 
| Line 1,419: | 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;" | '''ps2000_close_unit''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_set_trigger''' | 
|  | |- |  | |- | 
| − | | colspan="2" | This function shuts down an oscilloscope.  | + | | colspan="2" |   | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | Handle
 |  | 
| − | |-
 |  | 
| − | | 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="90%" style="border-top: 2px solid #000;" | ''Return''
 |  | 
| − | |}
 |  | 
| − |   |  | 
| − |   |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_run_block'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function starts collecting data in block mode. 
 |  | 
|  | |- |  | |- | 
|  | |- |  | |- | 
| Line 1,450: | Line 530: | 
|  | | colspan="2" |   |  | | colspan="2" |   | 
|  | |- |  | |- | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] -LONG | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" | no_of_samples | + | | 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%" | timebase | + | | 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%" | oversample | + | | width="90%" | direction | 
|  | |- |  | |- | 
|  | | colspan="2" |   |  | | colspan="2" |   | 
|  | |- |  | |- | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] -LONG | + | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" | time_indisposed_ms | + | | width="90%" | delay | 
|  | |- |  | |- | 
|  | | colspan="2" |   |  | | colspan="2" |   | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − | 
 |  | 
| − | 
 |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_get_values'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function returns block-mode data, with or without downsampling. 
 |  | 
| − | |-
 |  | 
|  | |- |  | |- | 
|  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT |  | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT | 
| − | | width="90%" | Handle | + | | width="90%" | auto_trigger_ms | 
| − | |-
 |  | 
| − | | colspan="2" | the handle of the required device. 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_a
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Start point for data collection 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_b
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Number of samples 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_c
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Down sample ratio 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | buffer_d
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Down sample mode : 0=None / 1=Aggregate / 2=Decimate / 4=Average 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s16-icon.png]] - INT
 |  | 
| − | | width="90%" | overflow
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | Flags to indicate if an overflow has occurred 
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" | [[File:Fc9-s32-icon.png]] - LONG
 |  | 
| − | | width="90%" | no_of_samples
 |  | 
|  | |- |  | |- | 
|  | | colspan="2" |   |  | | colspan="2" |   | 
|  | |- |  | |- | 
| − | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s32-icon.png]] -LONG | + | | 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;" | '''ps2000_ready''' | + | | 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,539: | Line 577: | 
|  | | width="90%" style="border-top: 2px solid #000;" | ''Return'' |  | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | 
|  | |} |  | |} | 
| − | 
 |  | 
| − | 
 |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ps2000_open_unit_async'''
 |  | 
| − | |-
 |  | 
| − | | colspan="2" | This function opens a scope without blocking the calling thread. 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − | 
 |  | 
| − | 
 |  | 
| − | {| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 |  | 
| − | |-
 |  | 
| − | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
 |  | 
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''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 
 |  | 
| − | |-
 |  | 
| − | |-
 |  | 
| − | | 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''
 |  | 
| − | |}
 |  | 
| − | 
 |  | 
| − | 
 |  | 
|  |  |  |  | 
|  |  |  |  |