I once read a post suggesting moving the tab at the bottom to see data being entered into the cells on the PLX-DAQ practice sheets.
None said what tab or how.
Apparently the data will only go into the leftmost sheet.
So at the bottom left click the sheet where you want the data to go into the cells, Simple Data, Simple Data With Plots or Interactive Bar Graph, then drag it to the leftmost spot.
I did get the time to show up in column A. Had something to do with the DATA,TIME statement.
Temp shows up in column C. I was trying to get the RPM to show up in column B but if I put Rpm in the DATA,TIME, Rpm, etc. statement the work Rpm showed up in the cell.
I have gotten the value to show up in column C but messed with the program some more and lost it, forgot what I did right, ha.
Here's my current program:
/*-----( Import needed libraries )-----*/
#include <OneWire.h>
#include <DallasTemperature.h>
/*-----( Declare Constants )-----*/
#define ONE_WIRE_BUS 2 /*-(Connect to Pin 2 )-*/
/*-----( Declare objects )-----*/
/* Set up a oneWire instance to communicate with any OneWire device*/
OneWire ourWire(ONE_WIRE_BUS);
/* Tell Dallas Temperature Library to use oneWire Library */
DallasTemperature sensors(&ourWire);
/*-----( Declare Variables )-----*/
int fan = 3;
int fanOn = 85;
int fanOff = 80;
int Rpm;
void setup() /*----( SETUP: RUNS ONCE )----*/
{
/*-(start serial port to see results )-*/
delay(1000);
Serial.begin(9600);
Serial.println("CLEARDATA");
Serial.println("LABEL, Time, Rpm, Temp,");
delay(1000);
pinMode(fan, OUTPUT);
Rpm = 0;
/*-( Start up the DallasTemperature library )-*/
sensors.begin();
}/*--(end setup )---*/
void loop() /*----( LOOP: RUNS CONSTANTLY )----*/
{
Rpm++;
Serial.print("DATA, TIME,,");
sensors.requestTemperatures(); // Send the command to get temperatures
Serial.println(sensors.getTempFByIndex(0));Serial.println(",");
Serial.println("Rpm");Serial.println(",");
if (sensors.getTempFByIndex(0)>=fanOn)
{digitalWrite(fan, LOW);}
else if (sensors.getTempFByIndex(0)<=fanOff)
{digitalWrite (fan, HIGH);
}
delay(60000);
}
/* --(end main loop )-- */
/* ( THE END ) */
Using Serial.println instead of Serial.print for output still matters in some places but I haven't figured out why yet.
Serial.println the comma to seperate data matters sometimes, ha.
I still haven't found an example that didn't use time for the x-axis and have had a hard time getting a point to represent x and y coordinates.