User`s guide
Generating Custom Driver Templates
The xPC Target Driver Authoring Tool is displayed.
3 In the M ain tab, enter:
• Driver name — The name for your driver. The tool will create supporting
files using this string as the prefix. For example, type
testdriver.
• Sample time — Select one of the following:
–
Mask parameter — If you want the block sample time to be settable
as a block dialog box parameter (Sample Time).
–
Inherited — If you want the block to inherit its sample time from
a connected block. No Sample Time parameter is displayed in the
block d ialog box .
4 If you have input ports for the block, click the Input Ports tab.
The Inport Ports tab is disp layed.
5 Click the Add button. Enter your input port information in the following
fields. Repeat as necessary for your defined input ports.
• Variable —Enterthenameoftheinput. Forexample,
speed.
7-5