National Instruments 372139B-01 Automobile User Manual


 
Chapter 6 Automotive Diagnostic Command Set API for C
Automotive Diagnostic Command Set User Manual 6-28 ni.com
ndSetProperty
Purpose
Sets a diagnostic global internal parameter.
Format
void ndSetProperty(
unsigned short propertyID,
unsigned long propertyValue);
Input
propertyID
Defines the parameter whose value is to be modified:
0 Timeout Diag Command is the timeout in milliseconds the master waits for the
response to a diagnostic request message. The default is 1000 ms.
1 Timeout FC (Bs) is the timeout in milliseconds the master waits for a Flow
Control frame after sending a First Frame or the last Consecutive Frame of a
block. The default is 250 ms.
2 Timeout CF (Cr) is the timeout in milliseconds the master waits for a
Consecutive Frame in a multiframe response. The default is 250 ms.
3 Receive Block Size (BS) is the number of Consecutive Frames the slave sends
in one block before waiting for the next Flow Control frame. A value of 0
(default) means all Consecutive Frames are sent in one run without interruption.
4 Wait Time CF (STmin) defines the minimum time for the slave to wait
between sending two Consecutive Frames of a block. Values from 0 to 127 are
wait times in milliseconds. Values 241 to 249 (Hex F1 to F9) mean wait times
of 100 μs to 900 μs, respectively. All other values are reserved. The default is
5ms.
5 Max Wait Frames (N_WFTmax) is the maximum number of WAIT frames
the master accepts before terminating the connection. The default is 10.
6 Wait Frames to Send (N_WAIT) is the number of WAIT frames the master
sends every time before a CTS frame is sent. If you set this value to a negative
number (for example, 0xFFFFFFFF = –1), the master sends an OVERLOAD
frame instead of a WAIT, and reception is aborted. The default is 0 for maximum
speed.
7 Time between Waits (T_W) is the number of milliseconds the master waits
after sending a WAIT frame. The default is 25.