To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows how to acquire raw data (I16 format) and convert it back to a scaled voltage value using two different methods in DAQmx. his example shows how to call a targeted Windows' application (i.e. Calculator) using the System Exec VI.
Description
This example shows how to acquire raw data (I16 format) and convert it back to a scaled voltage value using two different methods in DAQmx. The first method is manually scaling the voltage by using the equation "Voltage Reading = (binary reading/2^bit)*(Vmax-Vmin)". The second method uses the DAQmx Channel property node: AI Device Scaling Coefficients to convert the binary data to scaled voltage.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Check out this article to learn more about scaling binary values: http://digital.ni.com/public.nsf/allkb/0FAD8D1DC10142FB482570DE00334AFB?OpenDocument.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.