I'm relatively new to this, so maybe there is something easy I'm missing.
I' writing an application to log temperatures from thermocouples (Type J) using C#, Measurement Studio (7.0), and DAQmx. I have card DAQ-6062E and terminal block SCB-68. I've wired the thermocouples in DIFF mode (positive lead to ACH1 [pin 33], negative lead to ACH9 [pin 66], and tied AIGND [pin 32] and ACH9 together). I also set the switches on the terminal block to DIFF mode. I'm using the internal CJC in SCB-68.
My application is reading the temperatures about 3-4 degC than what the actual temp is (at least according to using a handheld fluke with same thermocouples).
I've created the Task using both MAX and hardcoding the task (thought maybe my code was wrong), but the measure temp. is still low.
Just for fun, I created a task to see what temp. my CJC was and it is measuring correctly. This leads me to believe I'm doing something wrong.
Here's a snippet of code:
///
/// Initializes instance members of the class.
///
private void InitializeMyComponents()
{
taskRunning = false;
if (this.Variables != null)
{
asyncCallBack = new AsyncCallback(aiReaderCallBack);
task = new Task("TemperatureTask");
AIChannel aiChannel = task.AIChannels.CreateThermocoupleChannel("dev1/ai1:" + Convert.ToString(this.variables.NumOfChannels),
"Channel1",
this.variables.MinTemp,
this.variables.MaxTemp,
this.variables.Type,
AITemperatureUnits.DegreesC);
task.Timing.ConfigureSampleClock("",this.variables.Frequency, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples);
task.Control(TaskAction.Verify);
aiReader = new AnalogMultiChannelReader(task.Stream);
}
}
I appreaciate any help given. If you need more info, let me know and I'll try and provide it.
Thanks in advance,
phil