RTC
®
4 PC Interface Board
Rev. 1.3 e
10 Commands And Functions
117
innovators for industry
List Command set_trigger
Function starts measurement and storage of the specified signals
Parameters
sample-
period
measurement period [(1..65535) · 10 µs] as an unsigned 16-bit value
signal1
,
signal2
The following signals (each represented by an unsigned 16-bit value) are
specifiable for measurement channels 1 and 2:
= 0: LASERON signal (1 = laser on, 0 = laser off)
= 1: StatusAX (X-axis status channel of head A)
= 2: StatusAY (Y-axis status channel of head A)
= 3: StatusAZ (Z-axis status channel of head A)
= 4: StatusBX (X-axis status channel of head B)
= 5: StatusBY (Y-axis status channel of head B)
= 6: StatusBZ (Z-axis status channel of head B)
= 7: SampleX (X-axis cartesian output value)
= 8: SampleY (Y-axis cartesian output value)
= 9: SampleZ (Z-axis cartesian output value)
= 10: SampleAX_Corr (X-axis output value of head A)
= 11: SampleAY_Corr (Y-axis output value of head A)
= 12: SampleAZ_Corr (Z-axis output value of head A)
= 13: SampleBX_Corr (X-axis output value of head B)
= 14: SampleBY_Corr (Y-axis output value of head B)
= 15: SampleBZ_Corr (Z-axis output value of head B)
Integration Pascal:
procedure set_trigger(sampleperiod, signal1, signal2: word);
C:
void set_trigger(unsigned short sampleperiod, unsigned short signal1,
unsigned short signal2);
Basic:
sub set_trigger(ByVal
sampleperiod As Integer,
ByVal
signal1 As
Integer,
ByVal
signal2 As Integer
)
Comments • The set_trigger command will always cause exactly 32768 values per measurement
channel to be measured and stored onto the RTC
®
4. Afterward, the get_waveform
command can be used to transfer the measured values to the PC for evaluation.
• The current status of a measurement session can be queried via the
measurement_status command.
• Once started, a measurement session can only be canceled by again calling the
set_trigger command. Previously measured values are thereby lost.
• The type of scan system being used determines which status signals will be generated
and returned via the status channels. Specific information can be found in your scan
system’s operating manual.
• For scan systems with only one status channel, the status signals are only readable if
signal1,2 = 1
or
signal1,2 = 4
.
• Coordinate transformations defined by set_matrix, set_matrix_list, set_offset or
set_offset_list are already reflected in the SampleX, SampleY and SampleZ cartesian
output values.
• The SampleAX_Corr..SampleBZ_Corr output values are the (digital) output values actu-
ally transmitted from the RTC
®
4 to the scan system. The RTC
®
4 computes these values
while taking into account the SampleX, SampleY and SampleZ output values as well as
the selected correction file.
References get_waveform, measurement_status, control_command