PicoScope 7 Software
Available on Windows, Mac and Linux
Code: Select all
make[1]: Entering directory '/opt/picoscope/share/doc/libps4000a'
CC ps4000acon.o
ps4000acon.c:202:2: error: unknown type name ‘PS4000A_DEVICE_RESOLUTION’
PS4000A_DEVICE_RESOLUTION resolution;
^~~~~~~~~~~~~~~~~~~~~~~~~
ps4000acon.c:209:2: error: unknown type name ‘PS4000A_USER_PROBE_INTERACTIONS’
PS4000A_USER_PROBE_INTERACTIONS userProbeInteractions[PS4000A_MAX_4_CHANNELS];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
you said:DigitalArcSystems wrote: ↑Fri Aug 26, 2016 7:15 pmHere's a couple of them:
1st on attempt to obtain a block of Data:
B - Immediate block V - Set voltages
T - Triggered block I - Set timebase
E - Collect a block of data using ETS A - ADC counts/mV
R - Collect set of rapid captures
S - Immediate streaming
W - Triggered streaming
X - Exit
Operation:
Collect block immediate...
Press a key to start
Timebase: 2 SampleInterval: 4nS oversample: 1
Waiting for trigger...Press a key to abort
BlockDataHandler:ps3000aGetValues ------ 0x00000046
Status 46: PICO_BUFFERS_NOT_SET
An attempt was made to get data before a data buffer was defined
Here's an attempt to set the Voltages
PS3000A driver example program
Enumerating Units...
Found one device, opening...
Handle: 1
Device opened successfully, cycle 1
Model : 3403D
S/N : DU009/010
Readings will be scaled in (mV)
B - Immediate block V - Set voltages
T - Triggered block I - Set timebase
E - Collect a block of data using ETS A - ADC counts/mV
R - Collect set of rapid captures
S - Immediate streaming
W - Triggered streaming
X - Exit
Operation:
0 -> 10 mV
Specify voltage range (0..0)
99 - switches channel off
** At least 1 channel must be enabled **
Specify voltage range (0..0)
99 - switches channel off
** At least 1 channel must be enabled **
Specify voltage range (0..0)
99 - switches channel off
[THIS REPEATS]
Thanks,
Noah
Code: Select all
switch (variant)
{
Code: Select all
case MODEL_PS 3204A:
Code: Select all
switch (variant)
{
case MODEL_PS3204A:
unit->model = MODEL_PS3204A;
unit->sigGen = SIGGEN_FUNCTGEN;
unit->firstRange = PS3000A_50MV;
unit->lastRange = PS3000A_20V;
unit->channelCount = DUAL_SCOPE;
unit->ETS = FALSE;
unit->AWGFileSize = MIN_SIG_GEN_BUFFER_SIZE;
unit->digitalPorts = 0;
break;
Code: Select all
switch (variant)
{
case MODEL_PS3203D:
unit->model = MODEL_PS3203D;
unit->sigGen = SIGGEN_FUNCTGEN;
unit->firstRange = PS3000A_20MV;
unit->lastRange = PS3000A_20V;
unit->channelCount = DUAL_SCOPE;
unit->ETS = FALSE;
unit->AWGFileSize = MAX_SIG_GEN_BUFFER_SIZE;
unit->digitalPorts = 0;
break;
case MODEL_PS3204A:
Code: Select all
unit->sigGen = SIGGEN_AWG;
Code: Select all
unit->ETS = TRUE;
Code: Select all
struct tPS3000ATriggerChannelProperties sourceDetails = { triggerVoltage,
256 * 10,
triggerVoltage,
256 * 10,
PS3000A_CHANNEL_A,
PS3000A_LEVEL};
struct tPS3000ATriggerConditionsV2 conditions = { PS3000A_CONDITION_TRUE,
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE};
struct tPwq pulseWidth;
struct tTriggerDirections directions = { PS3000A_RISING,
PS3000A_NONE,
PS3000A_NONE,
PS3000A_NONE,
PS3000A_NONE,
PS3000A_NONE };
Code: Select all
struct tPS3000ATriggerChannelProperties sourceDetails = { triggerVoltage,
256 * 10,
triggerVoltage,
256 * 10,
PS3000A_CHANNEL_EXTERNAL,
PS3000A_LEVEL};
struct tPS3000ATriggerConditionsV2 conditions = {
PS3000A_CONDITION_DONT_CARE, //Ch0
PS3000A_CONDITION_DONT_CARE, //Ch1
PS3000A_CONDITION_DONT_CARE, //Ch2
PS3000A_CONDITION_DONT_CARE, //Ch3
PS3000A_CONDITION_TRUE, //Ch EXT
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE,
PS3000A_CONDITION_DONT_CARE};
struct tPwq pulseWidth;
struct tTriggerDirections directions = {
PS3000A_NONE,
PS3000A_NONE,
PS3000A_NONE,
PS3000A_NONE,
PS3000A_RISING,
PS3000A_NONE };
Code: Select all
sudo apt-get update
Code: Select all
pi@raspberrypi:~ $ wget -O - http://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | sudo apt-key add -
--2019-09-24 17:57:02-- http://labs.picotech.com/debian/dists/picoscope/Release.gpg.key
Resolving labs.picotech.com (labs.picotech.com)... 104.20.65.236, 104.20.64.236
Connecting to labs.picotech.com (labs.picotech.com)|104.20.65.236|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key [following]
--2019-09-24 17:57:02-- https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key
Connecting to labs.picotech.com (labs.picotech.com)|104.20.65.236|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 959 [application/pgp-keys]
Saving to: ‘STDOUT’
- 100%[===================================================================================>] 959 --.-KB/s in 0s
2019-09-24 17:57:02 (5.01 MB/s) - written to stdout [959/959]
OK
pi@raspberrypi:~ $ sudo apt-get update
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://labs.picotech.com/debian picoscope InRelease
Hit:4 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:1 https://labs.picotech.com/raspbian picoscope InRelease [1,518 B]
Err:1 https://labs.picotech.com/raspbian picoscope InRelease
The following signatures were invalid: 790128FE0D37172A2C56ACB16964D13AA2A43CCE
Reading package lists... Done
W: GPG error: https://labs.picotech.com/raspbian picoscope InRelease: The following signatures were invalid: 790128FE0D37172A2C56ACB16964D13AA2A43CCE
E: The repository 'http://labs.picotech.com/raspbian picoscope InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.