Go Down

Topic: 3 max6675 TCs (Read 388 times) previous topic - next topic

fatmat

Hello,

I have managed to create a sketch for 3 individual thermocouples but i'm having problems creating a vi in labview. I have searched the internet but can't find any examples. Can anyone point me in the right direction? This is my sketch and reads the temp in the order first, second and third.

#include "max6675.h"
int ktcSO = 8;
int ktcCS = 9;
int ktcCS2 = 11;
int ktcCS3 = 12;
int ktcCLK = 10;
MAX6675 ktc(ktcCLK, ktcCS, ktcSO);
MAX6675 ktc2(ktcCLK, ktcCS2, ktcSO);
MAX6675 ktc3(ktcCLK, ktcCS3, ktcSO);

void setup() {
Serial.begin(9600);
// give the MAX a little time to settle
delay(500);
}
void loop() {
// basic readout test
Serial.print("First = ");
Serial.println(ktc.readCelsius());
Serial.print("Second = ");
Serial.println(ktc2.readCelsius());
Serial.print("Third = ");
Serial.println(ktc3.readCelsius());
delay(500);
}

horace


Go Up