0% found this document useful (0 votes)
124 views16 pages

Labview Tutorials: T.1 Temperature Measurement and Cold Junction Compensation (CJC)

1) The document describes how to measure temperature using thermocouples with LabVIEW and NI DAQ cards while employing cold junction compensation. 2) It provides a step-by-step procedure to create a global virtual channel for temperature measurement and import a calibration table to perform temperature scaling. 3) Running the LabVIEW VI acquires temperature signals from the thermocouple and performs real-time cold junction compensation by using the virtual channel to measure the reference junction temperature.

Uploaded by

Muzamil Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views16 pages

Labview Tutorials: T.1 Temperature Measurement and Cold Junction Compensation (CJC)

1) The document describes how to measure temperature using thermocouples with LabVIEW and NI DAQ cards while employing cold junction compensation. 2) It provides a step-by-step procedure to create a global virtual channel for temperature measurement and import a calibration table to perform temperature scaling. 3) Running the LabVIEW VI acquires temperature signals from the thermocouple and performs real-time cold junction compensation by using the virtual channel to measure the reference junction temperature.

Uploaded by

Muzamil Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

LabVIEW

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!!!!!!!!

You might also like