NSPDIAG User Guide
NSPDIAG Operation
NSPDIAG User Guide—529007-002
1-12
Option G – Copy Test Commands From Data File
into Memory
Option G – Copy Test Commands From Data File into Memory
When -G is selected, the option of ‘copy test commands from data file into memory’ is 
toggled. The default is off, don’t copy the test commands into memory.
Option G Off: NSPDIAG opens the data file, reads the first test command from the data 
file, and sends it to the device; then reads the next test command and sends it to the 
device. This process continues until the end of file is reached. 
Option G On: NSPDIAG opens the data file, copies test commands from the data file 
into memory. It sends the first test command to the device; then reads the next test 
command and sends it to the device. This process continues until the end of file is 
reached. 
There is a limit on the total character count for the commands being copied into 
memory from the data file. The maximum character count is 9,999, not including the 
blank line and * comment. A line terminator for each data line is included in the count. 
When the maximum character count is exceeded, an error message appears and the 
test commands are not processed.
Only the data file can be specified when this option is set to On – not the batch file. If 
Option B – Batch File Name was used to specify a batch file name prior to setting this 
option, the batch file name is deleted. 
Option H – Handle Device <CR><LF>
<CR> and <LF> are usually appended to the end of a response from a device. The 
default is I, ignoring <CR><LF>. The option to append a CR/LF to a response is 
configured in the NSP using Command 101. For example <101#023D#>.
The expected response read from the data file cannot have CR/LF at the end of the 
response, or it will not match. Option -H allows the user to select the following options 
to handle this condition.
N (NORMAL)  - Do nothing.
I (IGNORE)  - When <CR><LF> exists in the actual response, erase them.
R (REQUIRED) - Add <CR><LF> to the end of the expected response.
For example, when CR/LF are appended to the end of a response and the value for 
option-H is N (no change), they do not match.
When the value for option -H is I, <CR><LF> at the end of response is erased before 
comparing, and they will match.
When the value for option -H is R, <CR><LF> are added to the end of response, and 
they will match.
When the current selection is I and -H is selected, the following message is displayed:
Expected Response: <00#000070#test#>
Actual Response: <00#000070#test#><CR><LF>










