Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
LabVIEW-Measurements.pdf
Скачиваний:
61
Добавлен:
29.05.2015
Размер:
3.37 Mб
Скачать

Chapter 9 SCXI—Signal Conditioning

You also can specify a range of channels. The string calgnd0:7 grounds the amplifier inputs for channels 0 through 7 and reads the offset for each amplifier.

Use the Scaling Constant Tuner VI, available on the Functions»Data Acquisition»Signal Conditioning palette, to modify the scaling constants so LabVIEW automatically compensates for the amplifier offset when scaling binary data to voltage. Refer to the SCXI-1100 Voltage VI in the examples\daq\scxi\scxi1100.llb for an example of how to use the Scaling Constant Tuner VI.

VI Examples

If you use the DAQ Channel Wizard to configure your channels, you can simplify the programming needed to measure your signal. LabVIEW configures the hardware with the appropriate input limits and gain, and

performs CJC, amplifier offsets, and scaling for you. You can use the Easy VIs or the Continuous Transducer VI, available in the examples\daq\ solution\transduc.llb, to measure a channel using a channel name. Enter the name of your configured channel in the channels input. The device input value is not used by LabVIEW when you use channel names. The acquired data is in the physical units you specified in the DAQ Channel Wizard.

The remainder of this section describes how to measure temperature with the SCXI-1100 and SCXI-112X modules using thermocouples when you do not use the DAQ Channel Wizard. The temperature examples below use both cold-junction measurements and amplifier offsets. In SCXI analog input examples, you cannot set the scaling constants with the Easy VIs (determined by the amplifier offset). With the Intermediate VIs, you can change the scaling constants before acquisition begins, and the

Advanced VIs include functions that are not necessary to accurately measure temperature with SCXI modules. The examples described in this section use Intermediate VIs along with transducer-specific VIs.

First, you should learn how to measure temperature using the SCXI-1100 with thermocouples. You can use the example SCXI-1100 Thermocouple VI, available in the examples\daq\scxi\ scxi1100.llb. Open the VI and continue reading this section.

To reduce the noise on the slowly varying signals produced by thermocouples, you can average the data and then linearize it. For greater accuracy, you can measure the amplifier offset, which helps scale the data and lets you eliminate the offset error from your measurement. Figure 9-6 shows how you can program the Acquire and Average VI, available in the

LabVIEW Measurements Manual

9-20

www.ni.com

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]