PCPORT="COM1" ' PCPORT = COM1 thru COM4 or LPT1 or LPT2 (LPT requires custom cable) ' anything following a ' is a comment 'FORMAT OF THE SLOT DEFINITION STATEMENT IS ... 'SLOT# ,"TRANSDUCER CH 0 TYPE", "XDCR CH 1 TYPE" ,"COMMENTS (Quotes for all 3 fields required)" 'Valid XDCR TYPES ARE => 'PPM 'Voltmeter includes scaling in transducer type ... 'V10 'Displays 10V for a full scale input 'V7.6 'Displays 7.6V for a full scale input 'XDUCER TYPES FOR THERMOCOUPLES FOLLOW .... 'ETCWCJC = E TYPE TC WITH CJC, ETCNOCJC = E TYPE TC WITHOUT CJC 'JTCWCJC = J TYPE TC WITH CJC, JTCNOCJC = J TYPE TC WITHOUT CJC 'KTCWCJC = K TYPE TC WITH CJC, KTCNOCJC = K TYPE TC WITHOUT CJC 'RTCWCJC = R TYPE TC WITH CJC, RTCNOCJC = R TYPE TC WITHOUT CJC 'STCWCJC = S TYPE TC WITH CJC, STCNOCJC = S TYPE TC WITHOUT CJC 'TTCWCJC = T TYPE TC WITH CJC, TTCNOCJC = T TYPE TC WITHOUT CJC 'XDUCER TYPES FOR OTHER TEMP SENSORS FOLLOW ... 'LT334TEMPC = LT334 type transducer Deg C (10mV/degK) 'LT334TEMPF = LT334 type transducer Deg F (10mV/degK) 'LT334TEMPCREF = LT334 type transducer (10mV/degK) used as the reference for all cold junction calcs 'LT334TEMPFREF = LT334 type transducer (10mV/degK) used as the reference for all cold junction calcs in deg F 'NONE (USE IF NO TRANSDUCER AND IT WON'T LOOK FOR IT ) 'ENTER SLOT TRANSDUCER TYPES BELOW !!!!!!!!!!!!!!!!!!!!!! 'SLOT# ,"TRANSDUCER CH 0 TYPE", "XDCR CH 1 TYPE","COMMENTS (required)" 'ADD "X" TO THE END OF ANY TRANSDUCER TYPE FOR LTC2410 type data slot 0,"V5","V5","Isolated CH0,0 and CH0,1, 5V=FS", 'comment1 slot 1 ,"V5","V5","LTC2402 type data 5V=F.S." slot 1 ,"V5","V5","LTC2402 type data 5V=F.S." slot 1 ,"ontime","ontime","TIME EACH CHAN ABOVE 1V" slot 2 ,"THRMTEMPF","THRMTEMPF","10 K ohm thermistor deg F" slot 2 ,"OHMSBOT","OHMSBOT","LTC2402 type data = 5V F.S." slot 2 ,"THRMTEMPC","THRMTEMPC","10 K ohm thermistor deg C" slot 3,"V5","V5","Volts" slot 300 ' ENDS THE SLOT DEFINITION TABLE !!!! ALL SLOTS BELOW ARE "SPARES" !!! slot 3 ,"V5","V5","LTC2402 type data = 5V F.S." slot 4,"V5","V5","Volts" ''comment1 slot 5 ,"V50X","V50X","LTC2410 type data = 50V F.S." slot 6,"V5","V5","Volts" slot 6,"OHMSBOT","V5","Volts" slot 7,"LT334TEMPCREF","none","Reference Temperature deg C", 'comment1 slot 7,"LT334TEMPFREF","none","Reference Temperature deg C", 'comment1 slot 3,"V5","V5","Volts" slot 7,"PPM","PPM","Volts" slot 3,"KTCWCJC","V5","K type thermocouple - W/ CJC" ,'comment1 slot 3,"KTFWCJC","V5","K type thermocouple - W/ CJC" slot 4,"TTFWCJC","V5","T type thermocouple - W/ CJC" 'slot 4,"TTFNOCJC","V5","T type thermocouple - W/ CJC" slot 300 ' ENDS THE SLOT DEFINITION TABLE !!!! ALL SLOTS BELOW ARE "SPARES" !!! slot 7,"INPUTPWR","INPUTPWR","Volts" slot 5,"OUTPUTPWR","OUTPUTPWR","Volts" slot 256,"EFFICIENCY","EFFICIENCY","Effic. by JD" slot 5,"v5","v5","" slot 7,"v5","v5","" slot 5,"v5","v5","" slot 4 ,"TTCWCJC","V5","Comment" slot 4 ,"TTCNCJC","V5","Comment" '-------------------------------------------------- 'MORE PROGRAM VARIABLES FOLLOW ... linemax=14 ' number of lines of data per screen page, CAN GO TO 30 if "program properties" screen size is big enough diag=0 ' diagnostics 0 or 1 HTMLON=1 ' LOG HTML FILE 0 or 1 'HTMLFILE="c:\shared\ahubhtml.htm" 'HTML (text) filename HTMLFILE="ahubhtml.htm" 'HTML (text) filename in the same dir if dir not specified XLON=1 'LOG XL FILE 0 or 1 XLFILE="ahubxl.xls" ' XL (text) filename, tab delimited in the same dir if dir not specified TCDIAG=0 'Thermocouple test 0 or 1 (Set diag=0) TCDATA=2000 'Thermocouple test DATA in PPM (2000=10mV) TCREFTEMP=25 'ref temp if one not measured samptime=60 delay=1 ' 1 for slow machines to 5 for VERY FAST MACHINES, affects bit rate '------------------------------------------------------- ' known bugs ... '1 sometimes the number of pages of data on the screen is incorectly reported '2 commas not allowed in comment field (sorry) use dash or = instead '3 screen page count is not always right '4 CJC not done for thermocouples in deg F '------------------------------ 'SPECIAL TRANSDUCER TYPES INPUTPWR, OUTPUTPWR ,EFFIC (SLOT 256) = SUM(OUTPUTPWR) / SUM (INPUTPWR) SINGLE=0 ' 0 for DASHUB, 1 for single A to D (not fin) ' Following are used for efficiency calcs RINPUT=200 'milliohms ROUTPUT=200 'milliohms VINPUTMAX=20 VOUTPUTMAX=20 'FUTURE XDUCER TYPES ARE 'AMPS10 (.1V=10AMPS),AMPS1(.1V=1A),OHMS, LOOPTEST, GPIO , LM34 etc ' (Comments ?) and questions, send them to jdutra@linear.com '------------------------------- 'Troubleshooting tips ... ' Symptom .... Possible problem(s) '1 Dto LED doesnt flash under program control could be ... ' Wrong serial port (or custom cable for parallel port is not right) ' Program not running or board not powered '2 LED by any and all ports does not flash, Sclk DOES flash. ' Address jumpers not right ( START WITH J= 0 and K=0 ) '3 Program races through many scans=> Dfrom line stuck low, is the power on ??? '4 Program is very slow, no data appears on screen => Dfrom is stuck high, can be fixed by "Restart" of computer '5