Jump to content
  • 0

Interpretation of the measured values of an analogue input


MJ0082

Question

Hello,

I am completely new into programming with the UL. I program in C# and have implemented the sample program ULAI02 one-to-one. So I am reading out analogue inputs. The device i am using is the USB-1616FS

Now I am wondering how to interpret the values (ushort) in "ADData". I get values in the range 50000 while a voltage of 2.5V is applied to the analogue input, about 60000 when a voltage of approx. 4.5V is applied. Unfortunately, I can't find the connection.

Many thanks in advance.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello @MJ0082.

The Universal Library (UL) Help is a good resource for developers to utilize when programming. 

https://www.mccdaq.com/pdfs/manuals/Mcculw_WebHelp/ULStart.htm

The USB-1616FS has a 16-bit A/D converter for 65,536 integer count values.  Given your two data points, you must have the analog input range set to +/-5 V.  The integer count is 0 at -5 V and 65535 at +5 V.  Check your wire connections and do not leave any input channels open.

Since the USB-1616FS does not support SCALEDATA, the UL examples display integer count values, not voltage values. 

image.png

 

image.png

 

For the USB-1616FS, you will need to use WinBufToEngArray() function to convert integer values to engineering unit values.

image.png

 

Edited by Fausto
removed images
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...