Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx with C# scale and calibration

Hi here,

 

I'm currently developping a data acquisition application and I have some troubles.. I'm using DAQmx driver in C# without Measurement Studio.

 

I've read the examples with the DAQmx driver but I don't find what I want..

 

So, in my system I have 6 sensors, and I all value I get is in Volt. So what I want is to get the voltage value and convert it into bar for example. I tried to understand the custumScale but i'm a little bit confused right now..

 

I have created a task, and a channel for each sensor.

Here is what I have for pressure :

 

 myTask.AIChannels.CreateVoltageChannel("Dev1/ai2", "HautePression",
                            (AITerminalConfiguration)(-1), 0, 10, AIVoltageUnits.Volts);

 

Then I would like to calibrate these sensors, I know I would use a linear law, take a low reference value and a high reference value, ok, but how do I apply the gain and the offset value calculate ? Or is there another way to do ?

 

I hope I've been clear enough.

 

Thank you,

Paul

0 Kudos
Message 1 of 3
(6,112 Views)

Hello,

 

These links could be useful for you:

 

Let me know if you have specifics questions.

 

 

http://digital.ni.com/public.nsf/allkb/0464919A11C092E386256D800079C3BB

https://decibel.ni.com/content/docs/DOC-3706

http://digital.ni.com/public.nsf/allkb/3F6558112FD2C776862575B5004F7F87?OpenDocument

 

 

Regards

Samuel G. | GEMESIS

Certified LabVIEW Architect

Certified TestStand Developer

GEMESIS.EU

0 Kudos
Message 2 of 3
(6,007 Views)

Hello,

 

First, thank you for your answer. I have already read those links, and I think I'm missing something..

 

Moreover, this documentation doesn't explain to me how to do it programmaticaly..

 

So do I have to use Measurement and Automation Explorer (MAX) to create my task, my channels and my scales and then find a way to load the task in my program ? Or should I do everything in C# ?

 

In your last link, it explain how do I make a custom scale, but I still have to calculate the m and the b in the equation y = mx + b ?

And in the first link there is this sentence : "NI-DAQmx includes built-in support for many of the most common transducers, sensors, and actuators." ; I'm currently using common sensors, so I'm a bit confused about what I have to do...

 

0 Kudos
Message 3 of 3
(6,004 Views)