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");