User`s guide
12 Troubleshooting
12-24
Can I Create a Stand-Alone xPC Target Application to Interact with a
Target Application?
Yes. You can use either the xPC Target API dynamic link library (DLL) or the
xPC Target component object model (COM) API library to create custom
stand-alone applications to control a real-time application running on the
target PC. To deploy these stand-alone applications, you must have the xPC
Target Embedded Option. Without the xPC Target Embedded Option, 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 your licensed
copy of xPC Target.
See the xPC Target API documentation for details.
Can Signal Outputs from Virtual Blocks Be Tagged?
You cannot directly tag signal outputs from virtual blocks. Instead, do the
following:
1 Add a unity 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 application will execute for fewer steps than you
expect. The number of execution steps is
floor(stop time/step size)
When you compile code for a model, Real Time Workshop 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, Real Time Workshop 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, xPC
Target uses the new step size and the adjusted stop time. This might lead to
fewer steps than you expect.