Hello Everybody, I am trying to implement a Sequence Generator as a Communication Source using S Functions for Simulink. Since I am new to S Functions, I am using the S Function builder to implement it. The problem is that the builder is not allowing me to have no input ports and is forcing a minimum of one port. I do not need any input ports and just one output port (complex) is required. Can someone help me on this subject? Also alongside I would like to get some help on how to write the code for Frame based signals with a given sample time. I shall be thankful for any help in this regard. Regards, -Snehamoy |
|
S Functions
Started by ●January 17, 2004
Reply by ●January 20, 20042004-01-20
You can generate code and then edit the code to remove the input port. The realted code should be in function mdlinitializesizes. It is also not very difficult to start writing s-function from scratch using the examples. If your sequence is not long you can generate the data and use a 'from workspace' block instead of building a custom block. For frame based input, you will get a vector of inputs instead of a scalar. The sample time will be equal to the frame period divided by the frame length. Navan --- snehamoy_banerjee <> wrote: > Hello Everybody, > > I am trying to implement a Sequence Generator as > a Communication > Source using S Functions for Simulink. Since I am > new to S Functions, > I am using the S Function builder to implement it. > The problem is > that the builder is not allowing me to have no input > ports and is > forcing a minimum of one port. I do not need any > input ports and just > one output port (complex) is required. Can someone > help me on this > subject? > > Also alongside I would like to get some help on > how to write the > code for Frame based signals with a given sample > time. > > I shall be thankful for any help in this regard. > > Regards, > > -Snehamoy __________________________________ |