xPC Target | ![]() ![]() |
Scaling Input to Output
Hardware Input |
Block Input Data Type |
Scaling |
Volts |
double |
temperature in either degrees C, K, or F. |
Driver Block Parameters
Conversion rate (interrogation time) -- From the list, choose either 50Hz
, 60Hz
, or 400 Hz
. This is the conversion rate for the V-F A/D converter. The conversion rate is the same for all input channels.
Number of samples for moving average -- From the list, choose a value from 1 to 16. Converted signal values are put into a cyclic buffer of size n which is used to calculate the moving average over these n samples.
Number of channels to be acquired (1..n) -- From the list, choose a value from 1 to 16. This is the number of input channels activated for conversion. The first channel of the scan is always and input channel with the number 1 and the last channel has the number n.
Vector input thermocouple types (cell array of char) -- For each acquired channel, enter a valid type of either 'J',
'K'
, 'E'
, 'T'
, 'R'
, 'S'
, or 'B'
. This vector defines the type of thermocouple for each channel. The vector must be the same length as the Number of channels to be acquired.
Vector of input gains (double array) -- For each acquired channel, enter a valid input gain of either 1,
125
, 166.7
, or 400
.
This vector defines the input gain for each channel. The vector must be the same length as the Number of channels to be acquired.
Vector or temperature formats (cell array of char) -- For each acquired channel, enter a valid format of either 'C'
or 'F'
. 'C'
= Celsius and 'F'
= Fahrenheit. The vector must be the same length as the Number of channels to be acquired.
Read and output CJC temperature -- If you want the block to read, convert, and output the temperature of the cold junction (CJC) sensor on the board, select this check box. If selected, the block shows an additional output port with the value of the CJC temperature.
Sample time -- Enter a base sample time or a multiple of the base sample time.
PCI Slot (-1:autosearch) -- Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter
If two or more boards of this type are physically present in the target PC, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type
Note
Each time a target application containing this driver block is downloaded to the target PC, the board automatically does a full calibration. Thermocouple sensor calibration is an extensive procedure and because it has to take place for each channel independently, the calibration time can easily exceed several seconds, especially when the number of channels to be acquired is 5 or higher. Because of this long calibration period during the initialization stage of the target application, the download procedure can time-out and return an error message. To avoid this error, increase the default time-out duration. See Increasing the Time Out Value. |
![]() | PCI-DAS-TC | Contec | ![]() |