User`s guide
15 Frequently Asked Questions
Can I Create a Sta
nd-Alone xPC Target Application to
Interact with a T
arget Application?
Yes. You can use e
ither the xPC Target API dynamic link library (DLL) or
the xPC Target c
omponent object model (COM) API library to create custom
stand-alone a
pplications to control a real-time application running on the
target PC. To d
eploy these stand-alone applications, you must have the x PC
Target Embedd
ed Option license. Without this license, you can create and
use the stand-
alone application in your environment, but cannot deploy that
application
on another host PC that does not contain yo ur licensed copy of the
xPC Target so
ftware.
See the xPC T
arget API Guide for details.
Can Signal
Outputs from Vir tual Blocks Be Tagged?
You cannot
directly tag signal outputs from virtual blocks. Instead, do the
following
:
1 Add a unit
y gain block (a Gain block with a gain of 1) to the model.
2 Connect the signal output of the virtual block to the input of the unity
gain block.
3 Tag the output signal of the unity gain block.
Why Has the Stop Time Changed?
If you change the step size of a target application after it has been built, it
is possible that the target a p pl ication wil l execute fo r fewer step s than you
expect. The number of execution steps is
floor(stop time/step size)
When you compile code for a model, the Real-Time Workshop softw are
calculates a number of steps based on the current step size and stop time.
If the stop time is not an integral multiple of the step size, the Rea l-Time
Workshop software also adjusts the stop time for that model based on the
original stop time and step size. If you later change a step size for a target
application, but do not recompile the code, the xPC Target software uses the
new step size and the a djusted stop time. This might lead to fewer steps
than you expect.
15-32