Simulink sim of rician channel ber process - matlab

I'm learning simulink and I want to use the rician channle block from the communications blockset. I'm told I need to change the format format. Would anyone have some sample code where they used the rician channels in simulink to model a bit error rate process?

MathWorks appears to have a tutorial on the subject. Have you taken a look at that?

Related

Converting EEG osc signal as midi for use in Ableton Live

I have EEG signal that is processed using openvibe, which outputs the signal as osc. Using the livegrabber I was able to receive the signal in ableton (see pic). However, now I’m stuck on how I can make use of this signal. I want to convert it into midi to control vst parameters in Ableton. Can anyone give me pointers?
For the answer, linking to the conversation from the same question on the Showsync forum: https://forum.showsync.com/t/integrating-eeg-osc-signal-with-ableton/794/2

How to sample a signal from a continuous time domain in to a input port digital design (Simulink to HDL integration)

I am doing Simulink based Hardware software co-simulation. I have a simulink block which is outputing fixed point 32 bit data in a continuous domain. I want to send this data to an HDL design again in fixed point 32 bit format. Whenever i integrate the two blocks together, i am getting error. I tried adding quantizer but it only works on uint/double data types which is not acceptable to the HDL block. How can I discretize the data such that it is acceptable in the RTL domain? If i add unit delay,it works but the data is delayed which is not fair
Thanks a lot for your help
To sample a continuous signal and convert it to digital electronics, you usually need an ADC: "Analog to digital converter".
You should start by googling ADC integration.

send data with serial send block in Simulink to Arduiino

I'm trying to send and receive data through a serial port using simulink matlab and Arduino. when to receive data from Arduino to simulink matlab no problem!!
but for sent data to Arduino, I'm faced with this error.
and simulation simulink picture is:
The notation double (c) on the output y from your MATLAB Function block indicates that the signal is numerically complex, see Display Signal Attributes in the documentation for more details. This is the source of your problem, as mentioned in the error message (which is pretty self-explanatory by the way).
To fix it, you need to specify the data type of your outputs to be real in the Ports and Data Manager.
Alternatively, you can add a Complex to Real-Imag to the output(s) of your MATLAB Function block and take only the real or imaginary part of the signal, depending on what you want your algorithm to do.

Simulink Desktop Real-Time and Least Mean Square adaptive algorithm

I need to implement an LMS-based adaptive audio-cancellation algorithm on the Simulink Desktop Real-Time toolbox.
The physical system is composed of a microphone recording a noise source and another microphone recording the residual noise after the control process (antinoise being injected by a speaker controlled by Simulink).
For the (adaptive) LMS algorithm to work properly I need to be able to work on a sample-by-sample basis, that is at each sampled time instant I need to update the adaptive filter using the synchronised current sample value of both microphones. I realise some delay is inevitable but I was wondering whether it's possible on Simulink Desktop Real-Time to reduce the buffer size of the inputs to one sample and thus work on a sample-by-sample basis.
Thanks for your help in advance.
You can always implement the filter on a sample by sample basis.
But you still need a history of input values to perform the actual LMS calculation on. On a sample by sample basis this would just mean using a simple FIFO buffer.
If you have access to the DSP Toolbox then there is already an LMS Filter block that will do this for you.

Automatically generate circuits on its own in PLECS (Piece-wise Linear Electrical Circuit Simulation )

Is there any way I could program the Matlab/Simulink to be able to automatically generate circuits on its own? I am using PLECS blockset (Piece-wise Linear Electrical Circuit Simulation ) embedded in Simulink.
For example, I need to have hundreds of identical block in a single .mdl file, instead of inserting one by one by myself by calling the block which I previously saved in Simulink library, is it possible that Simulink can be programmed to automatically generate hundreds of blocks by itself?
The only way I was told is by "using vectorization for most components. Most components are vectorized if they have a vectorized input signal or if one of their parameter is specified as a vector." However, I could not find any further information/details, appreciate if anyone of you could give opinion on this?
I just want to know if this is possible? Else, I would have to try another approach?
Thanks!
edited on 10 July 2013: Further to my question, I have confirmed with Plexim that there isn't such features ( add_block and add_line) in Plecs (Piece-wise Linear Electrical Circuit Simulation), does anyone know if there is any way I could automate the Plecs model? Appreciate any suggestion...Thanks
You can probably use functions like add_block and add_line to automate the creation of your Simulink model from a library.