Sensor Test Sequence
- Aktualisiert2025-04-25
- 5 Minute(n) Lesezeit
The Sensor Test sequence demonstrates temperature measurements captured with a thermistor, RTD, and thermocouple sensing devices using C Series temperature input modules (NI-9211, NI-9217), C Series voltage input modules (NI-9215), and analog input modules (TS-15100, TS-15200).
This TestStand sequence uses the LabVIEW measurement libraries. By default, the test sequence is installed to the following location: C:\Users\Public\Documents\National Instruments\PCB Assembly Test Toolkit for LabVIEW\TestStand\Automation\Sensor Tests
Required Driver Application Software
This sequence requires a supported version of NI-DAQmx.Highlighted Features
- DAQ_DC Voltage Generation
- DAQ_Temperature Thermistor Measurement
- DAQ_Power Supply Source and Measure
- DAQ_Temperature Thermistor Measurement
Hardware Configuration
The following figure illustrates the hardware connections for this example sequence.

For cDAQ thermistor measurements, the analog input terminal configuration is differential and floating. To avoid common mode voltage errors, connect a direct wire or bias resistor between AIx- to COM based on the ground differences between the sensing and the measurement device. The possible bias resistor values range from 1 kΩ to 10 kΩ. Refer to Measurement System Types and Signal Sources for more information.

For the TestScale thermistor measurement, the default analog input terminal configuration is RSE.
Refer to the documentation for your specific device for pinouts and other information necessary to adapt this example sequence to your application.
For shielded thermocouple measurements, connect the COM terminal of your device to the shield. Connect the shield to a common-mode voltage reference for the thermocouple. A common-mode voltage reference is a voltage that is within ±1.2 V of the common-mode voltage of the thermocouple. If you are using a floating thermocouple or a thermocouple within ±1.2 V of earth ground, connect COM and the shield to earth ground. The shield grounding methodology varies depending on the application. Refer to the following for an illustration of a typical shielding configuration.

Refer to Taking a Thermocouple Measurement in LabVIEW for details about thermocouple measurements using NI DAQ devices.
Using the Sequence with Physical Hardware
- Run the sequence once in simulation mode. Running the sequence
in simulation mode creates the required global virtual channels in NI MAX that
you must modify. Note In this example, physical and global virtual channels are used to configure the terminal or pin to perform the instrument actions. Global virtual channels are software entities that encapsulate the physical channel along with other channel specific information such as range, terminal configuration, and custom scaling. You can create global channels in NI MAX and call them from measurement libraries.
- Right click the Import Hardware Config step and select to skip the step.
- Configure the remaining sequences. Open each sequence and examine the Note to run with Hardware entry.
- Configure the Thermistor Test - cDAQ sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the DC Voltage Generation and Temperature Thermistor Measurement initialize steps: TS_THEX and TP_TH0. Refer to Creating and Modifying Global Virtual Channels for more information.
- Update the Thermistor Parameter and Terminal Configuration based on your thermistor settings to ensure accurate temperature measurements.
- Review the analog output and analog input pin configurations for your use case.
- Save the sequence.
- Configure the Thermistor Test - TestScale sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the Temperature Thermistor Measurement initialize step: TS_TH1. Refer to Creating and Modifying Global Virtual Channels for more information.
- Open the PS – Initialize step and update the Physical Channels input to use the TestScale power module pin.
- Update the Thermistor Parameter and Terminal Configuration based on your thermistor settings to ensure accurate temperature measurements.
- Review the analog output and analog input pin configurations for your use case.
- Save the sequence.
- Configure the RTD Test sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the Temperature RTD Measurement initialize step: TP_RTD. Refer to Creating and Modifying Global Virtual Channels for more information.
- Update the RTD Type, Sensor Resistance at 0 deg C (ohm), Resistance Configuration, Current Excitation Source, Current Excitation (A), and ADC Timing Mode parameters based on your RTD settings to ensure accurate temperature measurements.
- Save the sequence.
- Configure the Thermocouple Test sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the Temperature Thermocouple Measurement initialize step: TP_TC. Refer to Creating and Modifying Global Virtual Channels for more information.
- Update the Thermocouple Type, CJC Temp (deg C), Enable Autozero, and Auto Zero Mode parameters based on your RTD settings to ensure accurate temperature measurements.
- Save the sequence.
- Configure the Turn Off all AO Channels
sequence.
- Open the DC Voltage Generation - Initialize AO Channels step and update the Physical Channels input to use your analog output channel.
- Review the analog output pin configurations for your use case.
- Save the sequence.
- Configure the Turn Off Power Channel sequence.
- Open the Initialize step and update the Physical Channels input to use your power channel.
- Review the analog output configurations for your use case.
- Save the sequence.
Verwandte Inhalte
- Creating and Modifying Global Virtual Channels
A virtual channel is a collection of settings such as a name, a physical channel, input terminal connections, the type of measurement or generation, and scaling information. A virtual channel that is created outside a task is a global virtual channel.
- Measurement System Types and Signal Sources
- Taking a Thermocouple Measurement in LabVIEW