From: Daniel on 26 Mar 2010 13:56 I am trying to use the mean block to calculate a running average of my input. I currently take my input from the workspace in the form of an array, with the first column being the time and simply ascending integers and the second column being the data. I connect the "from workspace" block to the mean and then sent the result to the scope. The configuration parameters are for fixed step time and a disrete solver. However, when I try to run the sim, I get an error saying that all sample times must be discrete. Aren't they already? What am I doing wrong? Thanks D
From: James Allison on 29 Mar 2010 10:08 It sounds like you have a block in your model with a continuous sample time specified (i.e., a 0 in the sample time field). -James Daniel wrote: > > > I am trying to use the mean block to calculate a running average of my > input. I currently take my input from the workspace in the form of an > array, with the first column being the time and simply ascending > integers and the second column being the data. I connect the "from > workspace" block to the mean and then sent the result to the scope. The > configuration parameters are for fixed step time and a disrete solver. > > However, when I try to run the sim, I get an error saying that all > sample times must be discrete. Aren't they already? What am I doing wrong? > > Thanks > D
|
Pages: 1 Prev: Resizing images pasted into Word using activex Next: All m-files/ funcs in a path? |