"From Workspace" data buffering into frames

조회 수: 6 (최근 30일)
Georgios
Georgios 2017년 6월 22일
답변: Ankit Bhatnagar 2017년 6월 27일
Hello, I am trying to put together into frames (in simulink) some input I am reading from an .xlsx file. Then those frames want to further process them in a MATLAB function block I have introduced in my design. So far I've tried to use a buffer and frame conversion blocks,the former requires discrete sampling,the latter simply does not put the data into frames (automatically) of course. In my attempt to convert the sampling rate from continuous to discrete I have used the rate transition block which shows noOp as type of filter (that in my understanding means that doesn't do much) and consequently when connected to the buffer and error is returned:"All sample times must be discrete. No continuous or constant sample times are allowed.".
Could you please advise me on how to put the data I get from workspace into frames (and maybe not contentious time as it is now)?

답변 (1개)

Ankit Bhatnagar
Ankit Bhatnagar 2017년 6월 27일
Hi,
When you configure a block to perform frame-based processing, the block interprets an M-by-1 vector as a single-channel signal containing M samples per frame. The following documentation should be a good starting point which details on buffering input into frames and also how to use them as input and output.

카테고리

Help CenterFile Exchange에서 Single-Rate Filters에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by