RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
97
innovators for industry
Ctrl Command load_varpolydelay
Function
loads a table for the variable polygon delay into the RTC
®
4.
See the section
"Customizing The Variable Polygon Delay" on page 23
Parameters
STBFileName
name of the data file (with extension
*.STB
) as a pointer to a null-
terminated ANSI string. A data file can contain one or more tables.
TableNo
specifies which table in the data file shall be used (unsigned 16-bit value).
The parameter
TableNo
must be identical with extension
X
of the
command
[VarPolyTableX]
which denotes the desired table.
Result
error code as a signed 16-bit value:
Value
Description
≤
– 1
Success.
The absolute value of the error code is equal to the number of valid data points found in the
table. Invalid entries are ignored. See the section
"Customizing The Variable Polygon Delay" on
4
Verify error.
8
System driver not found, or the system driver is locked by another application.
10
Parameter error.
11
RTC
®
4 not found.
13
The specified table number was not found in the file; or the file was not found.
Integration
Pascal:
function load_varpolydelay (STBFileName: pchar, TableNo: word):
smallint;
C:
short load_varpolydelay (const char* STBFileName, unsigned short
TableNo);
Basic:
function load_varpolydelay (ByVal STBFileName$, ByVal TableNo%)%
Comments
• The table contains a number of data points for the customized variable polygon delay.
When loading the table, the RTC
®
4 determines suitable values for the entire
range of angles by linear interpolation.
Also see the section
"Customizing The Variable Polygon Delay" on page 23
• The command
overwrites any previously loaded table for the
variable polygon delay.
• After loading a program file by the command
the command
, the RTC
®
4 uses the internal (default) table for the variable
polygon delay (see
). That means the command
is only needed if a different table should be used.
• To return to the internal polygon delay table (after a different table has been used),
either the command
must be called.
References