Test and Measurement Forum

Real-time analysis of measured Signal in Simulink

Post your MATLAB discussions here

Real-time analysis of measured Signal in Simulink

Postby matthiasn » Tue Apr 18, 2017 5:33 am

Hi everyone,

I have the PicoScope 2205A and the newest Version of Matlab/Simulink including the Instrument Control Toolbox. I want to analyze the signal measured by the PicoScope in realtime. I tried to do that with the PicoScope 2000 Series MATLAB Generic Instrument Driver, but I think that is only for record a signal and analyze it after recording.

My idea was to do it with the 'Query Instrument'-Block of the Instrument Control Toolbox, but I failed to create an Interface Object in Matlab. Has anybody an idea how I can get that to work?

Thanks in advance

matthiasn
matthiasn
Newbie
 
Posts: 0
Joined: Tue Apr 18, 2017 5:01 am

Re: Real-time analysis of measured Signal in Simulink

Postby Hitesh » Wed Apr 19, 2017 8:24 am

Hi matthiasn,

Are you looking to carry out data capture and analysis using Simulink?

If so, we have not tested our Instrument Drivers with Simulink. Our Instrument Driver uses MATLAB code, so you would need to create a Device object rather than an Interface object.

Which mode of data collection are you using - block or streaming?

Regards,
Hitesh

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2386
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Real-time analysis of measured Signal in Simulink

Postby matthiasn » Wed Apr 19, 2017 2:07 pm

Thank you for your quick reply.

Actually I've already created an Device object and I'am able to run the functions which are delivered with the Instrument Driver in Matlab. It works for capturing data and anlyze it after stopping the capturing. I used the streaming mode. But I purpose to analyze data in real-time while capturing and without stopping the capturing for a longer time. For example I want to analyze a changing pulse width modulation continually.

If I get that to work in Matlab maybe I can adapt that to Simulink.

Thanks in advance.
matthiasn
Newbie
 
Posts: 0
Joined: Tue Apr 18, 2017 5:01 am

Re: Real-time analysis of measured Signal in Simulink

Postby Hitesh » Mon Apr 24, 2017 10:40 am

Thanks Matthias,

If you require any further assistance with the MATLAB code, please post back here.

Regards,
Hitesh

Technical Support Engineer
Hitesh
Site Admin
Site Admin
 
Posts: 2386
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests