The Knock Sensor I/O task is a knock sensor simulator by Concurrent, applicable to the CP-DA0818-X or CS-GS-16AO16x cards. During the RTDB-configuration phase, you specify an output waveform (voltage) as a function of the engine crank angle (1-D lookup table). For a given channel, you map an analog output RTDB variable representing the crank angle. While the test session is running, the I/O task generates the output waveform values for the given crank angle window (defined as the angle traversed since the last crank update) from the look-up table. Output waveform resolution is defined by the user in terms of output points per cycle. The software uses linear interpolation to calculate the output values from the waveform, and then outputs the corresponding voltages to the relevant channel so they are evenly spaced over the cycle.
This I/O task may be used to output any signal that is defined via some angular relationship. Other uses besides knock have been for a cylinder pressure sensor simulation, and even a rudimentary engine sound generator (by playing out an idle engine WAV file against crank).
CP-DA0818-X
CS-GS-16AO16x
No driver needed
ICS-SWB-1282
Knock Sensor Configuration
Configure board settings.
|
|||
Channel Config:
The Channel Config pane allows you to individually configure each channel of the specified output card. To configure a given channel, click on the relevant node in the table. For example, to configure channel 0, click the "Channel 0" line in the table. For each channel you can specify:
I/O Mapping: For each channel, you can map:
|
|||
Knock Files:
Creating a Knock File: A knock file is an ASCII file with a ".knock" extension that specifies an output waveform for a given angle. To create a knock file:
The following are example knock files for the "knock" RTDB that is shipped in the Hardware-Tests/Knock-sensor project:
|
|
||
This analog output process writes the specified channels of the specified board. One instance of this process is run for each board configured in the RTDB.
The knock
test and RTDB in the Hardware-Tests/Knock-sensor project demonstrate the usage of the Knock Sensor simulator.