PICO picoscope 3204 User Manual Download Page 18

PicoScope 3000 Series User Guide

17

Copyright 2005 Pico Technology Limited. All rights reserved.

PS3000044 1.4

Arguments

handle

, the handle of the required device.

wave_type

, the type of wave.  Choose 

PS3000_SQUARE (0),

PS3000_TRIANGLE (1)

 or 

PS3000_SINE (2)

This argument has no

effect if used with the PicoScope 3204 variant.

start_frequency

, the required frequency, in the range 0 < freq < 1

MHz, to start the sweep or the frequency generated in a non-sweep
mode. 

0

 switches the signal generator off.

stop_frequency

, the required stop frequency of the sweep, in the

range 0 < freq < 1 MHz but not necessarily greater than

start_frequency

. If the start and stop frequencies are the same, the

signal generator will be run with a constant frequency. 

This argument

has no effect if used with the PicoScope 3204 variant..

increment

, the size of the steps to increment or decrement the

frequency by in a sweep mode. This must always be positive; the start
and stop frequencies will determine whether to increment or decrement.
This must be a frequency in the range 0.1 Hz < 

increment

 <

|

stop_frequency

 - 

start_frequency

|. This is not used in a non-

sweep mode. 

This argument has no effect if used with the PicoScope

3204 variant..

dwell_time

, This is the time, in ms, to wait before increasing the

frequency by 

increment

 in a sweep mode. This is unused in a non-

sweep mode. 

This argument has no effect if used with the PicoScope

3204 variant..

repeat

TRUE

 restarts the sweep when the 

stop_frequency

 is

reached, 

FALSE

 continues indefinitely at 

stop_frequency

 when it is

reached. 

This argument has no effect if used with the PicoScope 3204

variant..

dual_slope

, if repeat is 

TRUE

 this specifies what to do at the

stop_frequency

TRUE

 will sweep back towards the

start_frequency

FALSE

 will restart the sweep from

start_frequency

This argument has no effect if used with the

PicoScope 3204 variant..

Returns

The actual frequency or start frequency, in hertz, that is generated. Zero
if one of the parameters are not in range.

Remarks

The PicoScope 3204 variant has a simple 1 kHz square wave signal generator for scope
probe calibration. With this variant, therefore, only two arguments of this function have
any effect:

To switch the square wave on, use a valid 

handle 

and set 

start_frequency

 to a non-

zero value. To switch the square wave off, use a valid 

handle

 and set

start_frequency

 to 

0

.

Summary of Contents for picoscope 3204

Page 1: ...Copyright 2005 Pico Technology Limited All rights reserved PicoScope 3000 Series User guide PS3000044 1 4 PC Oscilloscopes...

Page 2: ...mum system requirements 6 2 Installation instructions 8 3 Specifications 9 3 Technical reference 9 1 Driver 9 2 Driver error codes 10 3 Functions 26 4 Advanced features 29 5 Using different modes 30 6...

Page 3: ...collect and analyse data from the oscilloscope A typical PicoScope 3000 Series PC Oscilloscope is supplied with the following items USB cable for use with USB 1 1 and 2 0 ports Software CD Installatio...

Page 4: ...ng the ground input to any source other than ground If in doubt use a meter to check that there is no significant AC or DC voltage between the ground input of the oscilloscope and the point to which y...

Page 5: ...of and retains the rights to all material software documents etc contained in this release You may copy and distribute the entire release in its original state but must not copy individual items withi...

Page 6: ...and tear wilful damage negligence abnormal working conditions or failure to follow Pico Technology s spoken or written advice on the storage installation commissioning use or maintenance of the Goods...

Page 7: ...Oscilloscope to the PC until you have installed the software Procedure Follow the instructions in the Quick Start Guide included with your product package Connect your PC Oscilloscope to the PC using...

Page 8: ...d via the PicoScope software or by API calls The signal generator can also be used to compensate x10 scope probes when set to output a square wave Ground loops If you experience excessive noise or vol...

Page 9: ...te 2 None External trigger 1 BNC input shared with signal generator Variable trigger threshold 20 V Rising falling 12 2 mV resolution 1 MW impedance None Voltage ranges 100 mV to 20 V in 1 2 5 steps 2...

Page 10: ...se with the driver A description of the driver error codes is given below If the PicoScope or PicoLog software reports an error refer to the FAQ Code Enumeration Description 0 PS3000_OK The oscillosco...

Page 11: ...3 3 Functions 3 3 1 ps3000_open_unit short ps3000_open_unit void This function opens a PicoScope 3000 Series PC Oscilloscope The API driver can support up to four oscilloscopes Arguments None Returns...

Page 12: ...ll of the information only the first string_length characters are returned info is an enumerated type specifying what information is required from the driver Returns The length of the string written t...

Page 13: ...S3000044 1 4 3 3 3 ps3000_flash_led short ps3000_flash_led short handle Flashes the LED on the front of the oscilloscope three times and returns within one second Arguments handle the handle of the Pi...

Page 14: ...rights reserved PS3000044 1 4 3 3 4 ps3000_close_unit short ps3000_close_unit short handle Shuts down a PicoScope 3000 Series PC Oscilloscope Arguments handle the handle returned by ps3000_open_unit o...

Page 15: ...not available on all models enabled specify if the channel is active TRUE active FALSE inactive dc specifies the position of the AC DC switch TRUE DC FALSE AC range a code between 0 and 12 See the tab...

Page 16: ...to calculate the most suitable time unit to use time_interval_ns a pointer to the time interval in ns between readings at the selected timebase If a null pointer is passed nothing will be written here...

Page 17: ...ency long stop_frequency float increment short dwell_time short repeat short dual_slope This function is used to enable or disable the signal generator and sweep functions Sweep functions are not avai...

Page 18: ...start_frequency This is not used in a non sweep mode This argument has no effect if used with the PicoScope 3204 variant dwell_time This is the time in ms to wait before increasing the frequency by i...

Page 19: ...ata from previously returned cycles PS3000_ETS_SLOW 2 enable ETS and provide fresh data every ets_cycles cycles PS3000_ETS_SLOW takes longer to provide each data set but the data sets are more stable...

Page 20: ...nal are not available on all models threshold the threshold for the trigger event This is scaled in 16 bit ADC counts at the currently selected range If an external trigger is enabled the range is fix...

Page 21: ...cts a sample rate half as fast timebase 2 is half as fast again and so on For the maximum sample rate see the specifications Note that the number of channels enabled may affect the availability of the...

Page 22: ...the required device time_interval_ms the time interval in ms between data points This can be no shorter than 1 ms max_samples the maximum number of samples that the driver is to store This can be no...

Page 23: ...g if the oscilloscope is in streaming mode Arguments handle the handle to the required device Returns 1 meaning ready is returned when the oscilloscope has collected a complete block of data or the au...

Page 24: ...13 ps3000_stop void ps3000_stop short handle Call this function to stop the oscilloscope from sampling data If this function is called before a trigger event occurs the oscilloscope may not contain va...

Page 25: ...the buffers that receive data from the specified channels A B C or D A pointer is unused if the oscilloscope is not collecting data from that channel If a pointer is NULL nothing will be written to it...

Page 26: ...ers that receive data from the specified channels A B C or D A pointer is unused if the oscilloscope is not collecting data from that channel If a pointer is NULL nothing will be written to it overflo...

Page 27: ...oscilloscope thus doubling the effective sampling rate of a single channel The driver for a PicoScope 3000 Series PC Oscilloscope normally performs a number of setup operations before collecting each...

Page 28: ...sample rate when working with repetitive signals It is not possible to use ETS with one shot signals ETS is controlled by the ps3000_set_trigger and ps3000_set_ets functions ETS is available in block...

Page 29: ...er software control The signal generator output and external trigger input share the same connector so these two functions cannot be used at the same time It is possible however to use the output from...

Page 30: ...scope using ps3000_get_values or ps3000_get_times_and_values 9 Display the data 10Repeat steps 6 to 9 11Stop the oscilloscope using ps3000_stop 3 5 3 Using streaming mode This is the general procedure...

Page 31: ...000 rch ps3000 h and the following file must be in the same directory as the executable ps3000 dll The console example program is a generic windows application that is it does not use Borland AppExper...

Page 32: ...0fm dfm and ps3000fm pas This has been tested with Delphi versions 3 3 6 4 Excel 1 Load the spreadsheet ps3000 xls 2 Select Tools Macro 3 Select GetData 4 Select Run Note The Excel Macro language is s...

Page 33: ...loscope could not be found on your machine Make sure the software is installed before the oscilloscope is plugged into the USB socket and restart your computer Ensure that mention of the oscilloscope...

Page 34: ...a mains powered computer and is used to measure a signal on another mains powered device In this case the ground loop is created through mains earth as illustrated below The majority of laptop power...

Page 35: ...Windows applet that displays the current hardware configuration of your computer On Windows 98 or Windows ME right click on My Computer and choose the Device Manager tab On Windows 2000 or XP right c...

Page 36: ...nel inputs you can send a signal down one of the channels On some units the signal generator can generate a simple TTL square wave while on others it can generate a sine square or triangle wave that c...

Page 37: ...sal Serial Bus High Speed This is a standard port that enables you to connect external devices to PCs A typical USB 2 0 port supports a data transfer rate 40 times faster than USB 1 1 and all USB 2 0...

Page 38: ...31 External trigger 6 8 19 27 28 F Functions 26 27 28 29 ps3000_close_unit 13 ps3000_flash_led 12 ps3000_get_timebase 15 ps3000_get_times_and_values 25 ps3000_get_unit_info 11 ps3000_get_values 24 ps3...

Page 39: ...ty symbols 2 Safety warning 3 Sampling rate 27 Sampling rate maximum 8 Scope probe 6 Signal generator 6 8 16 27 28 29 Software control 28 Software error codes 32 Specifications 8 Spectrum analyser 2 S...

Page 40: ...Pico Technology Ltd The Mill House Cambridge Street St Neots PE19 1QB United Kingdom Tel 44 0 1480 396 395 Fax 44 0 1480 396 296 Web www picotech com PS3000044 1 4 17 10 05...

Reviews: