Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 5 out of 5     Rate this Document

Acquiring On-Board Temperature from a PCI-6704 Static Analog Output Module

Primary Software: LabVIEW Development Systems>>Base Package
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>Base Package
Hardware: Multifunction DAQ (MIO)

Problem:
How can I read the on-board temperature sensor of a PCI-6704 data acquisition (DAQ) device?
The text below appears in the user manual, but it does not explain how to actually acquire the device temperature?

        The onboard temperature sensor measures the air temperature flowing over the board.
        This sensor is positioned near the onboard precision voltage reference, which can be
        affected by extreme temperatures. This sensor has a serial digital interface


Solution:
The on-board temperature sensor is accessible as a device property, and this functionality comes only  with the NI-DAQmx driver, not NI-DAQ.  Unlike the E-Series and M-Series boards, the temperature sensor on the PCI-6704 is not listed as an analog input channel.

LabVIEW:

DAQmx Calibration Info Node:Device Temperature
In LabVIEW, you can access the onboard temperature sensor using a property node. The DAQmx Calibration Info property node contains the More»Device Temperature (DevTemp) property which returns the current temperature in degrees Celsius.  The device must be specified as an input to Active Device (ActiveDev).

Text-based C code (LabWindows/CVI, VisualStudio, etc.):

For text-based programming, there is a function that is equivalent to the LabVIEW function described above.  It returns the temperature read by the sensor in degrees Celsius.

int32 __CFUNC DAQmxGetCalDevTemp(const char deviceName[], float64 *data);

A short example code written in C has been attached to this KnowledgeBase article.

Related Links:
Accessing the On-board Temperature Sensor of E Series Devices

Attachments:
GetDeviceTemperature.cGetDeviceTemperature.c




Report Date: 02/06/2008
Last Updated: 02/09/2008
Document ID: 4I5DCI09

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit