Kyle,
Does NI recommend using autozero at least once per channel for thermocouple readings? for voltage readings?
I don't understand what you are trying to say about the CJC. Does it already read once per channel or once per module? Do I need to set it to any configuration other than that which it is already programmed for? Does the CJC count as one of the samples in the 14 S/s rate?
Here is the code I have for setting up the task. I'm sure you will able to understand this regardless of your knowlege of VB.NET. NOTE: I just added task.start. I haven't tested this yet.
While ChannelCount < numChannels
While AIChannels(ChannelCount).Device = Device
TasksChannelCount(TaskCount) += 1
With AIChannels(ChannelCount)
Select Case AIChannels(ChannelCount).Type
Case Is = "Temperature"
Tasks(TaskCount).AIChannels.CreateThermocoupleChannel(.Device & "/" & _
.Channel, Trim(.Name), .Min, .Max, AIThermocoupleType.K, _
AITemperatureUnits.DegreesC)
If Not .Device.Contains("cDAQ") Then
Tasks(TaskCount).AIChannels(.Name).AutoZeroMode = AIAutoZeroMode.None
Tasks(TaskCount).AIChannels(.Name).LowpassEnable = True
Tasks(TaskCount).AIChannels(.Name).LowpassCutoffFrequency = 4
End If
Case Is = "Voltage"
'deleted for space
Case Else
'deleted for space
End Select
End With
ChannelCount += 1
If ChannelCount = numChannels + 1 Then Exit While
If AIChannels(0).Device.Contains("cDAQ") Then
Device = AIChannels(ChannelCount).Device
End If
End While
Tasks(TaskCount).Timing.ConfigureSampleClock("", frm.numSampleRate.Value, SampleClockActiveEdge.Rising, _
SampleQuantityMode.FiniteSamples, frm.numSamples.Value)
Tasks(TaskCount).Control(TaskAction.Verify)
Tasks(TaskCount).Control(TaskAction.Unreserve)
reader(TaskCount) = New AnalogMultiChannelReader(Tasks(TaskCount).Stream)
Tasks(TaskCount).Start()
TaskCount += 1
TasksChannelCount(TaskCount) = 0
Device = AIChannels(ChannelCount).Device
End While
Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI