Quantcast
Channel: Measurement Studio for .NET Languages topics
Viewing all articles
Browse latest Browse all 1999

Custom Scale for NI-DAQ using C#

$
0
0

I'm trying to use a custom scale (linear) for a few of the channels I'm reading in from a USB-6009 in c#. All of the examples I find are in labview. I've written the code but only seem to get the prescaled values to save. Any help would be greatly appreciated.

 

private LinearScale myCustomScale;

double scale_m = 60;

double scale_b = -150;

myCustomScale = new LinearScale("CustomScale", scale_m, scale_b);

myTask.AIChannels.CreateVoltageChannel("Sim/ai1", "", (AITerminalConfiguration)(RSE), 0, 5, "CustomScale");


Viewing all articles
Browse latest Browse all 1999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>