programmatically call (and download) math fn results?

Post your MATLAB discussions here
Post Reply
MWRoberson
Newbie
Posts: 0
Joined: Thu Jun 29, 2023 8:48 pm

programmatically call (and download) math fn results?

Post by MWRoberson »

Hi -
I'm working with Picoscope7 (really like it) and have made a math function. For simplicity, make it:
Math1 = A * B

In Matlab (or even C if that's required) I would like to:
1) collect a block of data (let's say 1 Msps)
2) calculate Math1
3) download Math1 as a downsampled waveform (1ksps)

can this be done, and if so, would it be possible to get a reference code of how to do this?
Thx!

Gerry
PICO STAFF
PICO STAFF
Posts: 1145
Joined: Mon Aug 11, 2014 11:14 am

Re: programmatically call (and download) math fn results?

Post by Gerry »

Hi MWRoberson,

I'm responding to this quite late, but if this was not resolved for you, you will need to explain your intention in more detail (and the reason for it) for us to help you. For instance, I'm not quite sure what you mean by (3) "download" Math1 as a downsampled waveform?

You can capture the block of data in the Hardware PicoScope and transfer it to the computer where you can then apply Matlab functions that you have created to the data. So, retrieving downsampled waveform data from the hardware picoscope can't be done after applying your Matlab function to the data, because it will already have been transferred to the computer.

Regards,

Gerry
Gerry
Technical Specialist

Post Reply