PicoScope 2208A - generate input to a circuit and capture resulting output

Post your MATLAB discussions here
Post Reply
kamil_sledziewski
Newbie
Posts: 0
Joined: Mon May 20, 2019 2:46 pm

PicoScope 2208A - generate input to a circuit and capture resulting output

Post by kamil_sledziewski »

Hi,

I am currently working with a PicoScope 2208A. What I am trying to do is generate a signal using PicoScope's AWG channel and feed it as an input to a system and feed the resulting output from the system back into channel A of the PicoScope in block mode (for a start, eventually I would also like to be able to this in streaming mode).

So far I have managed to generate the signal input into the system using AWG:
1. Setting up the scope in this mode (as in PS2000A_ID_Sig_Gen_Example.m)
2. Sending the signal to the scope continuously until I decide to set it to 0 manually:

Code: Select all

while(1)
    
    % Output the modified input waveform
    [status.setSigGenArbitrarySimple] = invoke(sigGenGroupObj, 'setSigGenArbitrarySimple', in_mod_central);

end 

% Set the output to OV DC
[status.setSigGenOff] = invoke(sigGenGroupObj, 'setSigGenOff');

% Disconnect and delete the device
disconnect(ps2000aDeviceObj);
delete(ps2000aDeviceObj);
How should I then approach capturing this waveform?

What I have tried to do so far was setting up and implementing the block mode capture in between the while loop and the line of code setting the AWG output back to 0V - hoping that this would account for simultaneous operation of the scope in the two modes, but I could not plot the output in Matlab (while being able to see it on a different oscilloscope's screen)

Thank you and best regards,
Kamil

Post Reply