Re: XPC-target, s function problem
Rui,
It sounds like you have a problem inside the subroutine you're calling.
You need the source code to that so you can insert some printf statements
to trace where you're failing.
When your code is on the target, the execution environment is quite
different than it is on the host in simulation.
Gordon Weast
xPC Target Development
The MathWorks
Rui wrote:
hello,
I have a s-function block in my model that is giving me problems. Whenever I run the simulation in real time with that block, instantaneously I get a TCP/IP connect error; All connections to the target computer are lost.
I managed to find the problem inside the c-code and it only arises when there is a call to a specific sub-routine in a provided library.
This model works perfectly in a simulation offline. What could be causing the problem in real time.
Thank you,
Rui
.
Relevant Pages
- Re: RTW doubt n simulation time problem
... Do you want your DC motor model to run in real time or the whole simulation ... I get a picture that it requires a host PC and a target PC. ... (comp.soft-sys.matlab) - Re: XPC-target, s function problem
... You need the source code to that so you can insert some printf statements ... When your code is on the target, ... Whenever I run the simulation in real time with that block, instantaneously I get a TCP/IP connect error; All connections to the target computer are lost. ... (comp.soft-sys.matlab) - Re: ntpd IPv6 support on Windows?
... getaddrinfo and friends and the issues with the wspiapi.h ... The NTP code tries to use getaddrinfoand friends if possible, ... compiled for a specific target OS and target OS version, ... the public source code base. ... (comp.protocols.time.ntp) - Re: Lahman, how ya doing?
... then this doesn't seem interesting to the simulation because it will all be replaced by your heat flow calculation that produces the delta V. (I had that heat flow calculation living in Target and responding to the E1 event.) ... Does the feedback control processing deal directly in delta-V values or is a software driver converting the delta-V to a temperature as it is sampled and before it is processed? ... that could be completely ignored because your simulation won't have any 60-cycle pickup in the delta-Vs because they are computed in the simulation. ... There actually are issues with digital versus analog controllers because of the discrete sampling time of the digital controller-- the system can change between sampling times and will be less stable under a digital controller. ... (comp.object) - Re: It seems that port mapping causes no skew
... variable assignment as a method to save a result to be used by ... source code literally describes the precise implementation. ... So one must accept the paradox that the hardware that is being ... Both synthesis and simulation are acting on the same source code ... (comp.lang.vhdl) |
|