ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple max6675 thermocouples

Hello

I'm having problems trying to creating a vi for 3 max6675 thermocouples. I have created a vi for one without a problem. This is my sketch, which works on the arduino serial monitor.

#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);
}

 

is this possible ?

Thanks

0 Kudos
Message 1 of 3
(4,298 Views)

Does anyone know if this is possible? Is there way that labview can read the thermocouples individually ? If not I'll try something different. 

0 Kudos
Message 2 of 3
(4,270 Views)

Not possible,

You should add digitalwrite("anotherCS pins",HIGH); 

0 Kudos
Message 3 of 3
(3,850 Views)