Filter löschen
Filter löschen

"From Workspace" data buffering into frames

1 Ansicht (letzte 30 Tage)
Georgios
Georgios am 22 Jun. 2017
Beantwortet: Ankit Bhatnagar am 27 Jun. 2017
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)?

Antworten (1)

Ankit Bhatnagar
Ankit Bhatnagar am 27 Jun. 2017
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.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by