Академический Документы
Профессиональный Документы
Культура Документы
Tutorials
T.1TemperatureMeasurement
andColdJunction
Compensation(CJC)
LUMSSchoolofScienceandEngineering
UmerHassan&MuhammadSabiehAnwar
Introduction:
In this tutorial we shall learn how to measure temperature using NI DAQ Cards and LabVIEW while
employingcoldjunctioncompensationinrealtime.Thermocouplesrequiresomeformoftemperature
reference to compensate for the cold junctions. The most common method is to measure the
temperatureatthereferencejunctionwithadirectreadingtemperaturesensor.Thisprocessiscalled
coldjunctioncompensation(CJC).
Procedure:
Followthefollowingillustrativestepbystepproceduretomeasuretemperatureusingthermocouples.
StartMeasurement&AutomationExplorer.
UnderConfiguration,selectMySystemthenselectDataNeighborhood,followingdialogboxappears.
ClickNIDAQmxGlobalVirtualChannel
Onthefollowingwindow,click,CreateNewNIDAQmxChannel,
Onclicking,CreateNewNIDAQmxGlobalVirtualChannel,adialogboxappearswhichasksyou
whetheryouwanttocreateoracquireasignal.
SelectAcquireSignal,andthenselectAnalogInputandthenVoltage,asshowninthebelowpicture.
OnclickingVoltage,followingdialogboxappearswhichasksyouwhichPhysicalChannelactsasvirtual
channel.
CurrentSCC68connections:
PIN57(AI7)isconnectedtoPIN70(CJC+)
PIN56(AIGND)toPIN71(AIGND).
Thus,onthefollowingdialogboxselectAI7andclickonNext.
Thedialogboxappearswhichasksyoutowriteadesirednamefortheglobalvirtualchannel.
WenamedRTCJCandthenclickonFinish.
Thefollowingwindowappears.
MaketheTerminalConfigurationtoRSE,undertheSettingstab,setthesignalInputRangetoMax10
andMin10.AndselectVoltsasScaledUnits.
ClickontheConnectionDiagramtab,atthelowerbottomofthedialogbox.
Itshowsyoutheconnectiondiagramoftheexistingchannel,whichisshownbelow.
MakesuretheconnectionsonthediagramshouldbesameasoftheSCC68.
NowclickontheNIDAQmxGlobalChannelagain,andundertheVoltageInputSetup,scrolldown
CustomScalingandselectCreateNew.
FollowingDialogboxappears.
ClickonTable,thefollowingwindowasksyoutoenterthenameofthescale,e.g.Steinhartcalibration
ClickFinish,followingdialogboxappears.
ClickonImport,Nowwehavetoimportthecalibrationfile(Steinhart.txt),theimportfilewizardshows
youthecalibrationtableasfollows,
ClickOk.
Thetablehasbeenaddedasshownbelow.
ClickOK,nowtheCustomScalingshouldreadasSteinhartcalibration.
Onthefollowingdialogbox,clickSave.
Aglobalvirtualchannelhasbeencreated;nowclosetheMeasurement&AutomationExplorer.
NowgotoLabVIEW,OpenanewVI
InBlockDiagram,placeaDAQAssistant,thefollowingdialogboxappears
SelectAcquireSignals,AnalogInput,andTemperatureandfinallyselectThermocouple.
Selectthephysicalchannel,atwhichyouconnectedthethermocouple,letssayAI0
Selectthechannelandclickonfinish.
Followingdialogboxappears
UndertheThermocoupleSetup,setthefollowingparametersas,
SignalInputrange:Therangeoftheinputtemperatureyouareacquiring
ScaledUnits:Thedifferenttemperatureunits(C,F,K)
ThermocoupleType:Selectthetypeofthethermocouplewhichyouareusing(identifiedusingcolor
codes)
CJCSource:DefinetheCJCsourceasConstant,Channel,orBuiltin.Fortherealtimecoldjunction
compensationmeasurements,defineittoChannel.
CJCChannel:SelecttheRTCJCchannelwhichwehavejustcreated
AcquisitionMode:SelectthistoContinuoussamples.
ClickOk.
PlaceaGraphIndicatorattheoutputi.e.DataoftheDAQassistantandclickonRunbutton.Placea
whilelooparoundittocontinuouslyrunthefile,asshown,
ChecktheFrontPanel.
GraphIndicatorshowsyouthetemperaturewhileperformingcoldjunctioncompensationinrealtime.
Findtheaverageoftheacquiredtemperatureforeliminatingnoise.
ImportantNote:
TurntheswitchONlabeledasSW1onSCC68Card.ThelightturnedastheswitchturnsON.Thisswitch
providesthepowertothethermistorcircuitwhichisperformingtherealtimecoldjunction
compensation.
Enjoy!!!!!!!!