Search found 8 matches

by GrahamP
Sat Oct 01, 2016 1:28 pm
Forum: MATLAB
Topic: AWG + sampling using PS5442B
Replies: 9
Views: 13032

Re: AWG + sampling using PS5442B

Hi Hitesh, The code still doesn't work - I changed the line as you said, but it gets stuck in the while loop, "Waiting for data..." I've attached the code below. Please advise? %% LOAD CONFIGURATION INFORMATION PS5000aConfig; %% DEVICE CONNECTION % Create a device object. ps5000aDeviceObj = icdevice...
by GrahamP
Wed Sep 28, 2016 11:27 am
Forum: MATLAB
Topic: AWG + sampling using PS5442B
Replies: 9
Views: 13032

Re: AWG + sampling using PS5442B

Hi Hitesh, I changed the code to include ps5000aRunBlock. [status] = invoke(ps5000aDeviceObj, 'ps5000aRunBlock', 0, Nsamples, 14.5, 0, 0, 0, 0); invoke(ps5000aDeviceObj, 'ps5000aSigGenSoftwareControl', 1); while(data_ready == 0) fprintf('Waiting for data...................\n'); invoke(ps5000aDeviceO...
by GrahamP
Tue Sep 27, 2016 4:02 pm
Forum: MATLAB
Topic: AWG + sampling using PS5442B
Replies: 9
Views: 13032

Re: AWG + sampling using PS5442B

Hi Hitesh, Thanks for your reply. I am using a software trigger. I'm still having trouble with the code (attached below). I tried to use runblock --> ps5000aSigGenSoftwareControl --> poll ps5000aIsReady. However, the code hangs on [status] = invoke(ps5000aDeviceObj, 'runBlock', 0); with "runBlock: W...
by GrahamP
Sat Sep 24, 2016 1:38 pm
Forum: MATLAB
Topic: AWG + sampling using PS5442B
Replies: 9
Views: 13032

AWG + sampling using PS5442B

Hello, I am trying to produce an arbitrary waveform (frequency around 2.5MHz) from the AWG and then read it directly back into channel A, and then plot the original vs recorded signals. I have attempted to code this in Matlab (see below), but am having trouble with the following. (1) Triggering - I ...
by GrahamP
Mon Aug 01, 2016 3:47 pm
Forum: MATLAB
Topic: AWG problems using PS5442B
Replies: 6
Views: 9239

Re: AWG problems using PS5442B

Hi Hitesh, EDIT: yes, the PS5000A_IC_GenericDriver_Sig_Gen.m example code does run. My code in the original post does not. This is the output - I'm using version 1.1.20 . Instrument Device Object Using Driver : picotech_ps5000a_generic.mdd Instrument Information Type: Oscilloscope Manufacturer: Pico...
by GrahamP
Fri Jul 22, 2016 2:01 pm
Forum: MATLAB
Topic: AWG problems using PS5442B
Replies: 6
Views: 9239

Re: AWG problems using PS5442B

Hi Hitesh,

It fails on this line:

Code: Select all

invoke(ps5000aDeviceObj, 'setSigGenArbitrary', offsetMv, pkToPkMv, startDelta, increment, dwellTime, ...
    y, sweepType, operatiom, operation, shots, sweeps, triggerType, triggerSource, extInThresholdMv);
Thanks,

Graham
by GrahamP
Mon Jul 18, 2016 9:26 am
Forum: MATLAB
Topic: AWG problems using PS5442B
Replies: 6
Views: 9239

Re: AWG problems using PS5442B

Bump :) Could anyone please assist?

Many thanks

Graham
by GrahamP
Wed Jul 06, 2016 4:33 pm
Forum: MATLAB
Topic: AWG problems using PS5442B
Replies: 6
Views: 9239

AWG problems using PS5442B

Hello, I am trying to produce a 1kHz sine wave using the AWG, and then read it in on channel A to see the output. As far as I'm aware, I need to convert frequency (1 kHz) to phase - see the code below. However, I cannot get the code to run correctly due to the following two problems. 1) Using startD...