From: Erik on 15 Apr 2010 08:41 I'm receiving serial inputs to a simulink model in the format ASCII-characters (in dec). For example, I'm receiving 49 46 53 which corresponds to the number 1.5. Which is the easiiest way to convert 49 46 53 to a 1.5 (double) to be used in the Simulink model? The Matlab-command native2unicode performs the conversion but I can't use this command in an Embedded Matlab function and build my model to a platform (in my case a dSpace microautobox). Is there a simulink model block which performs this operation? Thank you, Erik
From: Erik on 16 Apr 2010 01:50 Anyone got a hint about this one? "Erik " <erik.jonasson(a)consultant.volvo.com> wrote in message <hq71h2$kua$1(a)fred.mathworks.com>... > I'm receiving serial inputs to a simulink model in the format ASCII-characters (in dec). For example, I'm receiving 49 46 53 which corresponds to the number 1.5. > Which is the easiiest way to convert 49 46 53 to a 1.5 (double) to be used in the Simulink model? > > The Matlab-command native2unicode performs the conversion but I can't use this command in an Embedded Matlab function and build my model to a platform (in my case a dSpace microautobox). Is there a simulink model block which performs this operation? > > Thank you, > Erik
|
Pages: 1 Prev: Sum the rows of a column that have the same value in another column Next: Filter circuits |