Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. wasomix

    Problem with simulation in Simulink

    Hi FeX32, thanks a lot for your answer. About the problem I got when I run the simulation with Simulink was related with the memory management. I did the debug and I got a similar error some time ago, and it was related to my C code; in this case the code in my library, because I was trying to...
  2. wasomix

    Problem with simulation in Simulink

    Hello, I try to simulate two S-function blocks. Each of this blocks use the same 2 static libraries. Due to it, when I generate the 2 static libraries with Visual Studio 2010, in the project properties, I set the "Runtime Library" option to "Multi-threaded(/MT)". Afterwards, I generate the...
  3. wasomix

    Real Time Workshop error

    Hello, I am using the Real Time Workshop and trying to build a simulink model but I keep getting this error: error C2079: 'statesInfo2' uses undefined struct '_ssStatesInfo2' I have this struct in a file generated by the Real Time Workshop. Any help would be really appreciated. Thaks...
  4. wasomix

    How to use an static library in Simulink

    Hello, I have generated my own static library using Visual Studio 2010 and I wanted use the entire library in a Simulink model. In this Simulink model I have different blocks. Two of them are S-functions and I would like to use this library in this two blocks, but I do not know if there is some...
  5. wasomix

    The breakpoint will not currently be hit

    Hello everybody, I am trying to debug 2 S-Function blocks using Visual Studio 2010. I have done it following the instructions of the link http://www.mathworks.es/help/toolbox/simulink/sfg/bq2rjeu-1.html Because I use Visual Studio for debugging I have done what says the point: "Debugging C...
  6. wasomix

    C++ or C with S-Function Builer from Simulink?

    Hi Fex32 and SomptingGuy, First of all thank you very much for your answer. About the S-Builder functions I have decided to use C instead of C++. I was doing some test. I wrote a function with a loop in Visual Studio 2010. I called this function from Simulink, and the same function with a C...
  7. wasomix

    C++ or C with S-Function Builer from Simulink?

    Hi, I have just read on the next link http://www.mathworks.es/help/toolbox/simulink/sfg/brgo03i-2.html that S-Function Builder can be used with C and C++
  8. wasomix

    C++ or C with S-Function Builer from Simulink?

    Hello everyone, I went through the documentation for the S-Function Builder from Mathworks, but I do not know if it is possible use c++ with S-Function Builder or just C. I did some test and I wrote the same code for a C and for a C++ using a S-Function Builer. For the one in C I did not get...
  9. wasomix

    Bus in Simulink

    Hello Greg, thank you very much for your quick answer. in Picture 1, I have both blocks and I have connected them with a wire, but I do not know if the wire behaves as a bus. The name of the wire is "a". in Picture 2, I have used Simulink.BusElement(I think is a class), and I have changed the...
  10. wasomix

    Bus in Simulink

    Hello, I am a begginer in simulink and I am trying to pass a structure from one block to another block. My first approach is utilizing a bus to send the structure from the first block to the second one, but I do not know how to connect both blocks with a bus. Every time I connect them, it...

Part and Inventory Search

Back
Top